Simplify some font logic
This commit is contained in:
parent
f4ffee2c99
commit
1dcf3333fc
1 changed files with 1 additions and 1 deletions
|
@ -968,7 +968,7 @@ static CachedGlyph* GetGlyphCached(FontObject *font_object, unsigned long unicod
|
|||
{
|
||||
glyph->unicode_value = unicode_value;
|
||||
glyph->x = font_object->face->glyph->bitmap_left;
|
||||
glyph->y = (FT_MulFix(font_object->face->ascender, font_object->face->size->metrics.y_scale) + (64 / 2)) / 64 - font_object->face->glyph->bitmap_top;
|
||||
glyph->y = (font_object->face->size->metrics.ascender + (64 / 2)) / 64 - font_object->face->glyph->bitmap_top;
|
||||
glyph->x_advance = font_object->face->glyph->advance.x / 64;
|
||||
|
||||
FT_Bitmap bitmap;
|
||||
|
|
Loading…
Add table
Reference in a new issue