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  

BFont

   
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   Blue. BFont is the font class for Processing. The loadFont() function constructs a new font and the textFont() function makes this font active. The method width() is used to determine the width of each individual character in the font.
   
Syntax  
BFont var
var.width(let)
   
Parameters  
var   any legal variable name

let   char or String: any single character or String of characters

   
Usage   Web & Application
   
Related   loadFont()
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