Skip to content

Commit

Permalink
Don’t apply hinting subset twice
Browse files Browse the repository at this point in the history
It seems to be broken with variable fonts.
  • Loading branch information
liZe committed Aug 24, 2024
1 parent 1711d59 commit 438531f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions weasyprint/pdf/fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ def _harfbuzz_subset(self, cmap, hinting):
harfbuzz_subset.HB_SUBSET_FLAGS_RETAIN_GIDS |
harfbuzz_subset.HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED |
harfbuzz_subset.HB_SUBSET_FLAGS_DESUBROUTINIZE)
if not hinting:
flags |= harfbuzz_subset.HB_SUBSET_FLAGS_NO_HINTING
harfbuzz_subset.hb_subset_input_set_flags(hb_subset, flags)

# Drop useless tables.
Expand Down

0 comments on commit 438531f

Please sign in to comment.