Package org.apache.pdfbox.rendering
Class Type1Glyph2D
- java.lang.Object
-
- org.apache.pdfbox.rendering.Type1Glyph2D
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.awt.geom.GeneralPath>cacheprivate PDSimpleFontfontprivate static org.apache.commons.logging.LogLOG
-
Constructor Summary
Constructors Constructor Description Type1Glyph2D(PDSimpleFont font)Constructor.
-
Method Summary
All Methods Static 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.private static java.lang.StringgetUniNameOfCodePoint(int codePoint)
-
-
-
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 PDSimpleFont font
-
-
Constructor Detail
-
Type1Glyph2D
Type1Glyph2D(PDSimpleFont font)
Constructor.- Parameters:
font- PDF Type1 font.
-
-
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
-
dispose
public void dispose()
Description copied from interface:Glyph2DRemove all cached resources.
-
getUniNameOfCodePoint
private static java.lang.String getUniNameOfCodePoint(int codePoint)
-
-