| 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 |  | ### textMode()
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, 24);
    textMode(ALIGN_RIGHT);
    text("word", 50, 30);
    textMode(ALIGN_CENTER);
    text("word", 50, 50);
    textMode(ALIGN_LEFT);
    text("word", 50, 70);
Description |  | Sets the current alignment for drawing text. The parameters ALIGN_LEFT, ALIGN_CENTER, and ALIGN_RIGHT set the display characteristics of the letters in relation to the values for the x and y parameters of the text() function.
Syntax |  |
    textMode(MODE)
Parameters |  |
MODE |  | Either ALIGN_LEFT, ALIGN_CENTER, or ALIGN_RIGHT
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 |