Class BuiltinFont
java.lang.Object
com.sun.pdfview.font.PDFFont
com.sun.pdfview.font.OutlineFont
com.sun.pdfview.font.Type1Font
com.sun.pdfview.font.BuiltinFont
This class represents the 14 built-in fonts. It reads these fonts
from files in the "res" directory, as specified in
BaseNames.properties.
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltinFont(String baseFont, PDFObject fontObj) Create a new Builtin object based on the name of a built-in font This must be the name of one of the 14 built-in fonts!BuiltinFont(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) create a new BuiltingFont object based on a description of the font from the PDF file. -
Method Summary
Methods inherited from class Type1Font
getOutline, getOutline, getWidth, parseFontMethods inherited from class OutlineFont
getCharCount, getDefaultWidth, getFirstChar, getGlyph, getLastCharMethods inherited from class PDFFont
equals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toString
-
Constructor Details
-
BuiltinFont
Create a new Builtin object based on the name of a built-in font This must be the name of one of the 14 built-in fonts!- Parameters:
baseFont- the name of the font, from the PDF filefontObj- the object containing font information- Throws:
IOException
-
BuiltinFont
public BuiltinFont(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws IOException create a new BuiltingFont object based on a description of the font from the PDF file. Parse the description for key information and use that to generate an appropriate font.- Throws:
IOException
-