Package org.apache.batik.svggen.font
Class Font
- java.lang.Object
-
- org.apache.batik.svggen.font.Font
-
public class Font extends java.lang.ObjectThe TrueType font.- Version:
- $Id: Font.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description private CmapTablecmapprivate GlyfTableglyfprivate HeadTableheadprivate HheaTablehheaprivate HmtxTablehmtxprivate LocaTablelocaprivate MaxpTablemaxpprivate NameTablenameprivate Os2Tableos2private java.lang.Stringpathprivate PostTablepostprivate TableDirectorytableDirectoryprivate Table[]tables
-
Constructor Summary
Constructors Constructor Description Font()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Fontcreate()static Fontcreate(java.lang.String pathName)intgetAscent()CmapTablegetCmapTable()intgetDescent()GlyphgetGlyph(int i)HeadTablegetHeadTable()HheaTablegetHheaTable()HmtxTablegetHmtxTable()LocaTablegetLocaTable()MaxpTablegetMaxpTable()NameTablegetNameTable()intgetNumGlyphs()Os2TablegetOS2Table()java.lang.StringgetPath()PostTablegetPostTable()TablegetTable(int tableType)TableDirectorygetTableDirectory()protected voidread(java.lang.String pathName)
-
-
-
Field Detail
-
path
private java.lang.String path
-
tableDirectory
private TableDirectory tableDirectory
-
tables
private Table[] tables
-
os2
private Os2Table os2
-
cmap
private CmapTable cmap
-
glyf
private GlyfTable glyf
-
head
private HeadTable head
-
hhea
private HheaTable hhea
-
hmtx
private HmtxTable hmtx
-
loca
private LocaTable loca
-
maxp
private MaxpTable maxp
-
name
private NameTable name
-
post
private PostTable post
-
-
Method Detail
-
getTable
public Table getTable(int tableType)
-
getOS2Table
public Os2Table getOS2Table()
-
getCmapTable
public CmapTable getCmapTable()
-
getHeadTable
public HeadTable getHeadTable()
-
getHheaTable
public HheaTable getHheaTable()
-
getHmtxTable
public HmtxTable getHmtxTable()
-
getLocaTable
public LocaTable getLocaTable()
-
getMaxpTable
public MaxpTable getMaxpTable()
-
getNameTable
public NameTable getNameTable()
-
getPostTable
public PostTable getPostTable()
-
getAscent
public int getAscent()
-
getDescent
public int getDescent()
-
getNumGlyphs
public int getNumGlyphs()
-
getGlyph
public Glyph getGlyph(int i)
-
getPath
public java.lang.String getPath()
-
getTableDirectory
public TableDirectory getTableDirectory()
-
read
protected void read(java.lang.String pathName)
- Parameters:
pathName- Path to the TTF font file
-
create
public static Font create()
-
create
public static Font create(java.lang.String pathName)
- Parameters:
pathName- Path to the TTF font file
-
-