Package com.itextpdf.kernel.font
Class DocType1Font
- java.lang.Object
-
- com.itextpdf.io.font.FontProgram
-
- com.itextpdf.io.font.Type1Font
-
- com.itextpdf.kernel.font.DocType1Font
-
- All Implemented Interfaces:
IDocFontProgram
class DocType1Font extends Type1Font implements IDocFontProgram
-
-
Field Summary
Fields Modifier and Type Field Description private PdfStream
fontFile
private PdfName
fontFileName
private int
missingWidth
private PdfName
subtype
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DocType1Font(java.lang.String fontName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static Type1Font
createFontProgram(PdfDictionary fontDictionary, FontEncoding fontEncoding, CMapToUnicode toUnicode)
(package private) static void
fillFontDescriptor(DocType1Font font, PdfDictionary fontDesc)
(package private) static java.lang.String
getBaseFont(PdfDictionary fontDictionary)
PdfStream
getFontFile()
PdfName
getFontFileName()
int
getMissingWidth()
PdfName
getSubtype()
(package private) static Type1Font
getType1Font(java.lang.String baseFont)
(package private) static void
initializeGlyphs(PdfDictionary fontDictionary, FontEncoding fontEncoding, CMapToUnicode toUnicode, DocType1Font fontProgram)
boolean
isBuiltWith(java.lang.String fontName)
Returns false, because we cannot rely on an actual font subset and font name.-
Methods inherited from class com.itextpdf.io.font.Type1Font
createStandardFont, getCharacterSet, getFontStreamBytes, getFontStreamLengths, getGlyph, getKerning, getPdfFontFlags, hasKernPairs, initializeGlyphs, isBuiltInFont, process, setKerning
-
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, isFontSpecific, setBbox, setBold, setCapHeight, setFixedPitch, setFontFamily, setFontName, setFontStretch, setFontWeight, setItalicAngle, setRegistry, setStemH, setStemV, setTypoAscender, setTypoDescender, setXHeight, toString
-
-
-
-
Method Detail
-
createFontProgram
static Type1Font createFontProgram(PdfDictionary fontDictionary, FontEncoding fontEncoding, CMapToUnicode toUnicode)
-
initializeGlyphs
static void initializeGlyphs(PdfDictionary fontDictionary, FontEncoding fontEncoding, CMapToUnicode toUnicode, DocType1Font fontProgram)
-
getBaseFont
static java.lang.String getBaseFont(PdfDictionary fontDictionary)
-
getType1Font
static Type1Font getType1Font(java.lang.String baseFont)
-
getFontFile
public PdfStream getFontFile()
- Specified by:
getFontFile
in interfaceIDocFontProgram
-
getFontFileName
public PdfName getFontFileName()
- Specified by:
getFontFileName
in interfaceIDocFontProgram
-
getSubtype
public PdfName getSubtype()
- Specified by:
getSubtype
in interfaceIDocFontProgram
-
isBuiltWith
public boolean isBuiltWith(java.lang.String fontName)
Returns false, because we cannot rely on an actual font subset and font name.- Overrides:
isBuiltWith
in classType1Font
- Parameters:
fontName
- a font name or path to a font program- Returns:
- return false.
-
getMissingWidth
public int getMissingWidth()
-
fillFontDescriptor
static void fillFontDescriptor(DocType1Font font, PdfDictionary fontDesc)
-
-