mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
Don’t use the 3/4 ratio, as Pango and PDF both use points
This commit is contained in:
parent
3342386a28
commit
05bc5eed17
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user