Struct sdl2::ttf::Font [−][src]
pub struct Font<'ttf_module, 'rwops> { /* fields omitted */ }Expand description
A loaded TTF font.
Implementations
Starts specifying a rendering of the given UTF-8-encoded text.
Starts specifying a rendering of the given Latin-1-encoded text.
Starts specifying a rendering of the given UTF-8-encoded character.
Returns the width and height of the given text when rendered using this font.
Returns the width and height of the given text when rendered using this font.
Returns the width and height of the given text when rendered using this font.
Returns the width of the font’s outline.
Sets the width of the font’s outline.
Returns the font’s freetype hints.
Sets the font’s freetype hints.
Returns whether the font is kerning.
Sets whether the font should use kerning.
Returns the font’s lowest descent (height below base). This is a negative number.
Returns the recommended line spacing for text rendered with this font.
Returns the number of faces in this font.
Returns whether the font is monospaced.
Returns the family name of the current font face.
Returns the name of the current font face.
Returns the index of the given character in this font face.
Returns the glyph metrics of the given character in this font face.