public final class Glyf extends Table
Note that there is no public representation of the 'loca' table,
which is used only to access the 'glyf' table. Instead,
the Glyph objects accept gids to identify glyphs and
perform the necessary lookup in the 'loca' table.
'glyf' tables are not versionned.
Like all tables, these objects are immutable.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Glyf.CoordFlags |
static interface |
Glyf.Flags |
| Modifier and Type | Method and Description |
|---|---|
TTOutline |
createTTOutline(OpenTypeFont font,
int gid) |
Rect |
getGlyphBoundingBox(int gid)
Get the bounding box for a glyph.
|
boolean |
isComposite(int gid)
Return whether is glyph is composite.
|
void |
pullComponentGlyphs(Subset subset,
int gid) |
void |
stream(Map tables) |
void |
streamForCFF(OpenTypeFont otf,
Map tables,
boolean removeOverlaps) |
void |
subsetAndStream(Subset subset,
Map tables) |
void |
subsetAndStreamForCFF(Subset subset,
OpenTypeFont otf,
Map tables,
boolean removeOverlaps) |
public Rect getGlyphBoundingBox(int gid) throws UnsupportedFontException, InvalidFontException
public boolean isComposite(int gid)
throws UnsupportedFontException,
InvalidFontException
public void subsetAndStream(Subset subset, Map tables) throws UnsupportedFontException, InvalidFontException
public void stream(Map tables)
public void pullComponentGlyphs(Subset subset, int gid) throws UnsupportedFontException, InvalidFontException
public TTOutline createTTOutline(OpenTypeFont font, int gid) throws UnsupportedFontException, InvalidFontException
public void streamForCFF(OpenTypeFont otf, Map tables, boolean removeOverlaps) throws UnsupportedFontException, InvalidFontException, IOException
public void subsetAndStreamForCFF(Subset subset, OpenTypeFont otf, Map tables, boolean removeOverlaps) throws UnsupportedFontException, InvalidFontException, IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved