public static class WZTextManager.Font extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CHAR_BATCH_SIZE |
static int |
CHAR_CNT |
static int |
CHAR_END |
static int |
CHAR_NONE |
static int |
CHAR_START |
static int |
CHAR_UNKNOWN |
static int |
FONT_SIZE_MAX |
static int |
FONT_SIZE_MIN |
Modifier and Type | Method and Description |
---|---|
int |
getCellHeight() |
int |
getCellWidth() |
float |
getCharHeight() |
float |
getCharHeight(float scale)
Get the character height
|
float |
getCharWidth(char chr,
float scale)
Get width of the specified character
|
float |
getCharWidthMax() |
float |
getCharWidthMax(float scale)
Get the maximum character width
|
float[] |
getCharWidths() |
String |
getFileName()
Get the filename the font was loaded from
|
float |
getFontAscent()
Get the font ascent
|
float |
getFontAscent(float scale)
Return the font ascent
|
float |
getFontDescent()
Get the font descent
|
float |
getFontDescent(float scale)
Return the font descent
|
float |
getFontHeight()
Get the maximum character height
|
UUID |
getFontId()
Get the unique id used to reference this font in the API
|
int |
getFontPadX()
Get the extra padding per character (X Axis)
|
int |
getFontPadY()
Get the extra padding per character (Y Axis)
|
int |
getFontSize()
Get the size requested for this font when it was loaded
|
float |
getLength(String text,
float scale)
Get the length of a text string using this font at the specified scale
|
public static final int CHAR_START
public static final int CHAR_END
public static final int CHAR_CNT
public static final int CHAR_NONE
public static final int CHAR_UNKNOWN
public static final int FONT_SIZE_MIN
public static final int FONT_SIZE_MAX
public static final int CHAR_BATCH_SIZE
public UUID getFontId()
public String getFileName()
public int getFontSize()
public float getFontHeight()
public int getFontPadX()
public int getFontPadY()
public float getFontAscent()
public float getFontDescent()
public float getCharWidthMax()
public float[] getCharWidths()
public float getCharHeight()
public int getCellWidth()
public int getCellHeight()
public float getLength(String text, float scale)
public float getCharWidth(char chr, float scale)
chr
- the character whose width to returnpublic float getCharWidthMax(float scale)
public float getCharHeight(float scale)
public float getFontAscent(float scale)
public float getFontDescent(float scale)
© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal