Changes from Version 1 of documentation/LuaManual/Fonts

Show
Ignore:
Author:
gambini (IP: 96.38.104.126)
Timestamp:
05/19/12 07:41:39 (5 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/LuaManual/Fonts

    v0 v1  
     1= Loading fonts = 
     2 
     3The ''rocket'' table in Lua exposes the ''LoadFontFace()'' function for loading a supported font file from Lua. The function takes a single string as a parameter, the file name of the font to load. 
     4 
     5{{{ 
     6rocket.LoadFontFace("../assets/Delicious-Roman.ttf") 
     7rocket.LoadFontFace("../assets/Delicious-Bold.ttf") 
     8}}}