Class NameRecord


  • public class NameRecord
    extends java.lang.Object
    A name record in the name table.
    • Constructor Detail

      • NameRecord

        public NameRecord()
    • Method Detail

      • getStringLength

        public int getStringLength()
        Returns:
        Returns the stringLength.
      • setStringLength

        public void setStringLength​(int stringLengthValue)
        Parameters:
        stringLengthValue - The stringLength to set.
      • getStringOffset

        public int getStringOffset()
        Returns:
        Returns the stringOffset.
      • setStringOffset

        public void setStringOffset​(int stringOffsetValue)
        Parameters:
        stringOffsetValue - The stringOffset to set.
      • getLanguageId

        public int getLanguageId()
        Returns:
        Returns the languageId.
      • setLanguageId

        public void setLanguageId​(int languageIdValue)
        Parameters:
        languageIdValue - The languageId to set.
      • getNameId

        public int getNameId()
        Returns:
        Returns the nameId.
      • setNameId

        public void setNameId​(int nameIdValue)
        Parameters:
        nameIdValue - The nameId to set.
      • getPlatformEncodingId

        public int getPlatformEncodingId()
        Returns:
        Returns the platformEncodingId.
      • setPlatformEncodingId

        public void setPlatformEncodingId​(int platformEncodingIdValue)
        Parameters:
        platformEncodingIdValue - The platformEncodingId to set.
      • getPlatformId

        public int getPlatformId()
        Returns:
        Returns the platformId.
      • setPlatformId

        public void setPlatformId​(int platformIdValue)
        Parameters:
        platformIdValue - The platformId to set.
      • initData

        void initData​(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.
      • toString

        public java.lang.String toString()
        Return a string representation of this class.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string for this class.
      • getString

        public java.lang.String getString()
        Returns:
        Returns the string.
      • setString

        public void setString​(java.lang.String stringValue)
        Parameters:
        stringValue - The string to set.