| Modifier and Type | Field and Description |
|---|---|
| private final TTFDataStream | |
| private final List | |
| private boolean | |
| private final Object | |
| private final Object | |
| private static final Log | |
| private int | |
| private volatile Map | |
| protected final Map | |
| private int | |
| private float |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public void | disableGsubFeature(String
The GSUB feature to disable featureTag)Disable a particular glyph substitution feature. |
| public void | enableGsubFeature(String
The GSUB feature to enable featureTag)Enable a particular glyph substitution feature. |
| public void | |
| public int | |
| public int | |
| public CmapTable | |
| public BoundingBox | getFontBBox()
Implements org. Returns the font's bounding box in PostScript units. |
| public List | getFontMatrix()
Implements org. Returns the FontMatrix in PostScript units. |
| public GlyphTable | |
| public GlyphSubstitutionTable | |
| public GsubData | Returns: the GSubData of the GlyphSubstitutionTable orGsubData#NO_DATA_FOUND if no GSUB data is
available, its scripts are not supported or it was disabled for that fontReturns the GSubData of the GlyphSubstitutionTable if present. |
| public HeaderTable | |
| public HorizontalHeaderTable | Returns: The hhea table or null if it doesn't exist.Get the hhea table for this TTF. |
| public HorizontalMetricsTable | Returns: The hmtx table or null if it doesn't exist.Get the hmtx table for this TTF. |
| public IndexToLocationTable | Returns: The loca table or null if it doesn't exist.Get the loca table for this TTF. |
| public KerningTable | Returns: The "kern" table or null if it doesn't exist.Get the "kern" table for this TTF. |
| public MaximumProfileTable | Returns: The maxp table or null if it doesn't exist.Get the maxp table for this TTF. |
| public String | |
| public NamingTable | Returns: The naming table or null if it doesn't exist.This will get the naming table for the true type font. |
| public int | Returns: the number of glyphsReturns the number of glyphs (MaximumProfile.numGlyphs). |
| public InputStream | Returns: COSStream TrueType font program streamGet the data of the TrueType Font program representing the stream used to build this object (normally from the TTFParser object). |
| public long | Returns: the size.Get the data size of the TrueType Font program representing the stream used to build this object (normally from the TTFParser object). |
| public OS2WindowsMetricsTable | |
| public GeneralPath | getPath(String
PostScript glyph name name)Implements org. Returns the path for the character with the given name. |
| public PostScriptTable | Returns: The postscript table or null if it doesn't exist.Get the postscript table for this TTF. |
| protected TTFTable | |
| public byte[] | Returns: the raw bytes of the given tablethe table to read. table)Returns the raw bytes of the given table. |
| public Map | |
| public byte[] | Returns: the raw bytes of the given tablethe table to read. table, int maximum length of array to return limit)Returns the raw bytes of the given table, no more than |
| public Collection | |
| private CmapSubtable | |
| public CmapLookup | Returns: cmap to perform glyph substitutionReturns the best Unicode from the font (the most general). |
| public CmapLookup | Returns: cmap to perform glyph substitutionFalse if we allow falling back to any cmap, even if it's not Unicode. isStrict)Returns the best Unicode from the font (the most general). |
| public int | |
| public float | |
| public VerticalHeaderTable | Returns: The vhea table or null if it doesn't exist.Get the vhea table for this TTF. |
| public VerticalMetricsTable | Returns: The vmtx table or null if it doesn't exist.Get the vmtx table for this TTF. |
| public VerticalOriginTable | Returns: The VORG table or null if it doesn't exist.Get the VORG table for this TTF. |
| public float | getWidth(String
PostScript glyph name name)Implements org. Returns the advance width for the character with the given name. |
| public boolean | hasGlyph(String
PostScript glyph name name)Implements org. Returns true if the font contains the given glyph. |
| public boolean | |
| public int | |
| private int | |
| private void | |
| pack-priv void | |
| pack-priv void | readTableHeaders(String
the name of the table to be read tag, FontHeaders consumes headers outHeaders)Read the given table headers. |
| public void | |
| pack-priv void | |
| public String |
| data | back to summary |
|---|---|
| private final TTFDataStream data | |
| enabledGsubFeatures | back to summary |
|---|---|
| private final List<String> enabledGsubFeatures | |
| enableGsub | back to summary |
|---|---|
| private boolean enableGsub | |
| lockPSNames | back to summary |
|---|---|
| private final Object lockPSNames | |
| lockReadtable | back to summary |
|---|---|
| private final Object lockReadtable | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| numberOfGlyphs | back to summary |
|---|---|
| private int numberOfGlyphs | |
| postScriptNames | back to summary |
|---|---|
| private volatile Map<String, Integer> postScriptNames | |
| tables | back to summary |
|---|---|
| protected final Map<String, TTFTable> tables | |
| unitsPerEm | back to summary |
|---|---|
| private int unitsPerEm | |
| version | back to summary |
|---|---|
| private float version | |
| TrueTypeFont | back to summary |
|---|---|
| pack-priv TrueTypeFont(TTFDataStream fontData) Constructor. Clients should use the TTFParser to create a new TrueTypeFont object.
| |
| addTable | back to summary |
|---|---|
| pack-priv void addTable(TTFTable table) Add a table definition. Package-private, used by TTFParser only.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| disableGsubFeature | back to summary |
|---|---|
| public void disableGsubFeature(String featureTag) Disable a particular glyph substitution feature.
| |
| enableGsubFeature | back to summary |
|---|---|
| public void enableGsubFeature(String featureTag) Enable a particular glyph substitution feature. This feature might not be supported by the font, or might not be implemented in PDFBox yet.
| |
| enableVerticalSubstitutions | back to summary |
|---|---|
| public void enableVerticalSubstitutions() Enable glyph substitutions for vertical writing. | |
| getAdvanceHeight | back to summary |
|---|---|
| public int getAdvanceHeight(int gid) throws IOException Returns the height for the given GID.
| |
| getAdvanceWidth | back to summary |
|---|---|
| public int getAdvanceWidth(int gid) throws IOException Returns the width for the given GID.
| |
| getCmap | back to summary |
|---|---|
| public CmapTable getCmap() throws IOException Get the "cmap" table for this TTF.
| |
| getFontBBox | back to summary |
|---|---|
| public BoundingBox getFontBBox() throws IOException Implements org. Doc from org. Returns the font's bounding box in PostScript units.
| |
| getFontMatrix | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns the FontMatrix in PostScript units.
| |
| getGlyph | back to summary |
|---|---|
| public GlyphTable getGlyph() throws IOException Get the glyf table for this TTF.
| |
| getGsub | back to summary |
|---|---|
| public GlyphSubstitutionTable getGsub() throws IOException Get the "gsub" table for this TTF.
| |
| getGsubData | back to summary |
|---|---|
| public GsubData getGsubData() throws IOException Returns the GSubData of the GlyphSubstitutionTable if present.
| |
| getHeader | back to summary |
|---|---|
| public HeaderTable getHeader() throws IOException Get the head table for this TTF.
| |
| getHorizontalHeader | back to summary |
|---|---|
| public HorizontalHeaderTable getHorizontalHeader() throws IOException Get the hhea table for this TTF.
| |
| getHorizontalMetrics | back to summary |
|---|---|
| public HorizontalMetricsTable getHorizontalMetrics() throws IOException Get the hmtx table for this TTF.
| |
| getIndexToLocation | back to summary |
|---|---|
| public IndexToLocationTable getIndexToLocation() throws IOException Get the loca table for this TTF.
| |
| getKerning | back to summary |
|---|---|
| public KerningTable getKerning() throws IOException Get the "kern" table for this TTF.
| |
| getMaximumProfile | back to summary |
|---|---|
| public MaximumProfileTable getMaximumProfile() throws IOException Get the maxp table for this TTF.
| |
| getName | back to summary |
|---|---|
| public String getName() throws IOException Implements org. Doc from org. The PostScript name of the font.
| |
| getNaming | back to summary |
|---|---|
| public NamingTable getNaming() throws IOException This will get the naming table for the true type font.
| |
| getNumberOfGlyphs | back to summary |
|---|---|
| public int getNumberOfGlyphs() throws IOException Returns the number of glyphs (MaximumProfile.numGlyphs).
| |
| getOriginalData | back to summary |
|---|---|
| public InputStream getOriginalData() throws IOException Get the data of the TrueType Font program representing the stream used to build this object (normally from the TTFParser object).
| |
| getOriginalDataSize | back to summary |
|---|---|
| public long getOriginalDataSize() Get the data size of the TrueType Font program representing the stream used to build this object (normally from the TTFParser object).
| |
| getOS2Windows | back to summary |
|---|---|
| public OS2WindowsMetricsTable getOS2Windows() throws IOException Get the OS/2 table for this TTF.
| |
| getPath | back to summary |
|---|---|
| public GeneralPath getPath(String name) throws IOException Implements org. Doc from org. Returns the path for the character with the given name.
| |
| getPostScript | back to summary |
|---|---|
| public PostScriptTable getPostScript() throws IOException Get the postscript table for this TTF.
| |
| getTable | back to summary |
|---|---|
| protected TTFTable getTable(String tag) throws IOException This will get the table for the given tag.
| |
| getTableBytes | back to summary |
|---|---|
| public byte[] getTableBytes(TTFTable table) throws IOException Returns the raw bytes of the given table.
| |
| getTableMap | back to summary |
|---|---|
| public Map Get all of the tables. | |
| getTableNBytes | back to summary |
|---|---|
| public byte[] getTableNBytes(TTFTable table, int limit) throws IOException Returns the raw bytes of the given table, no more than
| |
| getTables | back to summary |
|---|---|
| public Collection Get all of the tables.
| |
| getUnicodeCmapImpl | back to summary |
|---|---|
| private CmapSubtable getUnicodeCmapImpl(boolean isStrict) throws IOException | |
| getUnicodeCmapLookup | back to summary |
|---|---|
| public CmapLookup getUnicodeCmapLookup() throws IOException Returns the best Unicode from the font (the most general). The PDF spec says that "The means by which this is accomplished are implementation-dependent." The returned cmap will perform glyph substitution.
| |
| getUnicodeCmapLookup | back to summary |
|---|---|
| public CmapLookup getUnicodeCmapLookup(boolean isStrict) throws IOException Returns the best Unicode from the font (the most general). The PDF spec says that "The means by which this is accomplished are implementation-dependent." The returned cmap will perform glyph substitution.
| |
| getUnitsPerEm | back to summary |
|---|---|
| public int getUnitsPerEm() throws IOException Returns the units per EM (Header.unitsPerEm).
| |
| getVersion | back to summary |
|---|---|
public float getVersion()
| |
| getVerticalHeader | back to summary |
|---|---|
| public VerticalHeaderTable getVerticalHeader() throws IOException Get the vhea table for this TTF.
| |
| getVerticalMetrics | back to summary |
|---|---|
| public VerticalMetricsTable getVerticalMetrics() throws IOException Get the vmtx table for this TTF.
| |
| getVerticalOrigin | back to summary |
|---|---|
| public VerticalOriginTable getVerticalOrigin() throws IOException Get the VORG table for this TTF.
| |
| getWidth | back to summary |
|---|---|
| public float getWidth(String name) throws IOException Implements org. Doc from org. Returns the advance width for the character with the given name.
| |
| hasGlyph | back to summary |
|---|---|
| public boolean hasGlyph(String name) throws IOException Implements org. Doc from org. Returns true if the font contains the given glyph.
| |
| isEnableGsub | back to summary |
|---|---|
public boolean isEnableGsub()
| |
| nameToGID | back to summary |
|---|---|
| public int nameToGID(String name) throws IOException Returns the GID for the given PostScript name, if the "post" table is present.
| |
| parseUniName | back to summary |
|---|---|
| private int parseUniName(String name) Parses a Unicode PostScript name in the format uniXXXX. | |
| readPostScriptNames | back to summary |
|---|---|
| private void readPostScriptNames() throws IOException | |
| readTable | back to summary |
|---|---|
| pack-priv void readTable(TTFTable table) throws IOException Read the given table if necessary. Package-private, used by TTFParser only.
| |
| readTableHeaders | back to summary |
|---|---|
| pack-priv void readTableHeaders(String tag, FontHeaders outHeaders) throws IOException Read the given table headers. Package-private, used by TTFParser only.
| |
| setEnableGsub | back to summary |
|---|---|
| public void setEnableGsub(boolean enableGsub) Enable or disable the GSUB table for this font. GSUB table is enabled by default. | |
| setVersion | back to summary |
|---|---|
| pack-priv void setVersion(float versionValue) Set the version. Package-private, used by TTFParser only.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |