MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / FontInfo

Class FontInfo

KBotExt/imgui/imgui_freetype.cpp:120–128  ·  view source on GitHub ↗

Font parameters and metrics.

Source from the content-addressed store, hash-verified

118
119 // Font parameters and metrics.
120 struct FontInfo
121 {
122 uint32_t PixelHeight; // Size this font was generated with.
123 float Ascender; // The pixel extents above the baseline in pixels (typically positive).
124 float Descender; // The extents below the baseline in pixels (typically negative).
125 float LineSpacing; // The baseline-to-baseline distance. Note that it usually is larger than the sum of the ascender and descender taken as absolute values. There is also no guarantee that no glyphs extend above or below subsequent baselines when using this distance. Think of it as a value the designer of the font finds appropriate.
126 float LineGap; // The spacing in pixels between one row's descent and the next row's ascent.
127 float MaxAdvanceWidth; // This field gives the maximum horizontal cursor advance for all glyphs in the font.
128 };
129
130 // FreeType glyph rasterizer.
131 // NB: No ctor/dtor, explicitly call Init()/Shutdown()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected