public class

Font

extends Object
java.lang.Object
   ↳ org.anddev.andengine.opengl.font.Font
Known Direct Subclasses

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Constants
int LETTER_EXTRA_WIDTH
float LETTER_LEFT_OFFSET
int PADDING
Fields
protected final Canvas mCanvas
protected final Paint.FontMetrics mFontMetrics
protected final Paint mPaint
Public Constructors
Font(ITexture pTexture, Typeface pTypeface, float pSize, boolean pAntiAlias, int pColor)
Public Methods
synchronized Letter getLetter(char pCharacter)
int getLineGap()
int getLineHeight()
int getStringWidth(String pText)
ITexture getTexture()
void prepareLetters(char... pCharacters)
synchronized void reload()
synchronized void update(GL10 pGL)
Protected Methods
void drawCharacterString(String pCharacterAsString)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

protected static final int LETTER_EXTRA_WIDTH

Constant Value: 10 (0x0000000a)

protected static final float LETTER_LEFT_OFFSET

Constant Value: 0.0

protected static final int PADDING

Constant Value: 1 (0x00000001)

Fields

protected final Canvas mCanvas

protected final Paint.FontMetrics mFontMetrics

protected final Paint mPaint

Public Constructors

public Font (ITexture pTexture, Typeface pTypeface, float pSize, boolean pAntiAlias, int pColor)

Public Methods

public synchronized Letter getLetter (char pCharacter)

public int getLineGap ()

public int getLineHeight ()

public int getStringWidth (String pText)

public ITexture getTexture ()

public void prepareLetters (char... pCharacters)

public synchronized void reload ()

public synchronized void update (GL10 pGL)

Protected Methods

protected void drawCharacterString (String pCharacterAsString)