Class OTFParser


  • public final class OTFParser
    extends TTFParser
    OpenType font file parser.
    • Constructor Summary

      Constructors 
      Constructor Description
      OTFParser()
      Constructor.
      OTFParser​(boolean isEmbedded)
      Constructor.
    • Constructor Detail

      • OTFParser

        public OTFParser()
        Constructor.
      • OTFParser

        public OTFParser​(boolean isEmbedded)
        Constructor.
        Parameters:
        isEmbedded - true if the font is embedded in PDF
    • Method Detail

      • parse

        public OpenTypeFont parse​(org.apache.pdfbox.io.RandomAccessRead randomAccessRead)
                           throws java.io.IOException
        Description copied from class: TTFParser
        Parse a RandomAccessRead and return a TrueType font.
        Overrides:
        parse in class TTFParser
        Parameters:
        randomAccessRead - The RandomAccessRead to be read from. It will be closed before returning.
        Returns:
        A TrueType font.
        Throws:
        java.io.IOException - If there is an error parsing the TrueType font.