public static class WOWZTextManager.Font
extends java.lang.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)
Gets the character height.
|
float |
getCharWidth(char chr,
float scale)
Gets the width of the specified character.
|
float |
getCharWidthMax() |
float |
getCharWidthMax(float scale)
Gets the maximum character width.
|
float[] |
getCharWidths() |
java.lang.String |
getFileName()
Gets the file name the font was loaded from.
|
float |
getFontAscent()
Gets the font ascent.
|
float |
getFontAscent(float scale)
Gets the font ascent.
|
float |
getFontDescent()
Gets the font descent.
|
float |
getFontDescent(float scale)
Gets the font descent.
|
float |
getFontHeight()
Gets the maximum character height.
|
java.util.UUID |
getFontId()
Gets the unique ID used to reference this font in the API.
|
int |
getFontPadX()
Gets the extra horizontal padding per character.
|
int |
getFontPadY()
Get the extra vertical padding per character.
|
int |
getFontSize()
Gets the size requested for this font when it was loaded.
|
float |
getLength(java.lang.String text,
float scale)
Gets 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 java.util.UUID getFontId()
public java.lang.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(java.lang.String text, float scale)
public float getCharWidth(char chr, float scale)
chr
- The character whose width should be returned.public float getCharWidthMax(float scale)
public float getCharHeight(float scale)
public float getFontAscent(float scale)
public float getFontDescent(float scale)
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal