org.apache.fop.pdf
Class PDFFontNonBase14
org.apache.fop.pdf.PDFObject
|
+--org.apache.fop.pdf.PDFFont
|
+--org.apache.fop.pdf.PDFFontNonBase14
- Direct Known Subclasses:
- PDFFontType1
- public abstract class PDFFontNonBase14
- extends PDFFont
A common ancestor for Type1, TrueType, MMType1 and Type3 fonts
(all except base 14 fonts).
Constructor Summary |
PDFFontNonBase14(int number, String fontname, byte subtype, String basefont, Object encoding) create the /Font object |
PDFFontNonBase14
public PDFFontNonBase14(int number, String fontname, byte subtype, String basefont, Object encoding)
- create the /Font object
- Parameters:
- number - the object's number
- fontname - the internal name for the font
- subtype - the font's subtype
- basefont - the base font name
- encoding - the character encoding schema used by the font
- mapping - the Unicode mapping mechanism
setDescriptor
public void setDescriptor(PDFFontDescriptor descriptor)
- set the font descriptor (unused for the Type3 fonts)
- Parameters:
- descriptor - the descriptor for other font's metrics
setWidthMetrics
public void setWidthMetrics(int firstChar, int lastChar, PDFArray widths)
- set the width metrics for the font
- Parameters:
- firstChar - the first character code in the font
- lastChar - the last character code in the font
- widths - an array of size (lastChar - firstChar +1)
to Class org.apache.fop.pdf.PDFArray- widths of characters from firstChar to lastChar
to Class org.apache.fop.pdf.PDFFontDescriptor
- descriptor of font metrics