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 $
- Author:
- Bernd Rosstauscher
-
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 Type1Font
getOutline, getOutline, getWidth, isName2OutlineFilled, parseFontMethods inherited from class OutlineFont
getCharCount, getDefaultWidth, getFirstChar, getLastCharMethods inherited from class PDFFont
equals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toString
-
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
-