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
Glyphobjects 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 interfaceGlyf.CoordFlagsstatic interfaceGlyf.Flags
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TTOutlinecreateTTOutline(OpenTypeFont font, int gid)RectgetGlyphBoundingBox(int gid)Get the bounding box for a glyph.booleanisComposite(int gid)Return whether is glyph is composite.voidpullComponentGlyphs(Subset subset, int gid)voidstream(Map tables)voidstreamForCFF(OpenTypeFont otf, Map tables, boolean removeOverlaps)voidsubsetAndStream(Subset subset, Map tables)voidsubsetAndStreamForCFF(Subset subset, OpenTypeFont otf, 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, InvalidFontExceptionReturn whether is glyph is composite.
-
subsetAndStream
public void subsetAndStream(Subset subset, Map tables) throws UnsupportedFontException, InvalidFontException
-
stream
public void stream(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, Map tables, boolean removeOverlaps) throws UnsupportedFontException, InvalidFontException, IOException
-
subsetAndStreamForCFF
public void subsetAndStreamForCFF(Subset subset, OpenTypeFont otf, Map tables, boolean removeOverlaps) throws UnsupportedFontException, InvalidFontException, IOException
-
-