Class OTFFile

java.lang.Object
org.docx4j.fonts.fop.fonts.truetype.OpenFont
org.docx4j.fonts.fop.fonts.truetype.OTFFile
Direct Known Subclasses:
OTFSubSetWriter

public class OTFFile
extends OpenFont
  • Field Details

    • fileFont

      protected org.apache.fontbox.cff.CFFFont fileFont
  • Constructor Details

    • OTFFile

      public OTFFile() throws java.io.IOException
      Throws:
      java.io.IOException
    • OTFFile

      public OTFFile​(boolean useKerning, boolean useAdvanced) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • updateBBoxAndOffset

      protected void updateBBoxAndOffset() throws java.io.IOException
      Specified by:
      updateBBoxAndOffset in class OpenFont
      Throws:
      java.io.IOException
    • initializeFont

      protected void initializeFont​(FontFileReader in) throws java.io.IOException
      Specified by:
      initializeFont in class OpenFont
      Throws:
      java.io.IOException
    • readName

      protected void readName() throws java.io.IOException
      Specified by:
      readName in class OpenFont
      Throws:
      java.io.IOException
    • getCFFData

      public static byte[] getCFFData​(FontFileReader fontFile) throws java.io.IOException
      Reads the CFFData from a given font file
      Parameters:
      fontFile - The font file being read
      Returns:
      The byte data found in the CFF table
      Throws:
      java.io.IOException
    • isType1

      public boolean isType1()