public final class TabletFont
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
TabletFont.Glyph |
| Constructor and Description |
|---|
TabletFont(java.io.File file) |
TabletFont(java.io.InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
int |
draw(TabletBitmap target,
java.lang.String s,
int x,
int y,
int intensity) |
int |
getAscent() |
int |
getDescent() |
TabletFont.Glyph |
getGlyph(int codePoint) |
int |
getHeight() |
int |
getPointSize() |
int |
getStringWidth(java.lang.String s) |
int |
getWidth() |
boolean |
isBold() |
boolean |
isItalic() |
static void |
main(java.lang.String[] args) |
public TabletFont(java.io.File file)
throws java.lang.Exception
java.lang.Exceptionpublic TabletFont(java.io.InputStream stream)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isBold()
public boolean isItalic()
public int getPointSize()
public int getWidth()
public int getHeight()
public int getAscent()
public int getDescent()
public TabletFont.Glyph getGlyph(int codePoint)
public int getStringWidth(java.lang.String s)
public int draw(TabletBitmap target, java.lang.String s, int x, int y, int intensity)
public static void main(java.lang.String[] args)