Skip to content

Commit

Permalink
Fix emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Mar 6, 2023
1 parent 44001c5 commit ab6daa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ def draw_first_line(stream, textbox, text_overflow, block_ellipsis, x, y,
pillow_image = Image.open(BytesIO(png_data))
image_id = f'{font.hash}{glyph}'
image = RasterImage(
pillow_image, image_id, optimize_size=())
pillow_image, image_id, optimize_size=(), cache={})
d = font.widths[glyph] / 1000
a = pillow_image.width / pillow_image.height * d
pango.pango_font_get_glyph_extents(
Expand Down

0 comments on commit ab6daa2

Please sign in to comment.