public class TrueTypeFont
extends java.lang.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.
|
java.io.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.
|
java.util.Collection<TTFTable> |
getTables()
Get all of the tables.
|
float |
getVersion() |
void |
setVersion(float versionValue) |
public void close() throws java.io.IOException
java.io.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 java.util.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 java.io.InputStream getOriginalData() throws java.io.IOException
java.io.IOException
- If there is an error getting the font data.