PDFWritablePDFFontTrueType, PDFFontType1, PDFFontType3public abstract class PDFFontNonBase14 extends PDFFont
entries, order| Constructor | Description |
|---|---|
PDFFontNonBase14(java.lang.String fontname,
FontType subtype,
java.lang.String basefont,
java.lang.Object encoding) |
Create the /Font object
|
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsKey, get, getChildren, getChildren, keySet, put, put, remove, writeDictionarycreateFont, getBaseFont, getName, getPDFNameForFontType, output, setEncoding, setEncoding, setToUnicodecontentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFStringpublic PDFFontNonBase14(java.lang.String fontname,
FontType subtype,
java.lang.String basefont,
java.lang.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 1999-2016 The Apache Software Foundation. All Rights Reserved.