Aspose::Font::TtfTables::TtfNameTable class
Contents
[
Hide
]TtfNameTable class
Represents “name” table of the TTF Font file.
class TtfNameTable : public Aspose::Font::TtfTables::TtfTableBase
Nested classes
- Class NameRecord
Enums
Enum | Description |
---|---|
MacLanguageId | Macintosh platform language id enumeration. |
MacPlatformSpecificId | Represents Macintosh platform PlatformSpecificId enumeration. |
MSLanguageId | Microsoft platform language id enumeration. |
MSPlatformSpecificId | Represents Microsoft platform PlatformSpecificId enumeration. |
NameId | Represents NameId. |
PlatformId | Represents PlatformId enumeration. |
UnicodePlatformSpecificId | Represents unicode platform-specific enumeration. |
Methods
Method | Description |
---|---|
AddMultiLanguageNames(System::SharedPtr<MultiLanguageString>, TtfNameTable::PlatformId, uint16_t, TtfNameTable::NameId) | Extracts all multilingual strings from passed mlNames object and creates correspondent NameRecord structure for every string extracted using passed parameters platformId , platformSpecificId and nameId . Value for field languageID is extracted from mlNames object. New just created record is added into table. If record which coincides with just created by fields platformID, platformSpecificID, nameID and, langugeId will be found, then new created record will not be added and only string data will be updated for existing record. |
AddName(TtfNameTable::NameId, TtfNameTable::PlatformId, int32_t, int32_t, System::String) | Adds entry into the table. String data category to add is specified by name parameter. |
DeleteRecords(TtfNameTable::PlatformId, uint16_t, TtfNameTable::NameId) | Deletes all the records related to passed parameters. |
DeleteRecords(TtfNameTable::PlatformId, uint16_t) | Deletes all the records related to platform specified. |
DeleteRecords(TtfNameTable::PlatformId, uint16_t, TtfNameTable::NameId, uint16_t) | Deletes record(s) related to parameters specified. |
DeleteRecordsByNameId(TtfNameTable::NameId) | Deletes all the records related to passed nameId parameter. |
static get_Tag() | Gets table tag. |
GetAllNameRecords() | Returns all NameRecord structures from table. |
GetMultiLanguageNameById(TtfNameTable::NameId) | Returns a name by nameId. |
GetMultiLanguageNameById(TtfNameTable::NameId, TtfNameTable::PlatformId) | Returns a name by nameId using platform identifier passed. |
GetMultiLanguageNameById(TtfNameTable::NameId, TtfNameTable::PlatformId, uint16_t) | Returns a name as object of type MultiLanguageString. Method collects all NameRecord structures which coincide with passed parameters nameId, platformId and platformSpecificId and then builds resultant object based on this structures list. |
GetNameById(TtfNameTable::NameId) | Returns a name by nameId if found, null otherwise. |
GetNameRecordsByNameId(TtfNameTable::NameId) | Returns all NameRecord structures which NameId field is equal to passed nameId value. If no records found, empty array will be returned. |
UpdateName(TtfNameTable::PlatformId, uint16_t, TtfNameTable::NameId, uint16_t, System::String) | Updates name in record(s) which related to specified platform (combination of platformId and platformSpecificId), category (nameId) and language (languageId). |
UpdateNamesByNameId(TtfNameTable::NameId, System::String) | Selects all records which related to logical string category, specified by parameter nameId and updates name field (string data) in these records. Fields related to platform (platformID, Platform-specific encoding ID) and language (Language ID) are not affected by this method. Only name string data is replaced with a new name. Use this method with caution, cause it will replace original names for all platforms and languages, related to nameId. It can make a conflicts for cases when original names had different values, cause replace operation changes all these values with new single one.And this new value may have a logical inconsistency with some platforms and languages. This method is useful for cases when original name has single representation for all platforms and languages, for example, when name string data is in english language. |
See Also
- Class TtfTableBase
- Namespace Aspose::Font::TtfTables
- Library Aspose.Font for C++