Skip to content

Commit

Permalink
Fix variable font instantiation (Kozea#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmjdebruijn committed Oct 15, 2023
1 parent 4dfe607 commit 9e3f0b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions weasyprint/pdf/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,7 @@ def add_font(self, pango_font):
description = pango.pango_font_describe(pango_font)
mask = (
pango.PANGO_FONT_MASK_SIZE +
pango.PANGO_FONT_MASK_GRAVITY +
pango.PANGO_FONT_MASK_VARIATIONS)
pango.PANGO_FONT_MASK_GRAVITY)
pango.pango_font_description_unset_fields(description, mask)
key = pango.pango_font_description_hash(description)
pango.pango_font_description_free(description)
Expand Down

0 comments on commit 9e3f0b7

Please sign in to comment.