Next: Audio, Previous: OpenGL, Up: The (sdl *) Modules [Contents][Index]
Initialize the SDL_ttf subsystem.
Load a font from file with point size ptsize. Return a handle.
Return the style of font (see font-style flags). This font style is implemented by modifying the font glyphs, and doesn’t reflect any inherent properties of the truetype font file.
Set font style to style (see font-style flags). This font style is implemented by modifying the font glyphs, and doesn’t reflect any inherent properties of the truetype font file.
Return the total height of font, usually equal to point size.
Return the offset from the baseline to the top of font. This is a positive number.
Return the offset from the baseline to the bottom of font. This is a negative number.
Return the recommended spacing between lines of text for font.
Return the metrics (dimensions) of a glyph as five values.
The glyph is a font-specific rendering of char ch.
Values are: minx
, maxx
, miny
,
maxy
and advance
(all integers).
Return two values: width
and height
(both integers)
representing the dimensions of the font-specific rendering
of the string text.
Return two values: width
and height
(both integers)
representing the dimensions of the font-specific rendering
of the UTF-8 string text.
Return a new surface containing the font-specific
rendering of the text string.
Third argument is the foreground color;
optional fourth argument is the background color,
or #t
if the text is to be blended.
Return a new surface containing a font-specific
rendering of the utf8 string text.
Third argument is the foreground color;
optional fourth argument is the background color,
or #t
if the text is to be blended.
Return a new surface containing a font-specific
rendering of the character ch.
Third argument is the foreground color;
optional fourth argument is the background color,
or #t
if the text is to be blended.
Quit the SDL_ttf subsystem.
Next: Audio, Previous: OpenGL, Up: The (sdl *) Modules [Contents][Index]