Struct sdl2_ttf::Font [] [src]

pub struct Font<'a> { /* fields omitted */ }

A loaded TTF font.

Methods

impl<'a> Font<'a>
[src]

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 font's style flags.

Sets the font's style flags.

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.

Get font maximum total height.

Returns the font's highest ascent (height above base).

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.

Trait Implementations

impl<'a> Drop for Font<'a>
[src]

A method called when the value goes out of scope. Read more