Package org.openpdf.renderer.font
Class CIDFontType0
java.lang.Object
org.openpdf.renderer.font.PDFFont
org.openpdf.renderer.font.OutlineFont
org.openpdf.renderer.font.Type1Font
org.openpdf.renderer.font.BuiltinFont
org.openpdf.renderer.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 $
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openpdf.renderer.font.Type1Font
Type1Font.PSParser -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCIDFontType0(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected PDFGlyphGet a character from the first font in the descendant fonts arrayvoidparseToUnicodeMap(PDFObject fontObj) Methods inherited from class org.openpdf.renderer.font.Type1Font
getOutline, getOutline, getWidth, isName2OutlineFilled, parseFontMethods inherited from class org.openpdf.renderer.font.OutlineFont
getCharCount, getDefaultWidth, getFirstChar, getLastCharMethods inherited from class org.openpdf.renderer.font.PDFFont
equals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toString
-
Field Details
-
glyphLookupMap
-
-
Constructor Details
-
CIDFontType0
public CIDFontType0(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws IOException Constructor- Parameters:
baseFont-fontObj-descriptor-- Throws:
IOException
-
-
Method Details
-
parseToUnicodeMap
- Parameters:
fontObj-- Throws:
IOException
-
getGlyph
Get a character from the first font in the descendant fonts array- Overrides:
getGlyphin classOutlineFont- Parameters:
src- the character code of this glyphname- the name of this glyph or null if unknown- Returns:
- a glyph for this character
-