Package com.itextpdf.io.font
Class CidFont
java.lang.Object
com.itextpdf.io.font.FontProgram
com.itextpdf.io.font.CidFont
-
Field Summary
Fields inherited from class com.itextpdf.io.font.FontProgram
avgWidth, codeToGlyph, DEFAULT_WIDTH, encodingScheme, fontIdentification, fontMetrics, fontNames, HORIZONTAL_SCALING_FACTOR, isFontSpecific, registry, unicodeToGlyph, UNITS_NORMALIZATION
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compatibleWith
(String cmap) int
getKerning
(Glyph glyph1, Glyph glyph2) Gets the kerning between two glyphs.int
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
-
Method Details
-
compatibleWith
-
getKerning
Description copied from class:FontProgram
Gets the kerning between two glyphs.- Specified by:
-
getKerning
in classFontProgram
- Parameters:
-
glyph1
- the first glyph -
glyph2
- 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.
-