Skip to content

Commit

Permalink
Merge pull request #2358 from tagatac/emoji-align
Browse files Browse the repository at this point in the history
Align png emojis to the surrounding text
  • Loading branch information
liZe authored Jan 21, 2025
2 parents 513397e + c567ad2 commit 8ca4131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/draw/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def draw_first_line(stream, textbox, text_overflow, block_ellipsis, matrix):
pango.pango_font_get_glyph_extents(
pango_font, glyph, stream.ink_rect,
stream.logical_rect)
f = -stream.logical_rect.y - stream.logical_rect.height
f = -stream.logical_rect.y
f = f * FROM_UNITS / font_size - font_size
emojis.append([image, font, a, d, x_advance, f])

Expand Down

0 comments on commit 8ca4131

Please sign in to comment.