Package org.apache.pdfbox.rendering
Class Type1Glyph2D
java.lang.Object
org.apache.pdfbox.rendering.Type1Glyph2D
- All Implemented Interfaces:
Glyph2D
Glyph to GeneralPath conversion for Type 1 PFB and CFF, and TrueType fonts with a 'post' table.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Integer,GeneralPath> private final PDSimpleFontprivate static final org.apache.commons.logging.Log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Remove all cached resources.getPathForCharacterCode(int code) Returns the path describing the glyph for the given character code.private static StringgetUniNameOfCodePoint(int codePoint)
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
cache
-
font
-
-
Constructor Details
-
Type1Glyph2D
Type1Glyph2D(PDSimpleFont font) Constructor.- Parameters:
font- PDF Type1 font.
-
-
Method Details
-
getPathForCharacterCode
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
-