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  

textSize()

   
Examples  
PFont font; 
// The font must be located in the sketch's 
// "data" directory to load successfully 
font = loadFont("FFScala-32.vlw"); 
textFont(font, 32); 
text("word", 15, 50); 
textSize(14); 
text("word", 15, 70); 
Description   Sets the current font size. This size will be used in all subsequent calls to the text() function. Font size is measured in units of pixels.
   
Syntax  
textSize(size)
   
Parameters  
size   int or float: the size of the letters in units of pixels

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






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








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