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 TypeMethodDescriptionbooleancompatibleWith(String cmap) intgetKerning(Glyph glyph1, Glyph glyph2) Gets the kerning between two glyphs.intbooleanisBuiltWith(String fontName) Checks whether theFontProgramwas built with corresponding fontName.booleanMethods 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:FontProgramGets the kerning between two glyphs.- Specified by:
-
getKerningin classFontProgram - Parameters:
-
glyph1- the first glyph -
glyph2- 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.
-