Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

loadFont()

   
Examples  
BFont metaBold; 
// The font "Meta-Bold.vlw.gz" must be located in the 
// current sketch's "data" directory to load successfully 
metaBold = loadFont("Meta-Bold.vlw.gz"); 
textFont(metaBold, 44); 
text("word", 15, 50); 
Description   Loads a font into a variable of type BFont. To load correctly, fonts must be located in the data directory of the current sketch.
   
Syntax  
loadFont(fontname)
   
Parameters  
fontname   string: name of the font to load

   
Returns   BFont
   
Usage   Web & Application
   
Related   BFont
textFont()
text()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas