com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class TtfNameTable



  • public class TtfNameTable
    extends TtfTableBase

    Represents "name" table of the TTF Font file.

    • Method Detail

      • getTag

        public static String getTag()

        Gets table tag.

        Returns:
        Table tag.
      • addName

        public void addName(NameId nameId,
                            PlatformId platformId,
                            int platformSpecificId,
                            int languageId,
                            String name)

        Adds entry into the table. String data category to add is specified by name parameter.

        Parameters:
        nameId - Name identifier, logical string category, specified by NameId enumeration.
        platformId - Platform identifier.
        platformSpecificId - Platform-specific encoding identifier. Please, use value from one of such enumerations - UnicodePlatformSpecificId, MacPlatformSpecificId, MSPlatformSpecificId. What enumeration to use is defined by context (platformId parameter).
        languageId - Language identifier. Please, use value from MSLanguageId or MacLanguageId enumerations depend from context, defined by platformId parameter.
        name - Actual string data.
      • getMultiLanguageNameById

        public MultiLanguageString getMultiLanguageNameById(NameId nameId)

        returns a name by nameId

        Parameters:
        nameId - name Id.
        Returns:
        name
      • getNameById

        public String getNameById(NameId nameId)

        Returns a name by nameId if found, null otherwise.

        Parameters:
        nameId - name identifier
        Returns:
        name
      • getAllNameRecords

        public NameRecord[] getAllNameRecords()

        Returns all NameRecord structures from table.

        Returns:
      • getNameRecordsByNameId

        public NameRecord[] getNameRecordsByNameId(NameId nameId)