From 3e501be595cd166b4f47d478736da338595362cf Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 11 Oct 2022 13:25:56 +0200 Subject: [PATCH] =?UTF-8?q?Always=20use=20the=20font=E2=80=99s=20vector=20?= =?UTF-8?q?variant=20when=20possible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #1736, related to #1718. --- weasyprint/pdf/stream.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weasyprint/pdf/stream.py b/weasyprint/pdf/stream.py index 6a6c265941..385b6237d6 100644 --- a/weasyprint/pdf/stream.py +++ b/weasyprint/pdf/stream.py @@ -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