Skip to content
Chris Petersen edited this page Oct 16, 2014 · 4 revisions

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)
Clone this wiki locally