Package org.loboevolution.pdfview.font
Class Type3Font
java.lang.Object
org.loboevolution.pdfview.font.PDFFont
org.loboevolution.pdfview.font.Type3Font
A Type 3 Font, in which each glyph consists of a sequence of PDF
commands.
Author Mike Wessler
-
Constructor Details
-
Type3Font
public Type3Font(String baseFont, PDFObject fontObj, Map<String, PDFObject> resources, PDFFontDescriptor descriptor) throws IOExceptionGenerate a Type 3 font.- Parameters:
baseFont
- the postscript name of this fontfontObj
- a dictionary containing references to the character definitions and font informationresources
- a set of resources used by the character definitionsdescriptor
- the descriptor for this font- Throws:
IOException
- if any.
-
-
Method Details
-
getGlyph
Get the glyph for a given character code and nameThe preferred method of getting the glyph should be by name. If the name is null or not valid, then the character code should be used. If the both the code and the name are invalid, the undefined glyph should be returned.
Note this method must *always* return a glyph.
Get the glyph for a given character code and name
The preferred method of getting the glyph should be by name. If the name is null or not valid, then the character code should be used. If the both the code and the name are invalid, the undefined glyph should be returned.
Note this method must *always* return a glyph.
-