Class CidFont
java.lang.Object
com.itextpdf.io.font.FontProgram
com.itextpdf.io.font.CidFont
-
Field Summary
FieldsFields inherited from class FontProgram
avgWidth, codeToGlyph, DEFAULT_WIDTH, encodingScheme, fontIdentification, fontMetrics, fontNames, HORIZONTAL_SCALING_FACTOR, isFontSpecific, registry, unicodeToGlyph, UNITS_NORMALIZATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompatibleWith(String cmap) private static StringgetCompatibleUniMap(String registry, String cmap) intgetKerning(Glyph glyph1, Glyph glyph2) Gets the kerning between two glyphs.intprivate voidinitializeCidFontNameAndStyle(String fontName) private voidinitializeCidFontProperties(Map<String, Object> fontDesc, String cmap) booleanisBuiltWith(String fontName) Checks whether theFontProgramwas built with corresponding fontName.booleanMethods inherited from class FontProgram
convertGlyphSpaceToTextSpace, convertGlyphSpaceToTextSpace, convertGlyphSpaceToTextSpace, convertTextSpaceToGlyphSpace, countOfGlyphs, fixSpaceIssue, getAvgWidth, getCharBBox, getFontIdentification, getFontMetrics, getFontNames, getGlyph, getGlyphByCode, getKerning, getRegistry, getWidth, hasKernPairs, setBbox, setBold, setCapHeight, setFixedPitch, setFontFamily, setFontName, setFontStretch, setFontWeight, setItalicAngle, setRegistry, setStemH, setStemV, setTypoAscender, setTypoDescender, setXHeight, toString, trimFontStyle
-
Field Details
-
fontName
-
pdfFontFlags
private int pdfFontFlags -
compatibleCmaps
-
-
Constructor Details
-
CidFont
-
-
Method Details
-
compatibleWith
-
getKerning
Description copied from class:FontProgramGets the kerning between two glyphs.- Specified by:
getKerningin classFontProgram- Parameters:
glyph1- the first glyphglyph2- the second glyph- Returns:
- the kerning to be applied
-
getPdfFontFlags
public int getPdfFontFlags()- Specified by:
getPdfFontFlagsin classFontProgram
-
isFontSpecific
public boolean isFontSpecific()- Overrides:
isFontSpecificin classFontProgram
-
isBuiltWith
Description copied from class:FontProgramChecks whether theFontProgramwas built with corresponding fontName. Default value is false unless overridden.- Overrides:
isBuiltWithin classFontProgram- Parameters:
fontName- a font name or path to a font program- Returns:
- true, if the FontProgram was built with the fontProgram. Otherwise false.
-
initializeCidFontNameAndStyle
-
initializeCidFontProperties
-
getCompatibleUniMap
-