ImFont: Store the texture surface used to get an idea of how costly each font is.

This commit is contained in:
omar
2017-03-17 21:29:57 +01:00
parent b84eac53d8
commit e10ceebd36
3 changed files with 7 additions and 2 deletions

View File

@ -1367,6 +1367,7 @@ struct ImFont
ImFontConfig* ConfigData; // // Pointer within ContainerAtlas->ConfigData
ImFontAtlas* ContainerAtlas; // // What we has been loaded into
float Ascent, Descent; // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize]
int MetricsTotalSurface;// // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs)
// Methods
IMGUI_API ImFont();