FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

textFont()

   
Examples  
PFont 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   Sets the current font. The font must be loaded with loadFont() before it can be used. This font will be used in all subsequent calls to the text() function. If no size parameter is input, the font will appear at its original size (the size it was created at with the "Create Font..." tool) until it is changed with textSize().
   
Syntax  
textFont(font)
textFont(font, size)
   
Parameters  
font   PFont: any variable of the type PFont

size   int or float: the size of the letters in units of pixels

   
Returns   None
   
Usage   Web & Application
   
Related   loadFont()
PFont
text()
 
 






   
 
Updated: Fri Jul 15 16:36:14 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info