From 05bc5eed1750c2533a2b5665851efb0eff7161b3 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Fri, 8 May 2020 01:39:42 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20the=203/4=20ratio,=20as?= =?UTF-8?q?=20Pango=20and=20PDF=20both=20use=20points?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weasyprint/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weasyprint/document.py b/weasyprint/document.py index 579b8bfa..32ea0f1d 100644 --- a/weasyprint/document.py +++ b/weasyprint/document.py @@ -88,7 +88,7 @@ class Font: self.stemv = 80 self.stemh = 80 self.glyphs = {glyph_string.glyphs[x].glyph for x in range(num_glyphs)} - self.font_size = 3 / 4 * pango.pango_units_to_double( + self.font_size = pango.pango_units_to_double( pango.pango_font_description_get_size(font_description)) def add_glyphs(self, glyph_item):