Package org.loboevolution.pdfview.font
Class BuiltinFont
java.lang.Object
org.loboevolution.pdfview.font.PDFFont
org.loboevolution.pdfview.font.OutlineFont
org.loboevolution.pdfview.font.Type1Font
org.loboevolution.pdfview.font.BuiltinFont
- Direct Known Subclasses:
CIDFontType0
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
ConstructorDescriptionBuiltinFont
(String baseFont, PDFObject fontObj) Create a new Builtin object based on the name of a built-in fontBuiltinFont
(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 org.loboevolution.pdfview.font.Type1Font
getOutline, getOutline, getWidth, isName2OutlineFilled, parseFont
Methods inherited from class org.loboevolution.pdfview.font.OutlineFont
getCharCount, getDefaultWidth, getGlyph
-
Constructor Details
-
BuiltinFont
Create a new Builtin object based on the name of a built-in fontThis 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
- if any.
-
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.- Parameters:
baseFont
- aString
object.fontObj
- aPDFObject
object.descriptor
- aPDFFontDescriptor
object.- Throws:
IOException
- if any.
-