Crate sdl2_ttf [−] [src]
A binding for SDL2_ttf
.
Structs
Font |
A loaded TTF font. |
FontStyle |
The styling of a font. |
GlyphMetrics |
Information about a specific glyph (character) in a font face. |
PartialRendering |
A builder for a font rendering. |
Sdl2TtfContext |
A context manager for |
Enums
FontError |
A font-related error. |
Hinting |
Information about the hinting of a font. See wikipedia |
InitError |
An error for when |
Constants
STYLE_BOLD | |
STYLE_ITALIC | |
STYLE_NORMAL | |
STYLE_STRIKETHROUGH | |
STYLE_UNDERLINE |
Functions
get_linked_version |
Returns the version of the dynamically linked |
has_been_initialized |
Returns whether library has been initialized already. |
init |
Initializes the truetype font API and returns a context manager which will clean up the library once it goes out of scope. |
Type Definitions
FontResult |
The result of an |