public class Font
extends java.lang.Object
Font.Builder
.Modifier and Type | Class and Description |
---|---|
static class |
Font.Builder
A builder for a font object.
|
static class |
Font.MacintoshEncodingId
Macintosh encoding ids.
|
static class |
Font.PlatformId
Platform ids.
|
static class |
Font.UnicodeEncodingId
Unicode encoding ids.
|
static class |
Font.WindowsEncodingId
Windows encoding ids.
|
Modifier and Type | Field and Description |
---|---|
static int |
SFNTVERSION_1 |
Modifier and Type | Method and Description |
---|---|
long |
checksum()
Get the checksum for this font.
|
byte[] |
digest()
Gets a copy of the fonts digest that was created when the font was read.
|
<T extends Table> |
getTable(int tag)
Get the table in this font with the specified id.
|
boolean |
hasTable(int tag)
Does the font have a particular table.
|
java.util.Iterator<? extends Table> |
iterator()
Get an iterator over all the tables in the font.
|
int |
numTables()
Get the number of tables in this font.
|
int |
sfntVersion()
Gets the sfnt version set in the sfnt wrapper of the font.
|
java.util.Map<java.lang.Integer,? extends Table> |
tableMap()
Get a map of the tables in this font accessed by table tag.
|
java.lang.String |
toString() |
public int sfntVersion()
public byte[] digest()
null
if one wasn't set
at creation timepublic long checksum()
public int numTables()
public java.util.Iterator<? extends Table> iterator()
public boolean hasTable(int tag)
tag
- the table identifierpublic <T extends Table> T getTable(int tag)
T
- the type of the tabletag
- the identifier of the tablepublic java.util.Map<java.lang.Integer,? extends Table> tableMap()
public java.lang.String toString()
toString
in class java.lang.Object