public class MtxFontBuilder
extends java.lang.Object
Constructor and Description |
---|
MtxFontBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addTable(int tag,
ReadableFontData data)
Add a table to the font being built.
|
void |
addTableBytes(int tag,
byte[] data)
Add a table to the font being built.
|
byte[] |
build()
Build the font, packing all tables into an OpenType (SFNT) structure.
|
MtxHeadBuilder |
getHeadBuilder() |
public MtxHeadBuilder getHeadBuilder()
public void addTable(int tag, ReadableFontData data)
tag
- 4-byte tag of the table, same format as sfntly.Tagdata
- ReadableFontData for table contentspublic void addTableBytes(int tag, byte[] data)
tag
- 4-byte tag of the table, same format as sfntly.Tagdata
- byte[] data for table contentspublic byte[] build()