comparison tools/fontconv.c @ 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 868e39741d26
children a8a942c25df3
comparison
equal deleted inserted replaced
1975:0fddc51788de 1976:5f9e8dd62c70
349 goto out; 349 goto out;
350 } 350 }
351 351
352 dst.x = 0; 352 dst.x = 0;
353 dst.y = index * font->height; 353 dst.y = index * font->height;
354 dst.w = tmp->w; 354 dst.w = font->width;
355 dst.h = tmp->h; 355 dst.h = font->height;
356 356
357 // Set glyph data 357 // Set glyph data
358 glyph->width = font->width; 358 glyph->width = font->width;
359 glyph->height = font->height; 359 glyph->height = font->height;
360 glyph->index = index; 360 glyph->index = index;