public abstract class PDFFontNonBase14 extends PDFFont
entries, order| Constructor and Description |
|---|
PDFFontNonBase14(String fontname,
FontType subtype,
String basefont,
Object encoding)
Create the /Font object
|
| Modifier and Type | Method and Description |
|---|---|
PDFFontDescriptor |
getDescriptor() |
void |
setDescriptor(PDFFontDescriptor descriptor)
Set the font descriptor (unused for the Type3 fonts)
|
void |
setWidthMetrics(int firstChar,
int lastChar,
PDFArray widths)
Set the width metrics for the font
|
protected void |
validate()
Validates the PDF object prior to serialization.
|
createFont, getBaseFont, getName, getPDFNameForFontType, output, setEncoding, setEncoding, setToUnicodecontainsKey, get, getChildren, getChildren, keySet, put, put, remove, writeDictionarycontentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, supportsObjectStream, toPDF, toPDFStringpublic PDFFontNonBase14(String fontname, FontType subtype, String basefont, Object encoding)
fontname - the internal name for the fontsubtype - the font's subtypebasefont - the base font nameencoding - the character encoding schema used by the fontpublic void setWidthMetrics(int firstChar,
int lastChar,
PDFArray widths)
firstChar - the first character code in the fontlastChar - the last character code in the fontwidths - an array of size (lastChar - firstChar +1)public void setDescriptor(PDFFontDescriptor descriptor)
descriptor - the descriptor for other font's metricspublic PDFFontDescriptor getDescriptor()
Copyright © 2025 Apache Software Foundation. All rights reserved.