Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion weasyprint/text/ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@

char * pango_font_description_to_string (const PangoFontDescription *desc);

PangoFontDescription * pango_font_describe (PangoFont *font);
PangoFontDescription * pango_font_describe_with_absolute_size (PangoFont *font);
const char * pango_font_description_get_family (const PangoFontDescription *desc);
guint pango_font_description_hash (const PangoFontDescription *desc);

Expand Down
3 changes: 2 additions & 1 deletion weasyprint/text/fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ def get_pango_font_key(pango_font):
# the same address for two different Pango maps. We should cache it in the
# FontConfiguration object. See issue #2144.
description = ffi.gc(
pango.pango_font_describe(pango_font), pango.pango_font_description_free)
pango.pango_font_describe_with_absolute_size(pango_font),
pango.pango_font_description_free)
font_size = pango.pango_font_description_get_size(description) * FROM_UNITS
mask = pango.PANGO_FONT_MASK_SIZE + pango.PANGO_FONT_MASK_GRAVITY
pango.pango_font_description_unset_fields(description, mask)
Expand Down
Loading