Byte Advance

master
Allen Webster 2019-08-13 12:34:13 -07:00
parent b9e5d2d49f
commit dd49fa68fd
1 changed files with 4 additions and 0 deletions

View File

@ -333,6 +333,10 @@ ft__font_make_face(Arena *arena, Face_Description *description){
face->byte_sub_advances[0] = font_get_glyph_advance(face, '\\'); face->byte_sub_advances[0] = font_get_glyph_advance(face, '\\');
face->byte_sub_advances[1] = face->hex_advance; face->byte_sub_advances[1] = face->hex_advance;
face->byte_sub_advances[2] = face->hex_advance; face->byte_sub_advances[2] = face->hex_advance;
face->byte_advance =
face->byte_sub_advances[0] +
face->byte_sub_advances[1] +
face->byte_sub_advances[2];
face->typical_lowercase_advance = font_get_average_glyph_advance_range(face, 'a', 'z'); face->typical_lowercase_advance = font_get_average_glyph_advance_range(face, 'a', 'z');
face->typical_uppercase_advance = font_get_average_glyph_advance_range(face, 'A', 'Z'); face->typical_uppercase_advance = font_get_average_glyph_advance_range(face, 'A', 'Z');
face->typical_advance = (26*face->typical_lowercase_advance + face->typical_advance = (26*face->typical_lowercase_advance +