ImFont: storing offsets as X0/Y0/X1/Y1 analoguous to examples for stb_truetype

This commit is contained in:
ocornut
2015-07-13 16:08:49 -06:00
parent 5b053dd350
commit ba9317b924
2 changed files with 11 additions and 12 deletions

View File

@ -1185,8 +1185,7 @@ struct ImFont
{
ImWchar Codepoint;
signed short XAdvance;
signed short Width, Height;
signed short XOffset, YOffset;
signed short X0, Y0, X1, Y1;
float U0, V0, U1, V1; // Texture coordinates
};
float Ascent; // Distance from top to bottom of e.g. 'A' [0..FontSize]