

Public Member Functions | |
| native int | getFontStyle () |
| Get font render style. | |
| native void | setFontStyle (int fontStyle) |
| Set font render style. | |
| native int | fontHeight () |
| Get font maximum total height. | |
| native int | fontAscent () |
| Get font highest ascent (height above base). | |
| native int | fontDescent () |
| Get font lowest descent (height below base). | |
| native int | fontLineSkip () |
| Get font recommended line spacing. | |
| native int | fontFaces () |
| Get the number of faces in a font. | |
| native boolean | fontFaceIsFixedWidth () |
| Check font has fixed width. | |
| native String | fontFaceFamilyName () |
| Get font face family name. | |
| native String | fontFaceStyleName () |
| Get font face style name. | |
| native int | widthText (CharSequence text) |
| Get width of rendered string. | |
| native int | heightText (CharSequence text) |
| Get height of rendered string. | |
| native Surface | renderTextSolid (CharSequence text, Color foregroundColor) |
| renderTextSolid | |
| native Surface | renderTextShaded (CharSequence text, Color foregroundColor, Color backgroundColor) |
| renderTextShaded | |
| native Surface | renderTextBlended (CharSequence text, Color foregroundColor) |
| renderTextBlended | |
| native void | closeFont () |
| Close font. | |
| void | finalize () |
Static Public Member Functions | |
| static native Font | openFont (String fontFilePath, int ptSize) |
| Open font. | |
| static native Font | openFontIndex (String fontFilePath, int ptSize, long index) |
| Open font with face index. | |
Protected Attributes | |
| gnu.gcj.RawData | implementation = null |
Private Member Functions | |
| Font () | |
|
|
|
|
|
Close font.
|
|
|
|
|
|
Get font highest ascent (height above base).
|
|
|
Get font lowest descent (height below base).
|
|
|
Get font face family name.
|
|
|
Check font has fixed width.
|
|
|
Get the number of faces in a font.
|
|
|
Get font face style name.
|
|
|
Get font maximum total height.
|
|
|
Get font recommended line spacing.
|
|
|
Get font render style. The style as a bitmask composed of the following masks:
TTF_STYLE_NORMAL is returned.
|
|
|
Get height of rendered string.
|
|
||||||||||||
|
Open font.
|
|
||||||||||||||||
|
Open font with face index.
|
|
||||||||||||
|
renderTextBlended
|
|
||||||||||||||||
|
renderTextShaded
|
|
||||||||||||
|
renderTextSolid
|
|
|
Set font render style. The style as a bitmask composed of the following masks:
TTF_STYLE_NORMAL.
|
|
|
Get width of rendered string.
|
|
|
|
1.4.3