インフォ FAQ
言語 環境比較
 
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  

setFont()

   
Examples  
BFont metaBold; 
metaBold = loadFont("Meta-Bold.vlw.gz"); 
setFont(metaBold, 44); 
hint(SMOOTH_IMAGES); 
text("word", 15, 50); 
Description   Sets the current font. This font and size will be used in all subsequent calls to the text() function.
   
Syntax  
setFont(font, size)
   
Parameters  
font   BFont: any variable of the type BFont

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

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