Font parameters and metrics.
| 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() |
nothing calls this directly
no outgoing calls
no test coverage detected