fix max advance
This commit is contained in:
parent
70fd05f1e0
commit
c637de10ff
2
fonts.d
2
fonts.d
@ -106,7 +106,7 @@ CreateAtlas(Arena* arena, FontFace font, f32 size, u32 dimension)
|
|||||||
abuf.atlas.ascent = cast(f32)font.ascender;
|
abuf.atlas.ascent = cast(f32)font.ascender;
|
||||||
abuf.atlas.descent = cast(f32)font.descender;
|
abuf.atlas.descent = cast(f32)font.descender;
|
||||||
abuf.atlas.line_gap = cast(f32)(font.height - font.ascender + font.descender);
|
abuf.atlas.line_gap = cast(f32)(font.height - font.ascender + font.descender);
|
||||||
abuf.atlas.max_advance = cast(f32)(font.max_advance_width);
|
abuf.atlas.max_advance = cast(f32)(font.max_advance_width>>6);
|
||||||
|
|
||||||
u32 max_w, max_h, current_h, count;
|
u32 max_w, max_h, current_h, count;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user