pub struct TextureFont { /* fields omitted */ }
Whether to use autohint when rendering font
Mode the font is rendering its next glyph
Whether to use our own lcd filter.
Whether to use kerning if available
This field is simply used to compute a default line spacing (i.e., the
baseline-to-baseline distance) when writing text with this font. 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.
This field is the distance that must be placed between two lines of
text. The baseline-to-baseline distance should be computed as:
ascender - descender + linegap
The ascender is the vertical distance from the horizontal baseline to
the highest 'character' coordinate in a font face. Unfortunately, font
formats define the ascender differently. For some, it represents the
ascent of all capital latin characters (without accents), for others it
is the ascent of the highest accented character, and finally, other
formats define it as being equal to bbox.yMax.
The descender is the vertical distance from the horizontal baseline to
the lowest 'character' coordinate in a font face. Unfortunately, font
formats define the descender differently. For some, it represents the
descent of all capital latin characters (without accents), for others it
is the ascent of the lowest accented character, and finally, other
formats define it as being equal to bbox.yMin. This field is negative
for values below the baseline.
The position of the underline line for this face. It is the center of
the underlining stem. Only relevant for scalable formats.
The thickness of the underline for this face. Only relevant for scalable
formats.
Executes the destructor for this type. Read more