ttf fnt - part-cw/lambdanative GitHub Wiki

(ttf->fnt fname pointsize . glyphlist)

ttf->fnt returns a scheme font for runtime use.

Parameter Description
fname TTF file name
pointsize Font size to build
glyphlist Optional: List of characters to render

Example

Example 1: Render a font at runtime and display some text made with it on the screen.

(set! my-fnt (ttf->fnt "fonts/cmss.ttf" 30))
(glgui-label gui 5 50 300 30 "This is a 30pt font test!" my-fnt White)