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) Tests whether this font supports a CMap.intgetKerning(Glyph glyph1, Glyph glyph2) Gets the kerning between two glyphs.intComputes the PDF font descriptor flags for this program.booleanisBuiltWith(String fontName) Checks whether theFontProgramwas built with corresponding fontName.booleanChecks whether this program uses its built-in character encoding.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
Tests whether this font supports a CMap.- Parameters:
-
cmap- the CMap name - Returns:
-
truefor a compatible CMap
-
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()Description copied from class:FontProgramComputes the PDF font descriptor flags for this program.- Specified by:
-
getPdfFontFlagsin classFontProgram - Returns:
- bit set defined by the PDF font descriptor specification
-
isFontSpecific
public boolean isFontSpecific()Description copied from class:FontProgramChecks whether this program uses its built-in character encoding.- Overrides:
-
isFontSpecificin classFontProgram - Returns:
-
truewhen character codes are font-specific
-
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.
-