diff options
author | Christopher Zimmermann <madroach@gmerlin.de> | 2020-08-16 21:56:15 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-09-22 22:00:38 +0000 |
commit | ca9ad454496bebbc37125959d049cf2173c07c2a (patch) | |
tree | f0710170f3eb15ef470640eaa177476528c9d9e7 /read.c | |
parent | 0447b81053d4ccaa1e1b0087bf6076abae431cae (diff) |
use PIXEL_SIZE to calculate lineGap
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -296,6 +296,7 @@ readFile(char *filename, FontPtr font) font->foundry = faceFoundry(face); font->italicAngle = faceItalicAngle(face); font->pxMetrics.height = face->available_sizes[0].height; + font->pxMetrics.size = faceIntProp(face, "PIXEL_SIZE"); font->pxMetrics.xHeight = faceIntProp(face, "X_HEIGHT"); font->pxMetrics.capHeight = faceIntProp(face, "CAP_HEIGHT"); font->pxMetrics.ascent = faceIntProp(face, "FONT_ASCENT"); |