public class OpenTypeFont extends TrueTypeFont
Modifier and Type | Field and Description |
---|---|
private boolean |
isPostScript |
tables
Constructor and Description |
---|
OpenTypeFont(TTFDataStream fontData)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CFFTable |
getCFF()
Get the "CFF" table for this OTF.
|
GlyphTable |
getGlyph()
Get the glyf table for this TTF.
|
java.awt.geom.GeneralPath |
getPath(java.lang.String name)
Returns the path for the character with the given name.
|
boolean |
hasLayoutTables()
Returns true if this font uses OpenType Layout (Advanced Typographic) tables.
|
boolean |
isPostScript()
Returns true if this font is a PostScript outline font.
|
(package private) void |
setVersion(float versionValue)
Set the version.
|
addTable, close, disableGsubFeature, enableGsubFeature, enableVerticalSubstitutions, getAdvanceHeight, getAdvanceWidth, getCmap, getFontBBox, getFontMatrix, getGsub, getHeader, getHorizontalHeader, getHorizontalMetrics, getIndexToLocation, getKerning, getMaximumProfile, getName, getNaming, getNumberOfGlyphs, getOriginalData, getOriginalDataSize, getOS2Windows, getPostScript, getTable, getTableBytes, getTableMap, getTables, getUnicodeCmap, getUnicodeCmap, getUnicodeCmapLookup, getUnicodeCmapLookup, getUnitsPerEm, getVersion, getVerticalHeader, getVerticalMetrics, getVerticalOrigin, getWidth, hasGlyph, nameToGID, readTable, toString
OpenTypeFont(TTFDataStream fontData)
fontData
- The font data.void setVersion(float versionValue)
TrueTypeFont
setVersion
in class TrueTypeFont
versionValue
- The version to set.public CFFTable getCFF() throws java.io.IOException
java.io.IOException
public GlyphTable getGlyph() throws java.io.IOException
TrueTypeFont
getGlyph
in class TrueTypeFont
java.io.IOException
- if there was an error reading the table.public java.awt.geom.GeneralPath getPath(java.lang.String name) throws java.io.IOException
FontBoxFont
getPath
in interface FontBoxFont
getPath
in class TrueTypeFont
java.io.IOException
- if the path could not be readpublic boolean isPostScript()
public boolean hasLayoutTables()