org.fontbox.ttf
Class TrueTypeFont
java.lang.Object
org.fontbox.ttf.TrueTypeFont
public class TrueTypeFont
extends java.lang.Object
A class to hold true type font information.
- Ben Litchfield (ben@benlitchfield.com)
addTable
public void addTable(TTFTable table)
Add a table definition.
table
- The table to add.
close
public void close()
throws IOException
Close the underlying resources.
getCMAP
public CMAPTable getCMAP()
Get the cmap table for this TTF.
getGlyph
public GlyphTable getGlyph()
Get the glyf table for this TTF.
getHeader
public HeaderTable getHeader()
Get the head table for this TTF.
getMaximumProfile
public MaximumProfileTable getMaximumProfile()
Get the maxp table for this TTF.
getNaming
public NamingTable getNaming()
This will get the naming table for the true type font.
getOriginalData
public InputStream getOriginalData()
throws IOException
This permit to get the data of the True Type Font
program representing the stream used to build this
object (normally from the TTFParser object).
- COSStream True type font program stream
getPostScript
public PostScriptTable getPostScript()
Get the postscript table for this TTF.
getTables
public Collection getTables()
Get all of the tables.
getVersion
public float getVersion()
setVersion
public void setVersion(float versionValue)
versionValue
- The version to set.