Package com.itextpdf.io.font
Class CidFont
java.lang.Object
com.itextpdf.io.font.FontProgram
com.itextpdf.io.font.CidFont
-
Field Summary
FieldsFields inherited from class com.itextpdf.io.font.FontProgram
avgWidth, codeToGlyph, DEFAULT_WIDTH, encodingScheme, fontIdentification, fontMetrics, fontNames, HORIZONTAL_SCALING_FACTOR, isFontSpecific, registry, unicodeToGlyph, UNITS_NORMALIZATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
compatibleWith
(String cmap) private static String
getCompatibleUniMap
(String registry, String cmap) int
getKerning
(Glyph glyph1, Glyph glyph2) Gets the kerning between two glyphs.int
private void
initializeCidFontNameAndStyle
(String fontName) private void
initializeCidFontProperties
(Map<String, Object> fontDesc, String cmap) boolean
isBuiltWith
(String fontName) Checks whether theFontProgram
was built with corresponding fontName.boolean
Methods inherited from class com.itextpdf.io.font.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:FontProgram
Gets the kerning between two glyphs.- Specified by:
getKerning
in classFontProgram
- Parameters:
glyph1
- the first glyphglyph2
- the second glyph- Returns:
- the kerning to be applied
-
getPdfFontFlags
public int getPdfFontFlags()- Specified by:
getPdfFontFlags
in classFontProgram
-
isFontSpecific
public boolean isFontSpecific()- Overrides:
isFontSpecific
in classFontProgram
-
isBuiltWith
Description copied from class:FontProgram
Checks whether theFontProgram
was built with corresponding fontName. Default value is false unless overridden.- Overrides:
isBuiltWith
in 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
-