| 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 |  | ### textSize()
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);
    textSize(44);
    text("word", 15, 50);
    textSize(24);
    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() BFont text() textFont()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |