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 |
containsCode(int code)
Checks if font contains character with given ID.
|
float |
getWidth(int code)
Returns width of glyph for given character code.
|
float |
getWidth(String glyphName)
Returns width of glyph for given glyph name.
|
getCmapEncodingPlatform, getFontProgramResource, getNGlyphs, 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)
FontProgramgetWidth in interface FontProgramglyphName - is name for glyph.public boolean containsCode(int code)
FontProgramcontainsCode in interface FontProgramcode - is character code.Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.