Class TTFFile

  • Direct Known Subclasses:
    TTFSubSetFile

    public class TTFFile
    extends OpenFont
    Reads a TrueType file or a TrueType Collection. The TrueType spec can be found at the Microsoft. Typography site: http://www.microsoft.com/truetype/
    • Constructor Detail

      • TTFFile

        public TTFFile()
      • TTFFile

        public TTFFile​(boolean useKerning,
                       boolean useAdvanced)
        Constructor
        Parameters:
        useKerning - true if kerning data should be loaded
        useAdvanced - true if advanced typographic tables should be loaded
    • Method Detail

      • readName

        protected void readName()
                         throws java.io.IOException
        Read the "name" table.
        Specified by:
        readName in class OpenFont
        Throws:
        java.io.IOException - In case of a I/O problem
      • updateBBoxAndOffset

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

        protected final void readIndexToLocation()
                                          throws java.io.IOException
        Read the "loca" table.
        Throws:
        java.io.IOException - In case of a I/O problem
      • getLastGlyfLocation

        public long getLastGlyfLocation()
        Gets the last location of the glyf table
        Returns:
        The last location as a long