Previous: , Up: API Reference   [Contents][Index]


3.10 Fonts

(use-modules (sdl2 ttf))
Procedure: ttf-init

Initialize the TTF system.

Procedure: ttf-quit

Shut down and clean up the TTF system.

Procedure: load-font file point-size

Load TTF font from file and return a new font object whose glyph size is point-size.

Procedure: delete-font! font

Delete the memory allocated for font.

Procedure: font-height font

Return the maximum height of font.

Procedure: render-font-solid font text color

Render text, a UTF-8 encoded string, using font and color, the foreground color, and return a surface containing the results.

Procedure: render-font-blended font text color

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.