Known Direct Subclasses
StrokeFont |
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc. |
|
Class Overview
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc.
Summary
Public Constructors |
|
Font(ITexture pTexture, Typeface pTypeface, float pSize, boolean pAntiAlias, int pColor)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
protected
static
final
int
LETTER_EXTRA_WIDTH
Constant Value:
10
(0x0000000a)
protected
static
final
float
LETTER_LEFT_OFFSET
protected
static
final
int
PADDING
Constant Value:
1
(0x00000001)
Fields
protected
final
Canvas
mCanvas
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
getLineHeight
()
public
int
getStringWidth
(String pText)
public
void
prepareLetters
(char... pCharacters)
public
synchronized
void
reload
()
public
synchronized
void
update
(GL10 pGL)
Protected Methods
protected
void
drawCharacterString
(String pCharacterAsString)