public interface FontTableResource extends CommonHandle, InstantiatingProcedure, NumEntries, PseudoWidget
| FONT-TABLE attribute or method | API |
|---|---|
| GET-TEXT-HEIGHT-CHARS | getTextHeightChars() |
| GET-TEXT-HEIGHT-PIXELS | getTextHeightPixels() |
| GET-TEXT-WIDTH-CHARS | getTextWidthChars(java.lang.String) |
| GET-TEXT-WIDTH-CHARS | getTextWidthPixels(java.lang.String) |
handle.unwrapFontTable() API, which, depending on the
handle's state, it either returns an FontTable.asHandle()
instance or a dynamic proxy using handle.invalidAttrAccessProxy| Modifier and Type | Method and Description |
|---|---|
decimal |
getTextHeightChars()
Get the height in characters unit, of the default font.
|
decimal |
getTextHeightChars(int64 fontNum)
Get the height in characters unit, of the specified font.
|
decimal |
getTextHeightChars(long fontNum)
Get the height in characters unit, of the specified font.
|
integer |
getTextHeightPixels()
Get the height in pixels, of the default font.
|
integer |
getTextHeightPixels(int64 fontNum)
Get the height in pixels, of the specified font.
|
integer |
getTextHeightPixels(long fontNum)
Get the height in pixels, of the specified font.
|
decimal |
getTextWidthChars(character txt)
Get the width of the specified text, in character units, using the default font.
|
decimal |
getTextWidthChars(character txt,
int64 fontNum)
Get the width of the specified text, in character units, using the specified font.
|
decimal |
getTextWidthChars(character txt,
long fontNum)
Get the width of the specified text, in character units, using the specified font.
|
decimal |
getTextWidthChars(java.lang.String txt)
Get the width of the specified text, in character units, using the default font.
|
decimal |
getTextWidthChars(java.lang.String txt,
int64 fontNum)
Get the width of the specified text, in character units, using the specified font.
|
decimal |
getTextWidthChars(java.lang.String txt,
long fontNum)
Get the width of the specified text, in character units, using the specified font.
|
integer |
getTextWidthPixels(character txt)
Get the width of the specified text, in pixels, using the default font.
|
integer |
getTextWidthPixels(character txt,
int64 fontNum)
Get the width of the specified text, in pixels, using the specified font.
|
integer |
getTextWidthPixels(character txt,
long fontNum)
Get the width of the specified text, in pixels, using the specified font.
|
integer |
getTextWidthPixels(java.lang.String txt)
Get the width of the specified text, in pixels, using the default font.
|
integer |
getTextWidthPixels(java.lang.String txt,
int64 fontNum)
Get the width of the specified text, in pixels, using the specified font.
|
integer |
getTextWidthPixels(java.lang.String txt,
long fontNum)
Get the width of the specified text, in pixels, using the specified font.
|
readOnlyError, readOnlyError, resourceTypeid, id, unknown, validinstantiatingProceduregetNumEntries, setNumEntries, setNumEntriesdecimal getTextHeightChars()
decimal getTextHeightChars(long fontNum)
fontNum - The entry in the font-table.decimal getTextHeightChars(int64 fontNum)
fontNum - The entry in the font-table.integer getTextHeightPixels()
integer getTextHeightPixels(long fontNum)
fontNum - The entry in the font-table.integer getTextHeightPixels(int64 fontNum)
fontNum - The entry in the font-table.decimal getTextWidthChars(java.lang.String txt)
txt - The text.decimal getTextWidthChars(character txt)
txt - The text.decimal getTextWidthChars(java.lang.String txt, long fontNum)
txt - The text.fontNum - The entry in the font-table.decimal getTextWidthChars(character txt, long fontNum)
txt - The text.fontNum - The entry in the font-table.decimal getTextWidthChars(java.lang.String txt, int64 fontNum)
txt - The text.fontNum - The entry in the font-table.decimal getTextWidthChars(character txt, int64 fontNum)
txt - The text.fontNum - The entry in the font-table.integer getTextWidthPixels(java.lang.String txt)
txt - The text.integer getTextWidthPixels(character txt)
txt - The text.integer getTextWidthPixels(java.lang.String txt, long fontNum)
txt - The text.fontNum - The entry in the font-table.integer getTextWidthPixels(character txt, long fontNum)
txt - The text.fontNum - The entry in the font-table.integer getTextWidthPixels(java.lang.String txt, int64 fontNum)
txt - The text.fontNum - The entry in the font-table.