Package org.apache.pdfbox.rendering
Class CIDType0Glyph2D
- java.lang.Object
-
- org.apache.pdfbox.rendering.CIDType0Glyph2D
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.awt.geom.GeneralPath>cacheprivate PDCIDFontType0fontprivate java.lang.StringfontNameprivate static org.apache.commons.logging.LogLOG
-
Constructor Summary
Constructors Constructor Description CIDType0Glyph2D(PDCIDFontType0 font)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Remove all cached resources.java.awt.geom.GeneralPathgetPathForCharacterCode(int code)Returns the path describing the glyph for the given character code.
-
-
-
Field Detail
-
LOG
private static final org.apache.commons.logging.Log LOG
-
cache
private final java.util.Map<java.lang.Integer,java.awt.geom.GeneralPath> cache
-
font
private final PDCIDFontType0 font
-
fontName
private final java.lang.String fontName
-
-
Constructor Detail
-
CIDType0Glyph2D
CIDType0Glyph2D(PDCIDFontType0 font)
Constructor.- Parameters:
font- Type 0 CIDFont
-
-
Method Detail
-
getPathForCharacterCode
public java.awt.geom.GeneralPath getPathForCharacterCode(int code)
Description copied from interface:Glyph2DReturns the path describing the glyph for the given character code.- Specified by:
getPathForCharacterCodein interfaceGlyph2D- Parameters:
code- the character code- Returns:
- the GeneralPath for the given character code
-
-