Skip to content

Commit

Permalink
Merge branch '54.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Feb 17, 2022
2 parents d814c2e + d6c1900 commit b33df96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weasyprint/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,8 @@ def draw_first_line(stream, textbox, text_overflow, block_ellipsis, x, y,
glyph_info = glyphs[i]
glyph = glyph_info.glyph
width = glyph_info.geometry.width
if glyph == pango.PANGO_GLYPH_EMPTY:
if (glyph == pango.PANGO_GLYPH_EMPTY or
glyph & pango.PANGO_GLYPH_UNKNOWN_FLAG):
string += f'>{-width / font_size}<'
continue
utf8_position = utf8_positions[i]
Expand Down
1 change: 1 addition & 0 deletions weasyprint/text/ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
typedef gint PangoGlyphUnit;
const guint PANGO_GLYPH_EMPTY = 0x0FFFFFFF;
const guint PANGO_GLYPH_UNKNOWN_FLAG = 0x10000000;
typedef enum {
PANGO_STYLE_NORMAL,
Expand Down

0 comments on commit b33df96

Please sign in to comment.