|
fop 0.90alpha1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFFont
org.apache.fop.pdf.PDFFontNonBase14
A common ancestor for Type1, TrueType, MMType1 and Type3 fonts (all except base 14 fonts).
Field Summary | |
protected PDFFontDescriptor |
descriptor
descriptor of font metrics |
protected int |
firstChar
first character code in the font |
protected int |
lastChar
last character code in the font |
protected PDFArray |
widths
widths of characters from firstChar to lastChar |
Fields inherited from class org.apache.fop.pdf.PDFFont |
basefont, encoding, fontname, subtype |
Fields inherited from class org.apache.fop.pdf.PDFObject |
DATE_FORMAT, log |
Constructor Summary | |
PDFFontNonBase14(java.lang.String fontname,
FontType subtype,
java.lang.String basefont,
java.lang.Object encoding)
Create the /Font object |
Method Summary | |
protected void |
fillInPDF(java.lang.StringBuffer target)
This method is called to receive the specifics for the font's subtype. |
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 |
Methods inherited from class org.apache.fop.pdf.PDFFont |
createFont, createFont, getName, getPDFNameForFontType, toPDFString |
Methods inherited from class org.apache.fop.pdf.PDFObject |
encode, encodeString, encodeText, formatDateTime, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, output, referencePDF, setDocument, setObjectNumber, toPDF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int firstChar
protected int lastChar
protected PDFArray widths
protected PDFFontDescriptor descriptor
Constructor Detail |
public 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 fontMethod Detail |
public 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 metricsprotected void fillInPDF(java.lang.StringBuffer target)
PDFFont
The given buffer already contains the fields common to all font types.
fillInPDF
in class PDFFont
target
- the buffer to be completed with the type specific fieldsPDFFont.fillInPDF(StringBuffer)
|
fop 0.90alpha1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |