Next: Hints, Previous: Sound, Up: API Reference [Contents][Index]
(use-modules (sdl2 ttf))
Initialize the TTF system.
Shut down and clean up the TTF system.
Load TTF font from file and return a new font object whose glyph size is point-size.
Delete the memory allocated for font.
Return the maximum height of font.
Return the maximum pixel ascent of all glyphs in font. This can also be interpreted as the distance from the top of the font to the baseline.
Return the maximum pixel descent of all glyphs in font. This can also be interpreted as the distance from the baseline to the bottom of the font.
Return the recommended pixel height of a line of text using font.
Return 2 values for the resulting surface size of the string text using font.
Return the index of the glyph for char in font, or
#f
if char is not present.
Return values for the metrics of char in font: min x, max x, min y, max y, and advance.
Return the rendering style of font as a list that may contain any of the following symbols:
bold
italic
underline
strikethrough
The empty list is returned if none of the above styles are applied.
Set the rendering style of font to style, a list that may contain any of the following symbols:
bold
italic
underline
strikethrough
The empty list means that none of the above stylings will be used.
Render text, a UTF-8 encoded string, using font and color, the foreground color, and return a surface containing the results.
Render text, a UTF-8 encoded string, using font and color, the foreground color, and return a high-quality alpha-blended surface containing the results.
Next: Hints, Previous: Sound, Up: API Reference [Contents][Index]