Class Type1Glyph2D

java.lang.Object
org.apache.pdfbox.rendering.Type1Glyph2D
All Implemented Interfaces:
Glyph2D

final class Type1Glyph2D extends Object implements Glyph2D
Glyph to GeneralPath conversion for Type 1 PFB and CFF, and TrueType fonts with a 'post' table.
  • Field Details

  • Constructor Details

    • Type1Glyph2D

      Type1Glyph2D(PDSimpleFont font)
      Constructor.
      Parameters:
      font - PDF Type1 font.
  • Method Details

    • getPathForCharacterCode

      public GeneralPath getPathForCharacterCode(int code)
      Description copied from interface: Glyph2D
      Returns the path describing the glyph for the given character code.
      Specified by:
      getPathForCharacterCode in interface Glyph2D
      Parameters:
      code - the character code
      Returns:
      the GeneralPath for the given character code
    • dispose

      public void dispose()
      Description copied from interface: Glyph2D
      Remove all cached resources.
      Specified by:
      dispose in interface Glyph2D
    • getUniNameOfCodePoint

      private static String getUniNameOfCodePoint(int codePoint)