public final class Post extends Table
'post' tables have a major/minor version number. This implementation:
UnsupportedFontException
at construction time.Version 2.5 is treated as if it were a major version number (which it should have been, since a table with version 2.5 cannot be interpreted correctly by a 2.0 client).
When some data is not present in the actual version of the table, the accessors return identified values.
Like all tables, these objects are immutable.
| Modifier and Type | Method and Description |
|---|---|
String |
getGlyphName(int gid)
Get the name of a glyph.
|
int |
getItalicAngle() |
int |
getNumberOfGlyphs()
Get the number of glyphs.
|
int |
getTableMajorVersion()
Get the major version of this table.
|
int |
getTableMinorVersion()
Get the minor version of this table.
|
int |
getUnderlinePosition()
Get the underline position.
|
int |
getUnderlineThickness()
Get the underline thickness.
|
int |
glyphName2gid(String name)
Get the index of a glyph given its name.
|
boolean |
isFixedPitch() |
void |
stream(Map tables) |
void |
subsetAndStream(Subset subset,
SubsetSimpleTrueType ttSubset,
Map tables) |
void |
subsetAndStreamForCFF(Map tables) |
public int getTableMajorVersion()
throws InvalidFontException
InvalidFontExceptionpublic int getTableMinorVersion()
throws InvalidFontException
InvalidFontExceptionpublic int getItalicAngle()
throws InvalidFontException
InvalidFontExceptionpublic int getUnderlinePosition()
throws InvalidFontException
InvalidFontExceptionpublic int getUnderlineThickness()
throws InvalidFontException
InvalidFontExceptionpublic boolean isFixedPitch()
throws InvalidFontException
InvalidFontExceptionpublic int getNumberOfGlyphs()
throws InvalidFontException
InvalidFontExceptionpublic String getGlyphName(int gid)
public int glyphName2gid(String name) throws InvalidFontException
InvalidFontExceptionpublic void subsetAndStreamForCFF(Map tables) throws InvalidFontException
InvalidFontExceptionpublic void subsetAndStream(Subset subset, SubsetSimpleTrueType ttSubset, Map tables) throws UnsupportedFontException, InvalidFontException
public void stream(Map tables)
Copyright © 2010 - 2020 Adobe. All Rights Reserved