Interface PDVectorFont

All Known Implementing Classes:
PDCIDFont, PDCIDFontType0, PDCIDFontType2, PDTrueTypeFont, PDType0Font

public interface PDVectorFont
A vector outline font, e.g. not Type 3.
Author:
John Hewson
  • Method Summary

    Modifier and Type
    Method
    Description
    getPath(int code)
    Returns the glyph path for the given character code in a PDF.
    boolean
    hasGlyph(int code)
    Returns true if this font contains a glyph for the given character code in a PDF.
  • Method Details

    • getPath

      GeneralPath getPath(int code) throws IOException
      Returns the glyph path for the given character code in a PDF.
      Parameters:
      code - character code in a PDF. Not to be confused with unicode.
      Throws:
      IOException - if the font could not be read
    • hasGlyph

      boolean hasGlyph(int code) throws IOException
      Returns true if this font contains a glyph for the given character code in a PDF.
      Parameters:
      code - character code in a PDF. Not to be confused with unicode.
      Throws:
      IOException