Skip to content
Gambini edited this page Oct 2, 2014 · 3 revisions

Loading fonts

The Rocket module exposes the LoadFontFace() function for loading a supported font file from Python. The function takes a single string as a parameter, the file name of the font to load.

rocket.LoadFontFace("../assets/Delicious-Roman.ttf")
rocket.LoadFontFace("../assets/Delicious-Bold.ttf")
Clone this wiki locally