changeset 1976:5f9e8dd62c70

Use font general width/height for glyphs when generating from TrueType font, at least until I can figure out a working method to use metrics.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 01 Jul 2018 02:35:42 +0300
parents 0fddc51788de
children 33c29e7d1861
files tools/fontconv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/fontconv.c	Sun Jul 01 02:34:52 2018 +0300
+++ b/tools/fontconv.c	Sun Jul 01 02:35:42 2018 +0300
@@ -351,8 +351,8 @@
 
                 dst.x = 0;
                 dst.y = index * font->height;
-                dst.w = tmp->w;
-                dst.h = tmp->h;
+                dst.w = font->width;
+                dst.h = font->height;
 
                 // Set glyph data
                 glyph->width  = font->width;