Class Glyf
- java.lang.Object
-
- com.adobe.fontengine.font.opentype.Table
-
- com.adobe.fontengine.font.opentype.Glyf
-
public final class Glyf extends Table
Gives access to the 'glyf' 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.Version handling
'glyf' tables are not versionned.
Synchronization
Like all tables, these objects are immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Glyf.CoordFlags
static interface
Glyf.Flags
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.util.Map tables)
void
streamForCFF(OpenTypeFont otf, java.util.Map tables, boolean removeOverlaps)
void
subsetAndStream(Subset subset, java.util.Map tables)
void
subsetAndStreamForCFF(Subset subset, OpenTypeFont otf, java.util.Map tables, boolean removeOverlaps)
-
-
-
Method Detail
-
getGlyphBoundingBox
public Rect getGlyphBoundingBox(int gid) throws UnsupportedFontException, InvalidFontException
Get the bounding box for a glyph.
-
isComposite
public boolean isComposite(int gid) throws UnsupportedFontException, InvalidFontException
Return whether is glyph is composite.
-
subsetAndStream
public void subsetAndStream(Subset subset, java.util.Map tables) throws UnsupportedFontException, InvalidFontException
-
stream
public void stream(java.util.Map tables)
-
pullComponentGlyphs
public void pullComponentGlyphs(Subset subset, int gid) throws UnsupportedFontException, InvalidFontException
-
createTTOutline
public TTOutline createTTOutline(OpenTypeFont font, int gid) throws UnsupportedFontException, InvalidFontException
-
streamForCFF
public void streamForCFF(OpenTypeFont otf, java.util.Map tables, boolean removeOverlaps) throws UnsupportedFontException, InvalidFontException, java.io.IOException
- Throws:
UnsupportedFontException
InvalidFontException
java.io.IOException
-
subsetAndStreamForCFF
public void subsetAndStreamForCFF(Subset subset, OpenTypeFont otf, java.util.Map tables, boolean removeOverlaps) throws UnsupportedFontException, InvalidFontException, java.io.IOException
- Throws:
UnsupportedFontException
InvalidFontException
java.io.IOException
-
-