Class FontStyle
Defines a class for specifying of 2D font style used to draw text on the IRenderSurface
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class FontStyle extends Style
Constructors
FontStyle(Typeface typeface, float textSize, int textColor, boolean antiAliasing)
Creates an instance of FontStyle with specified arguments.
Declaration
public FontStyle(Typeface typeface, float textSize, int textColor, boolean antiAliasing)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.Typeface | typeface | The Typeface value. |
float | textSize | The value which determines the font size. |
int | textColor | The text color. |
boolean | antiAliasing | The value indicating whether the text should use antialiasing or no |
FontStyle(float textSize, int textColor)
Creates an instance of FontStyle with specified arguments.
Declaration
public FontStyle(float textSize, int textColor)
Parameters
Type | Name | Description |
---|---|---|
float | textSize | The value which determines the font size. |
int | textColor | The text color. |
Fields
DEFAULT_FONT_STYLE
Declaration
public static final FontStyle DEFAULT_FONT_STYLE
Field Value
Type | Description |
---|---|
antiAliasing
Declaration
public final boolean antiAliasing
Field Value
Type | Description |
---|---|
boolean |
textColor
Declaration
public final int textColor
Field Value
Type | Description |
---|---|
int |
textSize
Declaration
public final float textSize
Field Value
Type | Description |
---|---|
float |
typeface
Declaration
public final Typeface typeface
Field Value
Type | Description |
---|---|
android.graphics.Typeface |
Methods
equals(Object o)
Declaration
public boolean equals(Object o)
Parameters
Type | Name | Description |
---|---|---|
Object | o |
Returns
Type | Description |
---|---|
boolean |
Overrides
hashCode()
Declaration
public int hashCode()
Returns
Type | Description |
---|---|
int |
Overrides
initPaint(Paint paint)
Initialises a Paint with this FontStyle values
Declaration
public void initPaint(Paint paint)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.Paint | paint | The Paint to init |
initTextView(TextView textView)
Initialises a TextView with this FontStyle values
Declaration
public void initTextView(TextView textView)
Parameters
Type | Name | Description |
---|---|---|
android.widget.TextView | textView | The TextView to init |
isVisible()
Gets whether this style is visible
Declaration
public boolean isVisible()
Returns
Type | Description |
---|---|
boolean |