Class DocType1Font
java.lang.Object
com.itextpdf.io.font.FontProgram
com.itextpdf.io.font.Type1Font
com.itextpdf.kernel.font.DocType1Font
- All Implemented Interfaces:
IDocFontProgram
-
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 TypeMethodDescription(package private) static Type1FontcreateFontProgram(PdfDictionary fontDictionary, FontEncoding fontEncoding, CMapToUnicode toUnicode) (package private) static voidfillFontDescriptor(DocType1Font font, PdfDictionary fontDesc) (package private) static StringgetBaseFont(PdfDictionary fontDictionary) int(package private) static Type1FontgetType1Font(String baseFont) (package private) static voidinitializeGlyphs(PdfDictionary fontDictionary, FontEncoding fontEncoding, CMapToUnicode toUnicode, DocType1Font fontProgram) booleanisBuiltWith(String fontName) Returns false, because we cannot rely on an actual font subset and font name.Methods inherited from class Type1Font
createStandardFont, getCharacterSet, getFontStreamBytes, getFontStreamLengths, getGlyph, getKerning, getPdfFontFlags, hasKernPairs, initializeGlyphs, isBuiltInFont, process, setKerningMethods inherited from class FontProgram
convertGlyphSpaceToTextSpace, convertGlyphSpaceToTextSpace, convertGlyphSpaceToTextSpace, convertTextSpaceToGlyphSpace, countOfGlyphs, fixSpaceIssue, getAvgWidth, getCharBBox, getFontIdentification, getFontMetrics, getFontNames, getGlyph, getGlyphByCode, getKerning, getRegistry, getWidth, isFontSpecific, setBbox, setBold, setCapHeight, setFixedPitch, setFontFamily, setFontName, setFontStretch, setFontWeight, setItalicAngle, setRegistry, setStemH, setStemV, setTypoAscender, setTypoDescender, setXHeight, toString
-
Field Details
-
fontFile
-
fontFileName
-
subtype
-
missingWidth
private int missingWidth
-
-
Constructor Details
-
DocType1Font
-
-
Method Details
-
createFontProgram
static Type1Font createFontProgram(PdfDictionary fontDictionary, FontEncoding fontEncoding, CMapToUnicode toUnicode) -
initializeGlyphs
static void initializeGlyphs(PdfDictionary fontDictionary, FontEncoding fontEncoding, CMapToUnicode toUnicode, DocType1Font fontProgram) -
getBaseFont
-
getType1Font
-
getFontFile
- Specified by:
getFontFilein interfaceIDocFontProgram
-
getFontFileName
- Specified by:
getFontFileNamein interfaceIDocFontProgram
-
getSubtype
- Specified by:
getSubtypein interfaceIDocFontProgram
-
isBuiltWith
Returns false, because we cannot rely on an actual font subset and font name.- Overrides:
isBuiltWithin classType1Font- Parameters:
fontName- a font name or path to a font program- Returns:
- return false.
-
getMissingWidth
public int getMissingWidth() -
fillFontDescriptor
-