public class Font
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CmapTable |
cmap |
private GlyfTable |
glyf |
private HeadTable |
head |
private HheaTable |
hhea |
private HmtxTable |
hmtx |
private LocaTable |
loca |
private MaxpTable |
maxp |
private NameTable |
name |
private Os2Table |
os2 |
private java.lang.String |
path |
private PostTable |
post |
private TableDirectory |
tableDirectory |
private Table[] |
tables |
Constructor and Description |
---|
Font()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static Font |
create() |
static Font |
create(java.lang.String pathName) |
int |
getAscent() |
CmapTable |
getCmapTable() |
int |
getDescent() |
Glyph |
getGlyph(int i) |
HeadTable |
getHeadTable() |
HheaTable |
getHheaTable() |
HmtxTable |
getHmtxTable() |
LocaTable |
getLocaTable() |
MaxpTable |
getMaxpTable() |
NameTable |
getNameTable() |
int |
getNumGlyphs() |
Os2Table |
getOS2Table() |
java.lang.String |
getPath() |
PostTable |
getPostTable() |
Table |
getTable(int tableType) |
TableDirectory |
getTableDirectory() |
protected void |
read(java.lang.String pathName) |
private java.lang.String path
private TableDirectory tableDirectory
private Table[] tables
private Os2Table os2
private CmapTable cmap
private GlyfTable glyf
private HeadTable head
private HheaTable hhea
private HmtxTable hmtx
private LocaTable loca
private MaxpTable maxp
private NameTable name
private PostTable post
public Table getTable(int tableType)
public Os2Table getOS2Table()
public CmapTable getCmapTable()
public HeadTable getHeadTable()
public HheaTable getHheaTable()
public HmtxTable getHmtxTable()
public LocaTable getLocaTable()
public MaxpTable getMaxpTable()
public NameTable getNameTable()
public PostTable getPostTable()
public int getAscent()
public int getDescent()
public int getNumGlyphs()
public Glyph getGlyph(int i)
public java.lang.String getPath()
public TableDirectory getTableDirectory()
protected void read(java.lang.String pathName)
pathName
- Path to the TTF font filepublic static Font create()
public static Font create(java.lang.String pathName)
pathName
- Path to the TTF font file