public class PDCIDFont extends PDFont
| Modifier and Type | Field and Description |
|---|---|
protected CMap |
cMap |
dictionary, encoding, fontDescriptor, fontProgram, isFontParsed, toUnicodeCMap| Modifier | Constructor and Description |
|---|---|
protected |
PDCIDFont(COSDictionary dictionary) |
|
PDCIDFont(COSDictionary dictionary,
CMap cMap)
Constructor from COSDictionary and CMap with code -> cid mapping.
|
|
PDCIDFont(COSDictionary dictionary,
CMap cMap,
FontProgram fontProgram,
boolean isFontParsed)
Constructor that sets font program for this CIDFont.
|
| Modifier and Type | Method and Description |
|---|---|
COSStream |
getCIDSet() |
PDCIDSystemInfo |
getCIDSystemInfo() |
COSObject |
getCIDToGIDMap() |
Double |
getDefaultWidth() |
FontProgram |
getFontProgram() |
Double |
getWidth(int code)
Gets width for glyph with given code in this font.
|
float |
getWidthFromProgram(int code)
Gets width of given code from font program.
|
boolean |
glyphIsPresent(int code)
Checks if glyph for given code is present in this font.
|
int |
readCode(InputStream stream)
Method reads next character code from stream according to font data.
|
getDictionary, getDifferences, getDifferencesFromCosEncoding, getEncoding, getEncodingMapping, getEncodingMappingFromCOSObject, getFirstChar, getFontDescriptor, getFontFile2, getFontName, getLastChar, getName, getProgramSubtype, getSubtype, getType, getWidths, isSubset, isSuccessfullyParsed, isSymbolic, setSuccessfullyParsed, toUnicodeisInherited, setInheritedclear, empty, getBooleanKey, getIntegerKey, getKey, getNameKey, getObject, getRealKey, getStringKey, knownKey, removeKey, setBooleanKey, setIntegerKey, setKey, setNameKey, setObject, setObject, setStringKey, updateFromObject, updateToObjectprotected CMap cMap
public PDCIDFont(COSDictionary dictionary, CMap cMap)
dictionary - is COSDictionary of CIDFont.cMap - is CMap object containing mapping code -> cid.public PDCIDFont(COSDictionary dictionary, CMap cMap, FontProgram fontProgram, boolean isFontParsed)
dictionary - is COSDictionary of CIDFont.cMap - is CMap object containing mapping code -> cid.fontProgram - is embedded font program associated with this CIDFont.isFontParsed - is true if embedded font program has been already
parsed.protected PDCIDFont(COSDictionary dictionary)
public COSStream getCIDSet()
public COSObject getCIDToGIDMap()
public Double getWidth(int code)
public Double getDefaultWidth()
getDefaultWidth in class PDFontpublic int readCode(InputStream stream) throws IOException
readCode in class PDFontstream - is stream with raw data.IOException - if reading fails.public FontProgram getFontProgram()
getFontProgram in class PDFontpublic float getWidthFromProgram(int code)
PDFontgetWidthFromProgram in class PDFontcode - is code of character in strings to display.public boolean glyphIsPresent(int code)
PDFontglyphIsPresent in class PDFontcode - is code for glyph in this font.public PDCIDSystemInfo getCIDSystemInfo()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.