public class TrueTypeFont extends Object
Modifier and Type | Method and Description |
---|---|
void |
addTable(TTFTable table)
Add a table definition.
|
void |
close()
Close the underlying resources.
|
CMAPTable |
getCMAP()
Get the cmap table for this TTF.
|
GlyphTable |
getGlyph()
Get the glyf table for this TTF.
|
HeaderTable |
getHeader()
Get the head table for this TTF.
|
HorizontalHeaderTable |
getHorizontalHeader()
Get the hhea table for this TTF.
|
HorizontalMetricsTable |
getHorizontalMetrics()
Get the hmtx table for this TTF.
|
IndexToLocationTable |
getIndexToLocation()
Get the loca table for this TTF.
|
MaximumProfileTable |
getMaximumProfile()
Get the maxp table for this TTF.
|
NamingTable |
getNaming()
This will get the naming table for the true type font.
|
InputStream |
getOriginalData()
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).
|
OS2WindowsMetricsTable |
getOS2Windows()
Get the OS/2 table for this TTF.
|
PostScriptTable |
getPostScript()
Get the postscript table for this TTF.
|
Collection<TTFTable> |
getTables()
Get all of the tables.
|
float |
getVersion() |
void |
setVersion(float versionValue) |
public void close() throws IOException
IOException
- If there is an error closing the resources.public float getVersion()
public void setVersion(float versionValue)
versionValue
- The version to set.public void addTable(TTFTable table)
table
- The table to add.public Collection<TTFTable> getTables()
public NamingTable getNaming()
public PostScriptTable getPostScript()
public OS2WindowsMetricsTable getOS2Windows()
public MaximumProfileTable getMaximumProfile()
public HeaderTable getHeader()
public HorizontalHeaderTable getHorizontalHeader()
public HorizontalMetricsTable getHorizontalMetrics()
public IndexToLocationTable getIndexToLocation()
public GlyphTable getGlyph()
public CMAPTable getCMAP()
public InputStream getOriginalData() throws IOException
IOException
- If there is an error getting the font data.Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.