Class TTFTable

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long checkSum  
      protected TrueTypeFont font
      The font which contains this table.
      protected boolean initialized
      Indicates if the table is initialized or not.
      private long length  
      private long offset  
      private java.lang.String tag  
    • Constructor Summary

      Constructors 
      Constructor Description
      TTFTable​(TrueTypeFont font)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCheckSum()  
      boolean getInitialized()
      Indicates if the table is already initialized.
      long getLength()  
      long getOffset()  
      java.lang.String getTag()  
      (package private) void read​(TrueTypeFont ttf, TTFDataStream data)
      This will read the required data from the stream.
      (package private) void setCheckSum​(long checkSumValue)  
      (package private) void setLength​(long lengthValue)  
      (package private) void setOffset​(long offsetValue)  
      (package private) void setTag​(java.lang.String tagValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • tag

        private java.lang.String tag
      • checkSum

        private long checkSum
      • offset

        private long offset
      • length

        private long length
      • initialized

        protected boolean initialized
        Indicates if the table is initialized or not.
      • font

        protected final TrueTypeFont font
        The font which contains this table.
    • Constructor Detail

      • TTFTable

        TTFTable​(TrueTypeFont font)
        Constructor.
        Parameters:
        font - The font which contains this table.
    • Method Detail

      • getCheckSum

        public long getCheckSum()
        Returns:
        Returns the checkSum.
      • setCheckSum

        void setCheckSum​(long checkSumValue)
        Parameters:
        checkSumValue - The checkSum to set.
      • getLength

        public long getLength()
        Returns:
        Returns the length.
      • setLength

        void setLength​(long lengthValue)
        Parameters:
        lengthValue - The length to set.
      • getOffset

        public long getOffset()
        Returns:
        Returns the offset.
      • setOffset

        void setOffset​(long offsetValue)
        Parameters:
        offsetValue - The offset to set.
      • getTag

        public java.lang.String getTag()
        Returns:
        Returns the tag.
      • setTag

        void setTag​(java.lang.String tagValue)
        Parameters:
        tagValue - The tag to set.
      • getInitialized

        public boolean getInitialized()
        Indicates if the table is already initialized.
        Returns:
        true if the table is initialized
      • read

        void read​(TrueTypeFont ttf,
                  TTFDataStream data)
           throws java.io.IOException
        This will read the required data from the stream.
        Parameters:
        ttf - The font that is being read.
        data - The stream to read the data from.
        Throws:
        java.io.IOException - If there is an error reading the data.