Package org.loboevolution.pdfview.font
Class CIDFontType0
java.lang.Object
org.loboevolution.pdfview.font.PDFFont
org.loboevolution.pdfview.font.OutlineFont
org.loboevolution.pdfview.font.Type1Font
org.loboevolution.pdfview.font.BuiltinFont
org.loboevolution.pdfview.font.CIDFontType0
**************************************************************************
At the moment this is not fully supported to parse CID based fonts
As a hack we try to use a built in font as substitution and use a
toUnicode map to translate the characters if available.
- Since:
- 03.08.2011 **************************************************************************
- Version:
- $Id: CIDFontType0.java,v 1.1 2011-08-03 15:48:56 bros Exp $ Author Bernd Rosstauscher
-
Constructor Summary
ConstructorDescriptionCIDFontType0
(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) ********************************************************************** Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected PDFGlyph
Get the glyph for a given character code and namevoid
parseToUnicodeMap
(PDFObject fontObj) parseToUnicodeMap.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
-
Constructor Details
-
CIDFontType0
public CIDFontType0(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws IOException ********************************************************************** Constructor- Parameters:
baseFont
- aString
object.fontObj
- aPDFObject
object.descriptor
- aPDFFontDescriptor
object.- Throws:
IOException
- if any.
-
-
Method Details
-
parseToUnicodeMap
parseToUnicodeMap.
- Parameters:
fontObj
- aPDFObject
object.- Throws:
IOException
- if any.
-
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.
Get a character from the first font in the descendant fonts array
- Overrides:
getGlyph
in classOutlineFont
- Parameters:
src
- the character code of this glyphglyph
- the name of this glyph or null if unknown- Returns:
- a glyph for this character
-