Class PDFEncodingBuilderImpl
java.lang.Object
com.adobe.fontengine.font.PDFEncodingBuilder
com.adobe.fontengine.font.opentype.PDFEncodingBuilderImpl
- All Implemented Interfaces:
Cmap.CmapSelector
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adobe.fontengine.font.PDFEncodingBuilder
PDFEncodingBuilder.Encoding -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcmapFound(int pid, int eid, int index) Called for each recognized subtable.intgetCodePoint(int subsetGlyphID, PDFEncodingBuilder.Encoding e) Fetch the codepoint associated with a glyph in the encoding e.getEncoding(int subsetGlyphID) Fetch the encoding that can be used with a glyph.Methods inherited from class com.adobe.fontengine.font.PDFEncodingBuilder
getInstance
-
Constructor Details
-
PDFEncodingBuilderImpl
public PDFEncodingBuilderImpl(OpenTypeFont font, Subset s) throws UnsupportedFontException, InvalidFontException
-
-
Method Details
-
getCodePoint
Description copied from class:PDFEncodingBuilderFetch the codepoint associated with a glyph in the encoding e.- Specified by:
getCodePointin classPDFEncodingBuilder- Parameters:
subsetGlyphID- the glyphID in a subset of a font.e- The encoding to fetch. e must have been returned from this.getEncoding with the same subsetGlyphID.- Returns:
- the code point.
-
getEncoding
Description copied from class:PDFEncodingBuilderFetch the encoding that can be used with a glyph.- Specified by:
getEncodingin classPDFEncodingBuilder- Parameters:
subsetGlyphID- the glyphID in a subset of the font.- Returns:
- The encoding to be used or null if subsetGlyphID is not directly encoded in the font.
-
cmapFound
public void cmapFound(int pid, int eid, int index) throws UnsupportedFontException, InvalidFontException Description copied from interface:Cmap.CmapSelectorCalled for each recognized subtable. The platform ids will always come from the list defined in class PlatformID. The encoding ids will always come from the lists defined in the classes MS_EncodingID and UnicodeEncodingID. The index tells which subtable is being enumerated.- Specified by:
cmapFoundin interfaceCmap.CmapSelector- Throws:
UnsupportedFontExceptionInvalidFontException
-