org.apache.batik.svggen.font

Class Font

public class Font extends Object

The TrueType font.
Constructor Summary
Font()
Constructor
Method Summary
static Fontcreate()
static Fontcreate(String pathName)
intgetAscent()
CmapTablegetCmapTable()
intgetDescent()
GlyphgetGlyph(int i)
HeadTablegetHeadTable()
HheaTablegetHheaTable()
HmtxTablegetHmtxTable()
LocaTablegetLocaTable()
MaxpTablegetMaxpTable()
NameTablegetNameTable()
intgetNumGlyphs()
Os2TablegetOS2Table()
StringgetPath()
PostTablegetPostTable()
TablegetTable(int tableType)
TableDirectorygetTableDirectory()
protected voidread(String pathName)

Constructor Detail

Font

public Font()
Constructor

Method Detail

create

public static Font create()

create

public static Font create(String pathName)

Parameters: pathName Path to the TTF font file

getAscent

public int getAscent()

getCmapTable

public CmapTable getCmapTable()

getDescent

public int getDescent()

getGlyph

public Glyph getGlyph(int i)

getHeadTable

public HeadTable getHeadTable()

getHheaTable

public HheaTable getHheaTable()

getHmtxTable

public HmtxTable getHmtxTable()

getLocaTable

public LocaTable getLocaTable()

getMaxpTable

public MaxpTable getMaxpTable()

getNameTable

public NameTable getNameTable()

getNumGlyphs

public int getNumGlyphs()

getOS2Table

public Os2Table getOS2Table()

getPath

public String getPath()

getPostTable

public PostTable getPostTable()

getTable

public Table getTable(int tableType)

getTableDirectory

public TableDirectory getTableDirectory()

read

protected void read(String pathName)

Parameters: pathName Path to the TTF font file

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.