public class CIDFontType2Program extends BaseTrueTypeProgram implements FontProgram
encodingMappingArray, parser, widths| Constructor and Description |
|---|
CIDFontType2Program(ASInputStream stream,
CMap cMap,
COSObject cidToGID)
Constructor from font stream and encoding details.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCID(int cid)
Method works only for fonts where cid notation is used.
|
boolean |
containsCode(int code)
Checks if font contains character with given code.
|
boolean |
containsGlyph(String glyphName)
Checks if this font program has glyph for given glyph name.
|
List<Integer> |
getCIDList() |
String |
getGlyphName(int code)
Returns glyph name for glyph with given code.
|
float |
getWidth(int code)
Returns width of glyph for given character code.
|
float |
getWidth(String glyphName)
Returns width of glyph for given glyph name.
|
getFontProgramResource, getNGlyphs, getNrOfCMaps, getWidthWithCheck, isAttemptedParsing, isCmapPresent, isSuccessfulParsing, parseFontclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFontProgramResource, isAttemptedParsing, isSuccessfulParsing, parseFontpublic CIDFontType2Program(ASInputStream stream, CMap cMap, COSObject cidToGID) throws IOException
stream - cMap - cidToGID - IOExceptionpublic float getWidth(int code)
getWidth in interface FontProgramcode - is code for glyph.public float getWidth(String glyphName)
getWidth in interface FontProgramglyphName - is name for glyph.public boolean containsCode(int code)
containsCode in interface FontProgramcode - is character code.public boolean containsGlyph(String glyphName)
FontProgramcontainsGlyph in interface FontProgramglyphName - is the name of glyph.public String getGlyphName(int code)
FontProgramgetGlyphName in interface FontProgramcode - is code of glyph.public boolean containsCID(int cid)
FontProgramcontainsCID in interface FontProgramCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.