public static final class Font.Builder
extends java.lang.Object
Font
objects. The builder is a one use non-thread safe
object and cnce the Font
object has been created it is no longer
usable. To create a further Font
object new builder will be
required.Modifier and Type | Method and Description |
---|---|
Font |
build()
Build the
Font . |
void |
clearTableBuilders()
Clear all table builders.
|
FontFactory |
getFontFactory()
Get the font factory that created this font builder.
|
Table.Builder<? extends Table> |
getTableBuilder(int tag)
Get the table builder for the given tag.
|
boolean |
hasTableBuilder(int tag)
Does this font builder have the specified table builder.
|
Table.Builder<? extends Table> |
newTableBuilder(int tag)
Creates a new empty table builder for the table type given by the table
id tag.
|
Table.Builder<? extends Table> |
newTableBuilder(int tag,
ReadableFontData srcData)
Creates a new table builder for the table type given by the table id tag.
|
boolean |
readyToBuild()
Is the font ready to build?
|
Table.Builder<? extends Table> |
removeTableBuilder(int tag)
Remove the specified table builder from the font builder.
|
void |
setDigest(byte[] digest)
Set a unique fingerprint for the font object.
|
int |
tableBuilderCount()
Get the number of table builders in the font builder.
|
java.util.Map<java.lang.Integer,Table.Builder<? extends Table>> |
tableBuilderMap()
Get a map of the table builders in this font builder accessed by table
tag.
|
public FontFactory getFontFactory()
public boolean readyToBuild()
public Font build()
Font
. After this call this builder will no longer be
usable.Font
public void setDigest(byte[] digest)
digest
- a unique identifier for the fontpublic void clearTableBuilders()
public boolean hasTableBuilder(int tag)
tag
- the table builder tagpublic Table.Builder<? extends Table> getTableBuilder(int tag)
tag
- the table builder tagpublic Table.Builder<? extends Table> newTableBuilder(int tag)
tag
- public Table.Builder<? extends Table> newTableBuilder(int tag, ReadableFontData srcData)
tag
- srcData
- public java.util.Map<java.lang.Integer,Table.Builder<? extends Table>> tableBuilderMap()
public Table.Builder<? extends Table> removeTableBuilder(int tag)
tag
- the table builder to removepublic int tableBuilderCount()