Skip to content

Commit

Permalink
Always use the font’s vector variant when possible
Browse files Browse the repository at this point in the history
Fix #1736, related to #1718.
  • Loading branch information
liZe committed Oct 11, 2022
1 parent 3c4fa50 commit 3e501be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion weasyprint/pdf/stream.py
Expand Up @@ -71,7 +71,10 @@ def __init__(self, pango_font):
self.ttfont = None
self.bitmap = False
else:
self.bitmap = 'EBDT' in self.ttfont and 'EBLC' in self.ttfont
self.bitmap = (
'EBDT' in self.ttfont and
'EBLC' in self.ttfont and
not self.ttfont['glyf'].glyphs)

# Various properties
self.italic_angle = 0 # TODO: this should be different
Expand Down

0 comments on commit 3e501be

Please sign in to comment.