Represents "name" table of the TTF Font file. More...

Inherits Aspose::Font::TtfTables::TtfTableBase.

Classes

class  NameEventArgs
 
class  NameRecord
 Represents NameRecord structure of the 'name' table More...
 
class  NameRecordList
 

Public Types

enum  NameId : uint16_t {
  NameId::CopyrightNotice = 0, NameId::FontFamily = 1, NameId::FontSubfamily = 2, NameId::UniqueFontId = 3,
  NameId::FullName = 4, NameId::Version = 5, NameId::PostScriptName = 6, NameId::TrademarkNotice = 7,
  NameId::ManufacturerName = 8, NameId::DesignerName = 9, NameId::Description = 10, NameId::UrlVendor = 11,
  NameId::UrlDesigner = 12, NameId::LicenseDescription = 13, NameId::LicenseInfoUrl = 14, NameId::PreferredFamily = 16,
  NameId::PreferredSubfamily = 17, NameId::CompatibleFull = 18, NameId::SampleText = 19, NameId::PostScriptCID = 20,
  NameId::WwsFamilyName = 21, NameId::WwsSubfamilyName = 22, NameId::LightBackground = 23, NameId::DarkBackground = 24,
  NameId::VariationsPostScriptNamePrefix = 25
}
 Represents NameId. More...
 
enum  PlatformId { PlatformId::Unicode = 0, PlatformId::Macintosh = 1, PlatformId::ISO = 2 }
 Represents PlatformId enumeration. More...
 
enum  UnicodePlatformSpecificId {
  UnicodePlatformSpecificId::Default = 0, UnicodePlatformSpecificId::Unicode1_1 = 1, UnicodePlatformSpecificId::ISO10646_1993 = 2, UnicodePlatformSpecificId::Unicode2_0 = 3,
  UnicodePlatformSpecificId::Unicode2_0_Full = 4
}
 Represents unicode platform-specific enumeration. More...
 
enum  MacPlatformSpecificId {
  MacPlatformSpecificId::Roman = 0, MacPlatformSpecificId::Japanese = 1, MacPlatformSpecificId::Traditional_Chinese = 2, MacPlatformSpecificId::Korean = 3,
  MacPlatformSpecificId::Arabic = 4, MacPlatformSpecificId::Hebrew = 5, MacPlatformSpecificId::Greek = 6, MacPlatformSpecificId::Russian = 7,
  MacPlatformSpecificId::RSymbol = 8, MacPlatformSpecificId::Devanagari = 9, MacPlatformSpecificId::Gurmukhi = 10, MacPlatformSpecificId::Gujarati = 11,
  MacPlatformSpecificId::Oriya = 12, MacPlatformSpecificId::Bengali = 13, MacPlatformSpecificId::Tamil = 14, MacPlatformSpecificId::Telugu = 15,
  MacPlatformSpecificId::Kannada = 16, MacPlatformSpecificId::Malayalam = 17, MacPlatformSpecificId::Sinhalese = 18, MacPlatformSpecificId::Burmese = 19,
  MacPlatformSpecificId::Khmer = 20, MacPlatformSpecificId::Thai = 21, MacPlatformSpecificId::Laotian = 22, MacPlatformSpecificId::Georgian = 23,
  MacPlatformSpecificId::Armenian = 24, MacPlatformSpecificId::Simplified_Chinese = 25, MacPlatformSpecificId::Tibetan = 26, MacPlatformSpecificId::Mongolian = 27,
  MacPlatformSpecificId::Geez = 28, MacPlatformSpecificId::Slavic = 29, MacPlatformSpecificId::Vietnamese = 30, MacPlatformSpecificId::Sindhi = 31,
  MacPlatformSpecificId::Uninterpreted = 32
}
 Represents Macintosh platform PlatformSpecificId enumeration. More...
 
enum  MSLanguageId {
  MSLanguageId::Afrikaans = 0x0436, MSLanguageId::Albanian = 0x041c, MSLanguageId::Alsatian = 0x0484, MSLanguageId::Amharic = 0x045E,
  MSLanguageId::Arabic_Algeria = 0x1401, MSLanguageId::Arabic_Bahrain = 0x3C01, MSLanguageId::Arabic_Egypt = 0x0C01, MSLanguageId::Arabic_Iraq = 0x0801,
  MSLanguageId::Arabic_Jordan = 0x2C01, MSLanguageId::Arabic_Kuwait = 0x3401, MSLanguageId::Arabic_Lebanon = 0x3001, MSLanguageId::Arabic_Libya = 0x1001,
  MSLanguageId::Arabic_Morocco = 0x1801, MSLanguageId::Arabic_Oman = 0x2001, MSLanguageId::Arabic_Qatar = 0x4001, MSLanguageId::Arabic_Saudi_Arabia = 0x0401,
  MSLanguageId::Arabic_Syria = 0x2801, MSLanguageId::Arabic_Tunisia = 0x1C01, MSLanguageId::Arabic_U_A_E = 0x3801, MSLanguageId::Arabic_Yemen = 0x2401,
  MSLanguageId::Armenian = 0x042B, MSLanguageId::Assamese = 0x044D, MSLanguageId::Azeri_Cyrillic = 0x082C, MSLanguageId::Azeri_Latin = 0x042C,
  MSLanguageId::Bashkir = 0x046D, MSLanguageId::Basque = 0x042D, MSLanguageId::Belarusian = 0x0423, MSLanguageId::Bengali_Bangladesh = 0x0845,
  MSLanguageId::Bengali_India = 0x0445, MSLanguageId::Bosnian_Cyrillic = 0x201A, MSLanguageId::Bosnian_Latin = 0x141A, MSLanguageId::Breton = 0x047E,
  MSLanguageId::Bulgarian = 0x0402, MSLanguageId::Catalan = 0x0403, MSLanguageId::Chinese_Hong_Kong = 0x0C04, MSLanguageId::Chinese_Macao = 0x1404,
  MSLanguageId::Chinese_PRC = 0x0804, MSLanguageId::Chinese_Singapore = 0x1004, MSLanguageId::Chinese_Taiwan = 0x0404, MSLanguageId::Corsican = 0x0483,
  MSLanguageId::Croatian = 0x041A, MSLanguageId::Croatian_Latin = 0x101A, MSLanguageId::Czech = 0x0405, MSLanguageId::Danish = 0x0406,
  MSLanguageId::Dari = 0x048C, MSLanguageId::Divehi = 0x0465, MSLanguageId::Dutch_Belgium = 0x0813, MSLanguageId::Dutch_Netherlands = 0x0413,
  MSLanguageId::English_Australia = 0x0C09, MSLanguageId::English_Belize = 0x2809, MSLanguageId::English_Canada = 0x1009, MSLanguageId::English_Caribbean = 0x2409,
  MSLanguageId::English_India = 0x4009, MSLanguageId::English_Ireland = 0x1809, MSLanguageId::English_Jamaica = 0x2009, MSLanguageId::English_Malaysia = 0x4409,
  MSLanguageId::English_New_Zealand = 0x1409, MSLanguageId::English_ROP = 0x3409, MSLanguageId::English_Singapore = 0x4809, MSLanguageId::English_South_Africa = 0x1C09,
  MSLanguageId::English_TT = 0x2C09, MSLanguageId::English_United_Kingdom = 0x0809, MSLanguageId::English_United_States = 0x0409, MSLanguageId::English_Zimbabwe = 0x3009,
  MSLanguageId::Estonian = 0x0425, MSLanguageId::Faroese = 0x0438, MSLanguageId::Filipino = 0x0464, MSLanguageId::Finnish = 0x040B,
  MSLanguageId::French_Belgium = 0x080C, MSLanguageId::French_Canada = 0x0C0C, MSLanguageId::French_France = 0x040C, MSLanguageId::French_Luxembourg = 0x140c,
  MSLanguageId::French_MC = 0x180C, MSLanguageId::French_Switzerland = 0x100C, MSLanguageId::Frisian = 0x0462, MSLanguageId::Galician = 0x0456,
  MSLanguageId::Georgian = 0x0437, MSLanguageId::German_Austria = 0x0C07, MSLanguageId::German_Germany = 0x0407, MSLanguageId::German_Liechtenstein = 0x1407,
  MSLanguageId::German_Luxembourg = 0x1007, MSLanguageId::German_Switzerland = 0x0807, MSLanguageId::Greek = 0x0408, MSLanguageId::Greenlandic = 0x046F,
  MSLanguageId::Gujarati = 0x0447, MSLanguageId::Hausa = 0x0468, MSLanguageId::Hebrew = 0x040D, MSLanguageId::Hindi = 0x0439,
  MSLanguageId::Hungarian = 0x040E, MSLanguageId::Icelandic = 0x040F, MSLanguageId::Igbo = 0x0470, MSLanguageId::Indonesian = 0x0421,
  MSLanguageId::Inuktitut = 0x045D, MSLanguageId::Inuktitut_Latin = 0x085D, MSLanguageId::Irish = 0x083C, MSLanguageId::isiXhosa = 0x0434,
  MSLanguageId::isiZulu = 0x0435, MSLanguageId::Italian_Italy = 0x0410, MSLanguageId::Italian_Switzerland = 0x0810, MSLanguageId::Japanese = 0x0411,
  MSLanguageId::Kannada = 0x044B, MSLanguageId::Kazakh = 0x043F, MSLanguageId::Khmer = 0x0453, MSLanguageId::Kiche = 0x0486,
  MSLanguageId::Kinyarwanda = 0x0487, MSLanguageId::Kiswahili = 0x0441, MSLanguageId::Konkani = 0x0457, MSLanguageId::Korean = 0x0412,
  MSLanguageId::Kyrgyz = 0x0440, MSLanguageId::Lao = 0x0454, MSLanguageId::Latvian = 0x0426, MSLanguageId::Lithuanian = 0x0427,
  MSLanguageId::Lower_Sorbian = 0x082E, MSLanguageId::Luxembourgish = 0x046E, MSLanguageId::Macedonian = 0x042F, MSLanguageId::Malay_Brunei_Darussalam = 0x083E,
  MSLanguageId::Malay_Malaysia = 0x043E, MSLanguageId::Malayalam = 0x044C, MSLanguageId::Maltese = 0x043A, MSLanguageId::Maori = 0x0481,
  MSLanguageId::Mapudungun = 0x047A, MSLanguageId::Marathi = 0x044E, MSLanguageId::Mohawk = 0x047C, MSLanguageId::Mongolian_Cyrillic = 0x0450,
  MSLanguageId::Mongolian_Traditional = 0x0850, MSLanguageId::Nepali = 0x0461, MSLanguageId::Norwegian_Bokmal = 0x0414, MSLanguageId::Norwegian_Nynorsk = 0x0814,
  MSLanguageId::Occitan = 0x0482, MSLanguageId::Odia = 0x0448, MSLanguageId::Pashto = 0x0463, MSLanguageId::Polish = 0x0415,
  MSLanguageId::Portuguese_Brazil = 0x0416, MSLanguageId::Portuguese_Portugal = 0x0816, MSLanguageId::Punjabi = 0x0446, MSLanguageId::Quechua_Bolivia = 0x046B,
  MSLanguageId::Quechua_Ecuador = 0x086B, MSLanguageId::Quechua_Peru = 0x0C6B, MSLanguageId::Romanian = 0x0418, MSLanguageId::Romansh = 0x0417,
  MSLanguageId::Russian = 0x0419, MSLanguageId::Sami_Inari = 0x243B, MSLanguageId::Sami_Lule_Norway = 0x103B, MSLanguageId::Sami_Lule_Sweden = 0x143B,
  MSLanguageId::Sami_Northern_Finland = 0x0C3B, MSLanguageId::Sami_Northern_Norway = 0x043B, MSLanguageId::Sami_Northern_Sweden = 0x083B, MSLanguageId::Sami_Skolt = 0x203B,
  MSLanguageId::Sami_Southern_Norway = 0x183B, MSLanguageId::Sami_Southern_Sweden = 0x1C3B, MSLanguageId::Sanskrit = 0x044F, MSLanguageId::Serbian_Cyrillic_BIH = 0x1C1A,
  MSLanguageId::Serbian_Cyrillic_Serbia = 0x0C1A, MSLanguageId::Serbian_Latin_BIH = 0x181A, MSLanguageId::Serbian_Latin_Serbia = 0x081A, MSLanguageId::Sesotho_Sa_Leboa = 0x046C,
  MSLanguageId::Setswana = 0x0432, MSLanguageId::Sinhala = 0x045B, MSLanguageId::Slovak = 0x041B, MSLanguageId::Slovenian = 0x0424,
  MSLanguageId::Spanish_Argentina = 0x2C0A, MSLanguageId::Spanish_Bolivia = 0x400A, MSLanguageId::Spanish_Chile = 0x340A, MSLanguageId::Spanish_Colombia = 0x240A,
  MSLanguageId::Spanish_Costa_Rica = 0x140A, MSLanguageId::Spanish_Dominican_Republic = 0x1C0A, MSLanguageId::Spanish_Ecuador = 0x300A, MSLanguageId::Spanish_El_Salvador = 0x440A,
  MSLanguageId::Spanish_Guatemala = 0x100A, MSLanguageId::Spanish_Honduras = 0x480A, MSLanguageId::Spanish_Mexico = 0x080A, MSLanguageId::Spanish_Nicaragua = 0x4C0A,
  MSLanguageId::Spanish_Panama = 0x180A, MSLanguageId::Spanish_Paraguay = 0x3C0A, MSLanguageId::Spanish_Peru = 0x280A, MSLanguageId::Spanish_Puerto_Rico = 0x500A,
  MSLanguageId::Spanish_Modern_Sort = 0x0C0A, MSLanguageId::Spanish_Traditional_Sort = 0x040A, MSLanguageId::Spanish_United_States = 0x540A, MSLanguageId::Spanish_Uruguay = 0x380A,
  MSLanguageId::Spanish_Venezuela = 0x200A, MSLanguageId::Swedish_Finland = 0x081D, MSLanguageId::Swedish_Sweden = 0x041D, MSLanguageId::Syriac = 0x045A,
  MSLanguageId::Tajik = 0x0428, MSLanguageId::Tamazight = 0x085F, MSLanguageId::Tamil = 0x0449, MSLanguageId::Tatar = 0x0444,
  MSLanguageId::Telugu = 0x044A, MSLanguageId::Thai = 0x041E, MSLanguageId::Tibetan = 0x0451, MSLanguageId::Turkish = 0x041F,
  MSLanguageId::Turkmen = 0x0442, MSLanguageId::Uighur = 0x0480, MSLanguageId::Ukrainian = 0x0422, MSLanguageId::Upper_Sorbian = 0x042E,
  MSLanguageId::Urdu = 0x0420, MSLanguageId::Uzbek_Cyrillic = 0x0843, MSLanguageId::Uzbek_Latin = 0x0443, MSLanguageId::Vietnamese = 0x042A,
  MSLanguageId::Welsh = 0x0452, MSLanguageId::Wolof = 0x0488, MSLanguageId::Yakut = 0x0485, MSLanguageId::Yi = 0x0478,
  MSLanguageId::Yoruba = 0x046A
}
 Microsoft platform language id enumeration. More...
 
enum  MSPlatformSpecificId {
  MSPlatformSpecificId::Symbol = 0, MSPlatformSpecificId::Unicode_BMP_UCS2 = 1, MSPlatformSpecificId::ShiftJIS = 2, MSPlatformSpecificId::PRC = 3,
  MSPlatformSpecificId::Big5 = 4, MSPlatformSpecificId::Wansung = 5, MSPlatformSpecificId::Johab = 6, MSPlatformSpecificId::Reserved1 = 7,
  MSPlatformSpecificId::Reserved2 = 8, MSPlatformSpecificId::Reserved3 = 9, MSPlatformSpecificId::Unicode_UCS4 = 10
}
 Represents Microsoft platform PlatformSpecificId enumeration. More...
 
enum  MacLanguageId {
  MacLanguageId::English = 0, MacLanguageId::French = 1, MacLanguageId::German = 2, MacLanguageId::Italian = 3,
  MacLanguageId::Dutch = 4, MacLanguageId::Swedish = 5, MacLanguageId::Spanish = 6, MacLanguageId::Danish = 7,
  MacLanguageId::Portuguese = 8, MacLanguageId::Norwegian = 9, MacLanguageId::Hebrew = 10, MacLanguageId::Japanese = 11,
  MacLanguageId::Arabic = 12, MacLanguageId::Finnish = 13, MacLanguageId::Greek = 14, MacLanguageId::Icelandic = 15,
  MacLanguageId::Maltese = 16, MacLanguageId::Turkish = 17, MacLanguageId::Croatian = 18, MacLanguageId::Chinese_Traditional = 19,
  MacLanguageId::Urdu = 20, MacLanguageId::Hindi = 21, MacLanguageId::Thai = 22, MacLanguageId::Korean = 23,
  MacLanguageId::Lithuanian = 24, MacLanguageId::Polish = 25, MacLanguageId::Hungarian = 26, MacLanguageId::Estonian = 27,
  MacLanguageId::Latvian = 28, MacLanguageId::Sami = 29, MacLanguageId::Faroese = 30, MacLanguageId::Farsi_Persian = 31,
  MacLanguageId::Russian = 32, MacLanguageId::Chinese_Simplified = 33, MacLanguageId::Flemish = 34, MacLanguageId::Irish_Gaelic = 35,
  MacLanguageId::Albanian = 36, MacLanguageId::Romanian = 37, MacLanguageId::Czech = 38, MacLanguageId::Slovak = 39,
  MacLanguageId::Slovenian = 40, MacLanguageId::Yiddish = 41, MacLanguageId::Serbian = 42, MacLanguageId::Macedonian = 43,
  MacLanguageId::Bulgarian = 44, MacLanguageId::Ukrainian = 45, MacLanguageId::Byelorussian = 46, MacLanguageId::Uzbek = 47,
  MacLanguageId::Kazakh = 48, MacLanguageId::Azerbaijani_Cyrillic = 49, MacLanguageId::Azerbaijani_Arabic = 50, MacLanguageId::Armenian = 51,
  MacLanguageId::Georgian = 52, MacLanguageId::Moldavian = 53, MacLanguageId::Kirghiz = 54, MacLanguageId::Tajiki = 55,
  MacLanguageId::Turkmen = 56, MacLanguageId::Mongolian = 57, MacLanguageId::Mongolian_Cyrillic = 58, MacLanguageId::Pashto = 59,
  MacLanguageId::Kurdish = 60, MacLanguageId::Kashmiri = 61, MacLanguageId::Sindhi = 62, MacLanguageId::Tibetan = 63,
  MacLanguageId::Nepali = 64, MacLanguageId::Sanskrit = 65, MacLanguageId::Marathi = 66, MacLanguageId::Bengali = 67,
  MacLanguageId::Assamese = 68, MacLanguageId::Gujarati = 69, MacLanguageId::Punjabi = 70, MacLanguageId::Oriya = 71,
  MacLanguageId::Malayalam = 72, MacLanguageId::Kannada = 73, MacLanguageId::Tamil = 74, MacLanguageId::Telugu = 75,
  MacLanguageId::Sinhalese = 76, MacLanguageId::Burmese = 77, MacLanguageId::Khmer = 78, MacLanguageId::Lao = 79,
  MacLanguageId::Vietnamese = 80, MacLanguageId::Indonesian = 81, MacLanguageId::Tagalog = 82, MacLanguageId::Malay_Roman = 83,
  MacLanguageId::Malay_Arabic = 84, MacLanguageId::Amharic = 85, MacLanguageId::Tigrinya = 86, MacLanguageId::Galla = 87,
  MacLanguageId::Somali = 88, MacLanguageId::Swahili = 89, MacLanguageId::Kinyarwanda_Ruanda = 90, MacLanguageId::Rundi = 91,
  MacLanguageId::Nyanja_Chewa = 92, MacLanguageId::Malagasy = 93, MacLanguageId::Esperanto = 94, MacLanguageId::Welsh = 128,
  MacLanguageId::Basque = 129, MacLanguageId::Catalan = 130, MacLanguageId::Latin = 131, MacLanguageId::Quechua = 132,
  MacLanguageId::Guarani = 133, MacLanguageId::Aymara = 134, MacLanguageId::Tatar = 135, MacLanguageId::Uighur = 136,
  MacLanguageId::Dzongkha = 137, MacLanguageId::Javanese = 138, MacLanguageId::Sundanese = 139, MacLanguageId::Galician = 140,
  MacLanguageId::Afrikaans = 141, MacLanguageId::Breton = 142, MacLanguageId::Inuktitut = 143, MacLanguageId::Scottish_Gaelic = 144,
  MacLanguageId::Manx_Gaelic = 145, MacLanguageId::Irish_Gaelic_WDA = 146, MacLanguageId::Tongan = 147, MacLanguageId::Greek_Polytonic = 148,
  MacLanguageId::Greenlandic = 149, MacLanguageId::Azerbaijani_Roman = 150
}
 Macintosh platform language id enumeration. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Public Member Functions

ASPOSE_FONT_SHARED_API void AddName (TtfNameTable::NameId nameId, TtfNameTable::PlatformId platformId, int32_t platformSpecificId, int32_t languageId, System::String name)
 Adds entry into the table. String data category to add is specified by name parameter. More...
 
ASPOSE_FONT_SHARED_API void DeleteRecordsByNameId (TtfNameTable::NameId nameId)
 Deletes all the records related to passed nameId parameter More...
 
ASPOSE_FONT_SHARED_API void DeleteRecords (TtfNameTable::PlatformId platformId, uint16_t platformSpecificId, TtfNameTable::NameId nameId)
 Deletes all the records related to passed parameters More...
 
ASPOSE_FONT_SHARED_API void DeleteRecords (TtfNameTable::PlatformId platformId, uint16_t platformSpecificId)
 Deletes all the records related to platform specified More...
 
ASPOSE_FONT_SHARED_API void DeleteRecords (TtfNameTable::PlatformId platformId, uint16_t platformSpecificId, TtfNameTable::NameId nameId, uint16_t languageId)
 Deletes record(s) related to parameters specified More...
 
ASPOSE_FONT_SHARED_API void UpdateName (TtfNameTable::PlatformId platformId, uint16_t platformSpecificId, TtfNameTable::NameId nameId, uint16_t languageId, System::String newName)
 Updates name in record(s) which related to specified platform (combination of platformId and platformSpecificId), category (nameId) and language (languageId). More...
 
ASPOSE_FONT_SHARED_API void UpdateNamesByNameId (TtfNameTable::NameId nameId, System::String newName)
 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. More...
 
ASPOSE_FONT_SHARED_API void AddMultiLanguageNames (System::SharedPtr< MultiLanguageString > mlNames, TtfNameTable::PlatformId platformId, uint16_t platformSpecificId, TtfNameTable::NameId 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. More...
 
ASPOSE_FONT_SHARED_API System::String GetNameById (TtfNameTable::NameId nameId)
 Returns a name by nameId if found, null otherwise More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< MultiLanguageStringGetMultiLanguageNameById (TtfNameTable::NameId nameId)
 Returns a name by nameId. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< MultiLanguageStringGetMultiLanguageNameById (TtfNameTable::NameId nameId, TtfNameTable::PlatformId platformId)
 Returns a name by nameId using platform identifier passed. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< MultiLanguageStringGetMultiLanguageNameById (TtfNameTable::NameId nameId, TtfNameTable::PlatformId platformId, uint16_t platformSpecificId)
 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. More...
 
ASPOSE_FONT_SHARED_API System::ArrayPtr< System::SharedPtr< TtfNameTable::NameRecord > > GetAllNameRecords ()
 Returns all NameRecord structures from table More...
 
ASPOSE_FONT_SHARED_API System::ArrayPtr< System::SharedPtr< TtfNameTable::NameRecord > > GetNameRecordsByNameId (TtfNameTable::NameId nameId)
 Returns all NameRecord structures which NameId field is equal to passed nameId value. If no records found, empty array will be returned. More...
 
- Public Member Functions inherited from Aspose::Font::TtfTables::TtfTableBase
ASPOSE_FONT_SHARED_API System::SharedPtr< TtfTableRepositoryget_TtfTables () const
 Reference to TTF table repository. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_Offset () const
 Gets offset from beginning of sfnt. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Static Public Member Functions

static ASPOSE_FONT_SHARED_API System::String get_Tag ()
 Gets table tag. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Protected Member Functions

bool get_SaveRecordsWithEmptyString () const
 Flag for saving NameRecords with empty property 'String' More...
 
void set_SaveRecordsWithEmptyString (bool value)
 Flag for saving NameRecords with empty property 'String' More...
 
 TtfNameTable (System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font)
 Initializes a new instance of the TtfNameTable class. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfNameTable, CODEPORTING_ARGS(System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font))
 
 TtfNameTable (System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfNameTable, CODEPORTING_ARGS(System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length))
 
ASPOSE_FONT_SHARED_API void Load (System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileReader > ttfReader) override
 Loads current table More...
 
ASPOSE_FONT_SHARED_API void Save (System::ArrayPtr< uint8_t > &tableBytes, uint32_t &length, uint32_t &checksum) override
 Saves the table to font stream More...
 
ASPOSE_FONT_SHARED_API void AssignDataFrom (System::SharedPtr< TtfTableBase > table) override
 Designed to copy data from another table with same type, for example hhea->hhea, hmtx->hmtx. This mechanism can be helpful when table of generated font needed to copy data from another existing font(not generated) to avoid problems with linking to data source(source table from existing font has link to data source(offset, length), but this link data is superfluous for destination table, so full copy (method like Copy()) is not decision for this case. Let the table takes necessary data via this assigning mechanism. More...
 
void AddNameById (TtfNameTable::NameId nameId, System::String name)
 Adds name by NameId. More...
 
virtual ASPOSE_FONT_SHARED_API ~TtfNameTable ()
 
- Protected Member Functions inherited from Aspose::Font::TtfTables::TtfTableBase
System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > get_Context () const
 parser context More...
 
bool get_IsNewFont () const
 indicates that the font is new More...
 
void set_IsNewFont (bool value)
 indicates that the font is new More...
 
bool get_IsModified () const
 Indicates data state in current table, if this flag is true - table data was changd and needed to be saved. More...
 
void set_IsModified (bool value)
 Indicates data state in current table, if this flag is true - table data was changd and needed to be saved. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_Length () const
 Gets length of this table in bytes (actual length not padded length). More...
 
 TtfTableBase (System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfTableBase, CODEPORTING_ARGS(System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font))
 
 TtfTableBase (System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfTableBase, CODEPORTING_ARGS(System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length))
 
void LazyLoad ()
 
virtual ASPOSE_FONT_SHARED_API void LazyLoadImpl (System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileReader > ttfReader)
 
virtual ASPOSE_FONT_SHARED_API bool IsConsistent ()
 
void LoadInitialBytes (System::ArrayPtr< uint8_t > &tableBytes, uint32_t &length, uint32_t &checksum)
 Read the initial data (all bytes) of the table and save it to array of bytes
Parameters
tableBytesArray of bytes of initial data
lengthOriginal value of length of the table
checksumOriginal value of checksum
More...
 
virtual ASPOSE_FONT_SHARED_API void SaveInitialBytes (System::ArrayPtr< uint8_t > &tableBytes, uint32_t &length, uint32_t &checksum)
 Saves the initial bytes of the table More...
 
void FinalizeWriting (System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileWriter > writer, System::SharedPtr< System::IO::MemoryStream > stream, System::ArrayPtr< uint8_t > &tableBytes, uint32_t &length, uint32_t &checksum)
 

Protected Attributes

System::EventHandler NameChanged
 
- Protected Attributes inherited from Aspose::Font::TtfTables::TtfTableBase
bool IsLoaded
 Used to detect whether table already loaded More...
 

Static Protected Attributes

static const System::String TAG
 Table Tag. More...
 
static const System::String LowerTag
 

Additional Inherited Members

- Static Protected Member Functions inherited from Aspose::Font::TtfTables::TtfTableBase
static uint32_t CalculateChecksum (System::ArrayPtr< uint8_t > data)
 

Detailed Description

Represents "name" table of the TTF Font file.

Member Enumeration Documentation

◆ MacLanguageId

Macintosh platform language id enumeration.

Enumerator
English 

English LanguageId value

French 

French LanguageId value

German 

German LanguageId value

Italian 

Italian LanguageId value

Dutch 

Dutch LanguageId value

Swedish 

Swedish LanguageId value

Spanish 

Spanish LanguageId value

Danish 

Danish LanguageId value

Portuguese 

Portuguese LanguageId value

Norwegian 

Norwegian LanguageId value

Hebrew 

Hebrew LanguageId value

Japanese 

Japanese LanguageId value

Arabic 

Arabic LanguageId value

Finnish 

Finnish LanguageId value

Greek 

Greek LanguageId value

Icelandic 

Icelandic LanguageId value

Maltese 

Maltese LanguageId value

Turkish 

Turkish LanguageId value

Croatian 

Croatian LanguageId value

Chinese_Traditional 

Chinese (Traditional) LanguageId value

Urdu 

Urdu LanguageId value

Hindi 

Hindi LanguageId value

Thai 

Thai LanguageId value

Korean 

Korean LanguageId value

Lithuanian 

Lithuanian LanguageId value

Polish 

Polish LanguageId value

Hungarian 

Hungarian LanguageId value

Estonian 

Estonian LanguageId value

Latvian 

Latvian LanguageId value

Sami 

Sami LanguageId value

Faroese 

Faroese LanguageId value

Farsi_Persian 

Farsi/Persian LanguageId value

Russian 

Russian LanguageId value

Chinese_Simplified 

Chinese (Simplified) LanguageId value

Flemish 

Flemish LanguageId value

Irish_Gaelic 

Irish Gaelic LanguageId value

Albanian 

Albanian LanguageId value

Romanian 

Romanian LanguageId value

Czech 

Czech LanguageId value

Slovak 

Slovak LanguageId value

Slovenian 

Slovenian LanguageId value

Yiddish 

Yiddish LanguageId value

Serbian 

Serbian LanguageId value

Macedonian 

Macedonian LanguageId value

Bulgarian 

Bulgarian LanguageId value

Ukrainian 

Ukrainian LanguageId value

Byelorussian 

Byelorussian LanguageId value

Uzbek 

Uzbek LanguageId value

Kazakh 

Kazakh LanguageId value

Azerbaijani_Cyrillic 

Azerbaijani (Cyrillic script) LanguageId value

Azerbaijani_Arabic 

Azerbaijani (Arabic script) LanguageId value

Armenian 

Armenian LanguageId value

Georgian 

Georgian LanguageId value

Moldavian 

Moldavian LanguageId value

Kirghiz 

Kirghiz LanguageId value

Tajiki 

Tajiki LanguageId value

Turkmen 

Turkmen LanguageId value

Mongolian 

Mongolian (Mongolian script) LanguageId value

Mongolian_Cyrillic 

Mongolian (Cyrillic script) LanguageId value

Pashto 

Pashto LanguageId value

Kurdish 

Kurdish LanguageId value

Kashmiri 

Kashmiri LanguageId value

Sindhi 

Sindhi LanguageId value

Tibetan 

Tibetan LanguageId value

Nepali 

Nepali LanguageId value

Sanskrit 

Sanskrit LanguageId value

Marathi 

Marathi LanguageId value

Bengali 

Bengali LanguageId value

Assamese 

Assamese LanguageId value

Gujarati 

Gujarati LanguageId value

Punjabi 

Punjabi LanguageId value

Oriya 

Oriya LanguageId value

Malayalam 

Malayalam LanguageId value

Kannada 

Kannada LanguageId value

Tamil 

Tamil LanguageId value

Telugu 

Telugu LanguageId value

Sinhalese 

Sinhalese LanguageId value

Burmese 

Burmese LanguageId value

Khmer 

Khmer LanguageId value

Lao 

Lao LanguageId value

Vietnamese 

Vietnamese LanguageId value

Indonesian 

Indonesian LanguageId value

Tagalog 

Tagalog LanguageId value

Malay_Roman 

Malay (Roman script) LanguageId value

Malay_Arabic 

Malay (Arabic script) LanguageId value

Amharic 

Amharic LanguageId value

Tigrinya 

Tigrinya LanguageId value

Galla 

Galla LanguageId value

Somali 

Somali LanguageId value

Swahili 

Swahili LanguageId value

Kinyarwanda_Ruanda 

Kinyarwanda/Ruanda LanguageId value

Rundi 

Rundi LanguageId value

Nyanja_Chewa 

Nyanja/Chewa LanguageId value

Malagasy 

Malagasy LanguageId value

Esperanto 

Esperanto LanguageId value

Welsh 

Welsh LanguageId value

Basque 

Basque LanguageId value

Catalan 

Catalan LanguageId value

Latin 

Latin LanguageId value

Quechua 

Quechua LanguageId value

Guarani 

Guarani LanguageId value

Aymara 

Aymara LanguageId value

Tatar 

Tatar LanguageId value

Uighur 

Uighur LanguageId value

Dzongkha 

Dzongkha LanguageId value

Javanese 

Javanese (Roman script) LanguageId value

Sundanese 

Sundanese (Roman script) LanguageId value

Galician 

Galician LanguageId value

Afrikaans 

Afrikaans LanguageId value

Breton 

Breton LanguageId value

Inuktitut 

Inuktitut LanguageId value

Scottish_Gaelic 

Scottish Gaelic LanguageId value

Manx_Gaelic 

Manx Gaelic LanguageId value

Irish_Gaelic_WDA 

Irish Gaelic (with dot above) LanguageId value

Tongan 

Tongan LanguageId value

Greek_Polytonic 

Greek (polytonic) LanguageId value

Greenlandic 

Greenlandic LanguageId value

Azerbaijani_Roman 

Azerbaijani (Roman script) LanguageId value

◆ MacPlatformSpecificId

Represents Macintosh platform PlatformSpecificId enumeration.

Enumerator
Roman 

Roman platform specific value.

Japanese 

Japanese platform specific value.

Traditional_Chinese 

Traditional Chinese platform specific value.

Korean 

Korean platform specific value.

Arabic 

Arabic platform specific value.

Hebrew 

Hebrew platform specific value.

Greek 

Greek platform specific value.

Russian 

Russian platform specific value.

RSymbol 

RSymbol platform specific value.

Devanagari 

Devanagari platform specific value.

Gurmukhi 

Gurmukhi platform specific value.

Gujarati 

Gujarati platform specific value.

Oriya 

Oriya platform specific value.

Bengali 

Bengali platform specific value.

Tamil 

Tamil platform specific value.

Telugu 

Telugu platform specific value.

Kannada 

Kannada platform specific value.

Malayalam 

Malayalam platform specific value.

Sinhalese 

Sinhalese platform specific value.

Burmese 

Burmese platform specific value.

Khmer 

Khmer platform specific value.

Thai 

Thai platform specific value.

Laotian 

Laotian platform specific value.

Georgian 

Georgian platform specific value.

Armenian 

Armenian platform specific value.

Simplified_Chinese 

Simplified Chinese platform specific value.

Tibetan 

Tibetan platform specific value.

Mongolian 

Mongolian platform specific value.

Geez 

Geez platform specific value.

Slavic 

Slavic platform specific value.

Vietnamese 

Vietnamese platform specific value.

Sindhi 

Sindhi platform specific value.

Uninterpreted 

Uninterpreted platform specific value.

◆ MSLanguageId

Microsoft platform language id enumeration.

Enumerator
Afrikaans 

Afrikaans (Region: South Africa, SA) LanguageId value

Albanian 

Albanian (Region: Albania, SQI) LanguageId value

Alsatian 

Alsatian (Region: France) LanguageId value

Amharic 

Amharic (Region: Ethiopia) LanguageId value

Arabic_Algeria 

Arabic (Region: Algeria) LanguageId value

Arabic_Bahrain 

Arabic (Region: Bahrain) LanguageId value

Arabic_Egypt 

Arabic (Region: Egypt) LanguageId value

Arabic_Iraq 

Arabic (Region: Iraq) LanguageId value

Arabic_Jordan 

Arabic (Region: Jordan) LanguageId value

Arabic_Kuwait 

Arabic (Region: Kuwait) LanguageId value

Arabic_Lebanon 

Arabic (Region: Lebanon) LanguageId value

Arabic_Libya 

Arabic (Region: Libya) LanguageId value

Arabic_Morocco 

Arabic (Region: Morocco) LanguageId value

Arabic_Oman 

Arabic (Region: Oman) LanguageId value

Arabic_Qatar 

Arabic (Region: Qatar) LanguageId value

Arabic_Saudi_Arabia 

Arabic (Region: Saudi Arabia) LanguageId value

Arabic_Syria 

Arabic (Region: Syria) LanguageId value

Arabic_Tunisia 

Arabic (Region: Tunisia) LanguageId value

Arabic_U_A_E 

Arabic (Region: U.A.E.) LanguageId value

Arabic_Yemen 

Arabic (Region: Yemen) LanguageId value

Armenian 

Armenian (Region: Armenia) LanguageId value

Assamese 

Assamese (Region: India) LanguageId value

Azeri_Cyrillic 

Azeri (Cyrillic, Region: Azerbaijan) LanguageId value

Azeri_Latin 

Azeri (Latin, Region: Azerbaijan) LanguageId value

Bashkir 

Bashkir (Region: Russia) LanguageId value

Basque 

Basque (Region: Basque, EUQ) LanguageId value

Belarusian 

Belarusian (Region: Belarus, BEL) LanguageId value

Bengali_Bangladesh 

Bengali (Region: Bangladesh) LanguageId value

Bengali_India 

Bengali (Region: India) LanguageId value

Bosnian_Cyrillic 

Bosnian (Cyrillic, Region: Bosnia and Herzegovina) LanguageId value

Bosnian_Latin 

Bosnian (Latin, Region: Bosnia and Herzegovina) LanguageId value

Breton 

Breton (Region: France) LanguageId value

Bulgarian 

Bulgarian (Region: Bulgaria, BGR) LanguageId value

Catalan 

Catalan (Region: Catalan, CAT) LanguageId value

Chinese_Hong_Kong 

Chinese (Region: Hong Kong S.A.R.) LanguageId value

Chinese_Macao 

Chinese (Region: Macao S.A.R.) LanguageId value

Chinese_PRC 

Chinese (Region: People’s Republic of China) LanguageId value

Chinese_Singapore 

Chinese (Region: Singapore) LanguageId value

Chinese_Taiwan 

Chinese (Region: Taiwan) LanguageId value

Corsican 

Corsican (Region: France) LanguageId value

Croatian 

Croatian (Region: Croatia, SHL) LanguageId value

Croatian_Latin 

Croatian (Latin, Region: Bosnia and Herzegovina) LanguageId value

Czech 

Czech (Region: Czech Republic, CSY) LanguageId value

Danish 

Danish (Region: Denmark, DAN) LanguageId value

Dari 

Dari (Region: Afghanistan) LanguageId value

Divehi 

Divehi (Region: Maldives) LanguageId value

Dutch_Belgium 

Dutch (Flemish, Region: Belgium, NLB) LanguageId value

Dutch_Netherlands 

Dutch (Standard, Region: Netherlands, NLD) LanguageId value

English_Australia 

English (Australian, Region: Australia, ENA) LanguageId value

English_Belize 

English (Region: Belize) LanguageId value

English_Canada 

English (Canadian, Region: Canada, ENC) LanguageId value

English_Caribbean 

English (Region: Caribbean) LanguageId value

English_India 

English (Region: India) LanguageId value

English_Ireland 

English (Region: Ireland, ENI) LanguageId value

English_Jamaica 

English (Region: Jamaica) LanguageId value

English_Malaysia 

English (Region: Malaysia) LanguageId value

English_New_Zealand 

English (Region: New Zealand, ENZ) LanguageId value

English_ROP 

English (Region: Republic of the Philippines, ROP) LanguageId value

English_Singapore 

English (Region: Singapore) LanguageId value

English_South_Africa 

English (Region: South Africa, SA) LanguageId value

English_TT 

English (Region: Trinidad and Tobago, TT) LanguageId value

English_United_Kingdom 

English (British, Region: United Kingdom, ENG) LanguageId value

English_United_States 

English (American, Region: United States, ENU) LanguageId value

English_Zimbabwe 

English (Region: Zimbabwe) LanguageId value

Estonian 

Estonian (Region: Estonia, ETI) LanguageId value

Faroese 

Faroese (Region: Faroe Islands) LanguageId value

Filipino 

Filipino (Region: Philippines) LanguageId value

Finnish 

Finnish (Region: Finland, FIN) LanguageId value

French_Belgium 

French (Belgian, Region: Belgium, FRB) LanguageId value

French_Canada 

French (Canadian, Region: Canada, FRC) LanguageId value

French_France 

French (Standard, Region: France, FRA) LanguageId value

French_Luxembourg 

French (Region: Luxembourg, FRL) LanguageId value

French_MC 

French (Region: Principality of Monaco, MC) LanguageId value

French_Switzerland 

French (Swiss, Region: Switzerland, FRS) LanguageId value

Frisian 

Frisian (Region: Netherlands, NLD) LanguageId value

Galician 

Galician (Region: Galician) LanguageId value

Georgian 

Georgian (Region: Georgia) LanguageId value

German_Austria 

German (Austrian, Region: Austria, DEA) LanguageId value

German_Germany 

German (Standard, Region: Germany, DEU) LanguageId value

German_Liechtenstein 

German (Region: Liechtenstein, DEC) LanguageId value

German_Luxembourg 

German (Region: Luxembourg, DEL) LanguageId value

German_Switzerland 

German (Swiss, Region: Switzerland, DES) LanguageId value

Greek 

Greek (Region: Greece, ELL) LanguageId value

Greenlandic 

Greenlandic (Region: Greenland) LanguageId value

Gujarati 

Gujarati (Region: India) LanguageId value

Hausa 

Hausa (Latin, Region: Nigeria) LanguageId value

Hebrew 

Hebrew (Region: Israel) LanguageId value

Hindi 

Hindi (Region: India) LanguageId value

Hungarian 

Hungarian (Region: Hungary, HUN) LanguageId value

Icelandic 

Icelandic (Region: Iceland, ISL) LanguageId value

Igbo 

Igbo (Region: Nigeria) LanguageId value

Indonesian 

Indonesian (Region: Indonesia) LanguageId value

Inuktitut 

Inuktitut (Region: Canada) LanguageId value

Inuktitut_Latin 

Inuktitut (Latin, Region: Canada) LanguageId value

Irish 

Irish (Region: Ireland) LanguageId value

isiXhosa 

isiXhosa (Region: South Africa, SA) LanguageId value

isiZulu 

isiZulu (Region: South Africa, SA) LanguageId value

Italian_Italy 

Italian (Standard, Region: Italy, ITA) LanguageId value

Italian_Switzerland 

Italian (Swiss, Region: Switzerland, ITS) LanguageId value

Japanese 

Japanese (Region: Japan) LanguageId value

Kannada 

Kannada (Region: India) LanguageId value

Kazakh 

Kazakh (Region: Kazakhstan) LanguageId value

Khmer 

Khmer (Region: Cambodia) LanguageId value

Kiche 

K’iche (Region: Guatemala) LanguageId value

Kinyarwanda 

Kinyarwanda (Region: Rwanda) LanguageId value

Kiswahili 

Kiswahili (Region: Kenya) LanguageId value

Konkani 

Konkani (Region: India) LanguageId value

Korean 

Korean (Region: Korea) LanguageId value

Kyrgyz 

Kyrgyz (Region: Kyrgyzstan) LanguageId value

Lao 

Lao (Region: Lao P.D.R.) LanguageId value

Latvian 

Latvian (Region: Latvia, LVI) LanguageId value

Lithuanian 

Lithuanian (Region: Lithuania, LTH) LanguageId value

Lower_Sorbian 

Lower Sorbian (Region: Germany) LanguageId value

Luxembourgish 

Luxembourgish (Region: Luxembourg) LanguageId value

Macedonian 

Macedonian (Region: North Macedonia) LanguageId value

Malay_Brunei_Darussalam 

Malay (Region: Brunei Darussalam) LanguageId value

Malay_Malaysia 

Malay (Region: Malaysia) LanguageId value

Malayalam 

Malayalam (Region: India) LanguageId value

Maltese 

Maltese (Region: Malta) LanguageId value

Maori 

Maori (Region: New Zealand) LanguageId value

Mapudungun 

Mapudungun (Region: Chile) LanguageId value

Marathi 

Marathi (Region: India) LanguageId value

Mohawk 

Mohawk (Region: Mohawk) LanguageId value

Mongolian_Cyrillic 

Mongolian (Cyrillic, Region: Mongolia) LanguageId value

Mongolian_Traditional 

Mongolian (Traditional, Region: People’s Republic of China) LanguageId value

Nepali 

Nepali (Region: Nepal) LanguageId value

Norwegian_Bokmal 

Norwegian (Bokmal, Region: Norway, NOR) LanguageId value

Norwegian_Nynorsk 

Norwegian (Nynorsk, Region: Norway, NON) LanguageId value

Occitan 

Occitan (Region: France) LanguageId value

Odia 

Odia (formerly Oriya, Region: India) LanguageId value

Pashto 

Pashto (Region: Afghanistan) LanguageId value

Polish 

Polish (Region: Poland, PLK) LanguageId value

Portuguese_Brazil 

Portuguese (Brazilian, Region: Brazil, PTB) LanguageId value

Portuguese_Portugal 

Portuguese (Standard, Region: Portugal, PTG) LanguageId value

Punjabi 

Punjabi (Region: India) LanguageId value

Quechua_Bolivia 

Quechua (Region: Bolivia) LanguageId value

Quechua_Ecuador 

Quechua (Region: Ecuador) LanguageId value

Quechua_Peru 

Quechua (Region: Peru) LanguageId value

Romanian 

Romanian (Region: Romania, ROM) LanguageId value

Romansh 

Romansh (Region: Switzerland) LanguageId value

Russian 

Russian (Region: Russia, RUS) LanguageId value

Sami_Inari 

Sami (Inari, Region: Finland) LanguageId value

Sami_Lule_Norway 

Sami (Lule, Region: Norway) LanguageId value

Sami_Lule_Sweden 

Sami (Lule, Region: Sweden) LanguageId value

Sami_Northern_Finland 

Sami (Northern, Region: Finland) LanguageId value

Sami_Northern_Norway 

Sami (Northern, Region: Norway) LanguageId value

Sami_Northern_Sweden 

Sami (Northern, Region: Sweden) LanguageId value

Sami_Skolt 

Sami (Skolt, Region: Finland) LanguageId value

Sami_Southern_Norway 

Sami (Southern, Region: Norway) LanguageId value

Sami_Southern_Sweden 

Sami (Southern, Region: Sweden) LanguageId value

Sanskrit 

Sanskrit (Region: India) LanguageId value

Serbian_Cyrillic_BIH 

Serbian (Cyrillic, Region: Bosnia and Herzegovina) LanguageId value

Serbian_Cyrillic_Serbia 

Serbian (Cyrillic, Region: Serbia) LanguageId value

Serbian_Latin_BIH 

Serbian (Latin, Region: Bosnia and Herzegovina) LanguageId value

Serbian_Latin_Serbia 

Serbian (Latin, Region: Serbia) LanguageId value

Sesotho_Sa_Leboa 

Sesotho sa Leboa (Northern Sotho, Region: South Africa, SA) LanguageId value

Setswana 

Setswana (Region: South Africa, SA) LanguageId value

Sinhala 

Sinhala (Region: Sri Lanka) LanguageId value

Slovak 

Slovak (Region: Slovakia, SKY) LanguageId value

Slovenian 

Slovenian (Region: Slovenia, SLV) LanguageId value

Spanish_Argentina 

Spanish (Region: Argentina) LanguageId value

Spanish_Bolivia 

Spanish (Region: Bolivia) LanguageId value

Spanish_Chile 

Spanish (Region: Chile) LanguageId value

Spanish_Colombia 

Spanish (Region: Colombia) LanguageId value

Spanish_Costa_Rica 

Spanish (Region: Costa Rica) LanguageId value

Spanish_Dominican_Republic 

Spanish (Region: Dominican Republic) LanguageId value

Spanish_Ecuador 

Spanish (Region: Ecuador) LanguageId value

Spanish_El_Salvador 

Spanish (Region: El Salvador) LanguageId value

Spanish_Guatemala 

Spanish (Region: Guatemala) LanguageId value

Spanish_Honduras 

Spanish (Region: Honduras) LanguageId value

Spanish_Mexico 

Spanish (Mexican, Region: Mexico, ESM) LanguageId value

Spanish_Nicaragua 

Spanish (Region: Nicaragua) LanguageId value

Spanish_Panama 

Spanish (Region: Panama) LanguageId value

Spanish_Paraguay 

Spanish (Region: Paraguay) LanguageId value

Spanish_Peru 

Spanish (Region: Peru) LanguageId value

Spanish_Puerto_Rico 

Spanish (Region: Puerto Rico) LanguageId value

Spanish_Modern_Sort 

Spanish (Modern Sort, Region: Spain, ESN) LanguageId value

Spanish_Traditional_Sort 

Spanish (Traditional Sort, Region: Spain, ESP) LanguageId value

Spanish_United_States 

Spanish (Region: United States) LanguageId value

Spanish_Uruguay 

Spanish (Region: Uruguay) LanguageId value

Spanish_Venezuela 

Spanish (Region: Venezuela) LanguageId value

Swedish_Finland 

Swedish (Region: Finland) LanguageId value

Swedish_Sweden 

Swedish (Region: Sweden, SVE) LanguageId value

Syriac 

Syriac (Region: Syria) LanguageId value

Tajik 

Tajik (Cyrillic, Region: Tajikistan) LanguageId value

Tamazight 

Tamazight (Latin, Region: Algeria) LanguageId value

Tamil 

Tamil (Region: India) LanguageId value

Tatar 

Tatar (Region: Russia) LanguageId value

Telugu 

Telugu (Region: India) LanguageId value

Thai 

Thai (Region: Thailand) LanguageId value

Tibetan 

Tibetan (Region: PRC) LanguageId value

Turkish 

Turkish (Region: Turkey, TRK) LanguageId value

Turkmen 

Turkmen (Region: Turkmenistan) LanguageId value

Uighur 

Uighur (Region: PRC) LanguageId value

Ukrainian 

Ukrainian (Region: Ukraine, UKR) LanguageId value

Upper_Sorbian 

Upper Sorbian (Region: Germany) LanguageId value

Urdu 

Urdu (Region: Islamic Republic of Pakistan) LanguageId value

Uzbek_Cyrillic 

Uzbek (Cyrillic, Region: Uzbekistan) LanguageId value

Uzbek_Latin 

Uzbek (Latin, Region: Uzbekistan) LanguageId value

Vietnamese 

Vietnamese (Region: Vietnam) LanguageId value

Welsh 

Welsh (Region: United Kingdom) LanguageId value

Wolof 

Wolof (Region: Senegal) LanguageId value

Yakut 

Yakut (Region: Russia) LanguageId value

Yi 

Yi (Region: PRC) LanguageId value

Yoruba 

Yoruba (Region: Nigeria) LanguageId value

◆ MSPlatformSpecificId

Represents Microsoft platform PlatformSpecificId enumeration.

Enumerator
Symbol 

Symbol MS PlatformSpecificId.

Unicode_BMP_UCS2 

Unicode BMP (UCS2) MS PlatformSpecificId.

ShiftJIS 

ShiftJIS MS PlatformSpecificId.

PRC 

PRC MS PlatformSpecificId.

Big5 

Big5 MS PlatformSpecificId.

Wansung 

Wansung MS PlatformSpecificId.

Johab 

Johab MS PlatformSpecificId.

Reserved1 

Reserved1 MS PlatformSpecificId.

Reserved2 

Reserved2 MS PlatformSpecificId.

Reserved3 

Reserved3 MS PlatformSpecificId.

Unicode_UCS4 

Unicode UCS4 MS PlatformSpecificId.

◆ NameId

Represents NameId.

Enumerator
CopyrightNotice 

0 Copyright notice.

FontFamily 

1 Font Family. This string is the Font family name the user sees on Macintosh platforms.

FontSubfamily 

2 Font Subfamily. This string is the Font family the user sees on Macintosh platforms.

UniqueFontId 

3 Unique subfamily identification (Apple spec). 3 Unique Font identifier (MS spec).

FullName 

4 Full name of the Font.

Version 

5 Version of the name table.

PostScriptName 

6 PostScript name of the Font. Note: A Font may have only one PostScript name and that name must be ASCII.

TrademarkNotice 

7 Trademark notice.

ManufacturerName 

8 Manufacturer name.

DesignerName 

9 Designer; name of the designer of the typeface.

Description 

10 Description; description of the typeface. Can contain revision information, usage recommendations, history, features, and so on.

UrlVendor 

11 URL of the Font vendor (with procotol, e.g., http://, ftp://). If a unique serial number is embedded in the URL, it can be used to register the Font.

UrlDesigner 

12 URL of the Font designer (with protocol, e.g., http://, ftp://)

LicenseDescription 

13 License description; description of how the Font may be legally used, or different example scenarios for licensed use. This field should be written in plain language, not legalese.

LicenseInfoUrl 

14 License information URL, where additional licensing information can be found.

PreferredFamily 

15 Reserved 16 Preferred Family (Windows only); In Windows, the Family name is displayed in the Font menu; the Subfamily name is presented as the Style name. For historical reasons, Font families have contained a maximum of four styles, but Font designers may group more than four fonts to a single family. The Preferred Family and Preferred Subfamily IDs allow Font designers to include the preferred family/subfamily groupings. These IDs are only present if they are different from IDs 1 and 2.

PreferredSubfamily 

17 Preferred Subfamily (Windows only); In Windows, the Family name is displayed in the Font menu; the Subfamily name is presented as the Style name. For historical reasons, Font families have contained a maximum of four styles, but Font designers may group more than four fonts to a single family. The Preferred Family and Preferred Subfamily IDs allow Font designers to include the preferred family/subfamily groupings. These IDs are only present if they are different from IDs 1 and 2.

CompatibleFull 

18 Compatible Full (Macintosh only); On the Macintosh, the menu name is constructed using the Font resource. This usually matches the Full Name. If you want the name of the Font to appear differently than the Full Name, you can insert the Compatible Full Name in ID 18. This name is not used by the Mac OS itself, but may be used by application developers (e.g., Adobe).

SampleText 

19 Sample text. This can be the Font name, or any other text that the designer thinks is the best sample text to show what the Font looks like.

PostScriptCID 

Its presence in a font means that the nameID 6 holds a PostScript font name that is meant to be used with the “composefont” invocation in order to invoke the font in a PostScript interpreter

WwsFamilyName 

Used to provide a WWS-conformant family name in case the entries for IDs 16 and 17 do not conform to the WWS model

WwsSubfamilyName 

Used in conjunction with ID 21, this ID provides a WWS-conformant subfamily name (reflecting only weight, width and slope attributes) in case the entries for IDs 16 and 17 do not conform to the WWS model

LightBackground 

This ID, if used in the CPAL table’s Palette Labels Array, specifies that the corresponding color palette in the CPAL table is appropriate to use with the font when displaying it on a light background such as white

DarkBackground 

This ID, if used in the CPAL table’s Palette Labels Array, specifies that the corresponding color palette in the CPAL table is appropriate to use with the font when displaying it on a dark background such as black

VariationsPostScriptNamePrefix 

If present in a variable font, it may be used as the family prefix in the PostScript Name Generation for Variation Fonts algorithm

◆ PlatformId

Represents PlatformId enumeration.

Enumerator
Unicode 

Value 0 Unicode

Macintosh 

Value 1 Macintosh Script Manager code.

ISO 

Value2 Apple spec: (reserved; do not use) MS spec: ISO encoding. Note that platform ID 2 (ISO) has been deprecated as of OpenType Specification v1.3. It was intended to represent ISO/IEC 10646, as opposed to Unicode; both standards have identical character code assignments

◆ UnicodePlatformSpecificId

Represents unicode platform-specific enumeration.

Enumerator
Default 

Value 0 Default semantics (Unicode 1.0).

Unicode1_1 

Value 1 Unicode 1.1 semantics.

ISO10646_1993 

Value 2 ISO 10646 1993 semantics (deprecated).

Unicode2_0 

Value 3 Unicode 2.0 or later semantics. Unicode BMP only.

Unicode2_0_Full 

Value 4 Unicode 2.0 and onwards semantics (non-BMP characters allowed), Unicode full repertoire.

Constructor & Destructor Documentation

◆ TtfNameTable() [1/2]

Aspose::Font::TtfTables::TtfNameTable::TtfNameTable ( System::SharedPtr< TtfTableRepository ttfTables,
System::SharedPtr< Aspose::Font::Ttf::TtfFont font 
)
protected

Initializes a new instance of the TtfNameTable class.

Parameters
ttfTablesTTF tables repository.
fontTTF Font.

◆ TtfNameTable() [2/2]

Aspose::Font::TtfTables::TtfNameTable::TtfNameTable ( System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext >  context,
uint32_t  checkSum,
uint32_t  offset,
uint32_t  length 
)
protected

◆ ~TtfNameTable()

virtual ASPOSE_FONT_SHARED_API Aspose::Font::TtfTables::TtfNameTable::~TtfNameTable ( )
protectedvirtual

Member Function Documentation

◆ AddMultiLanguageNames()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::AddMultiLanguageNames ( System::SharedPtr< MultiLanguageString mlNames,
TtfNameTable::PlatformId  platformId,
uint16_t  platformSpecificId,
TtfNameTable::NameId  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.

Parameters
mlNamesMultilingual string
platformIdPlatform identifier
platformSpecificIdPlatform-specific encoding identifier
nameIdName identifier, logical string category, specified by NameId enumeration

◆ AddName()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::AddName ( TtfNameTable::NameId  nameId,
TtfNameTable::PlatformId  platformId,
int32_t  platformSpecificId,
int32_t  languageId,
System::String  name 
)

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

Parameters
nameIdName identifier, logical string category, specified by NameId enumeration
platformIdPlatform identifier
platformSpecificIdPlatform-specific encoding identifier. Please, use value from one of such enumerations - UnicodePlatformSpecificId, MacPlatformSpecificId, MSPlatformSpecificId. What enumeration to use is defined by context (platformId parameter)
languageIdLanguage identifier. Please, use value from MSLanguageId or MacLanguageId enumerations depend from context, defined by platformId parameter.
nameActual string data

◆ AddNameById()

void Aspose::Font::TtfTables::TtfNameTable::AddNameById ( TtfNameTable::NameId  nameId,
System::String  name 
)
protected

Adds name by NameId.

Parameters
nameIdname identifier
namename

◆ AssignDataFrom()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::AssignDataFrom ( System::SharedPtr< TtfTableBase table)
overrideprotectedvirtual

Designed to copy data from another table with same type, for example hhea->hhea, hmtx->hmtx. This mechanism can be helpful when table of generated font needed to copy data from another existing font(not generated) to avoid problems with linking to data source(source table from existing font has link to data source(offset, length), but this link data is superfluous for destination table, so full copy (method like Copy()) is not decision for this case. Let the table takes necessary data via this assigning mechanism.

Parameters
tabletable to get data from

Reimplemented from Aspose::Font::TtfTables::TtfTableBase.

◆ DeleteRecords() [1/3]

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::DeleteRecords ( TtfNameTable::PlatformId  platformId,
uint16_t  platformSpecificId,
TtfNameTable::NameId  nameId 
)

Deletes all the records related to passed parameters

Parameters
platformIdPlatform identifier
platformSpecificIdPlatform-specific encoding identifier
nameIdName identifier, logical string category, specified by NameId enumeration

◆ DeleteRecords() [2/3]

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::DeleteRecords ( TtfNameTable::PlatformId  platformId,
uint16_t  platformSpecificId 
)

Deletes all the records related to platform specified

Parameters
platformIdPlatform identifier
platformSpecificIdPlatform-specific encoding identifier

◆ DeleteRecords() [3/3]

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::DeleteRecords ( TtfNameTable::PlatformId  platformId,
uint16_t  platformSpecificId,
TtfNameTable::NameId  nameId,
uint16_t  languageId 
)

Deletes record(s) related to parameters specified

Parameters
platformIdPlatform identifier
platformSpecificIdPlatform-specific encoding identifier
nameIdName identifier, logical string category, specified by NameId enumeration
languageIdLanguage identifier

◆ DeleteRecordsByNameId()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::DeleteRecordsByNameId ( TtfNameTable::NameId  nameId)

Deletes all the records related to passed nameId parameter

Parameters
nameIdName identifier, logical string category, specified by NameId enumeration

◆ get_SaveRecordsWithEmptyString()

bool Aspose::Font::TtfTables::TtfNameTable::get_SaveRecordsWithEmptyString ( ) const
protected

Flag for saving NameRecords with empty property 'String'

◆ get_Tag()

static ASPOSE_FONT_SHARED_API System::String Aspose::Font::TtfTables::TtfNameTable::get_Tag ( )
static

Gets table tag.

◆ GetAllNameRecords()

ASPOSE_FONT_SHARED_API System::ArrayPtr<System::SharedPtr<TtfNameTable::NameRecord> > Aspose::Font::TtfTables::TtfNameTable::GetAllNameRecords ( )

Returns all NameRecord structures from table

Returns
Array of NameRecord structures

◆ GetMultiLanguageNameById() [1/3]

ASPOSE_FONT_SHARED_API System::SharedPtr<MultiLanguageString> Aspose::Font::TtfTables::TtfNameTable::GetMultiLanguageNameById ( TtfNameTable::NameId  nameId)

Returns a name by nameId.

Parameters
nameIdName Id.
Returns
Name.

◆ GetMultiLanguageNameById() [2/3]

ASPOSE_FONT_SHARED_API System::SharedPtr<MultiLanguageString> Aspose::Font::TtfTables::TtfNameTable::GetMultiLanguageNameById ( TtfNameTable::NameId  nameId,
TtfNameTable::PlatformId  platformId 
)

Returns a name by nameId using platform identifier passed.

Parameters
nameIdName Id.
platformIdPlatform Id.
Returns
Name.

◆ GetMultiLanguageNameById() [3/3]

ASPOSE_FONT_SHARED_API System::SharedPtr<MultiLanguageString> Aspose::Font::TtfTables::TtfNameTable::GetMultiLanguageNameById ( TtfNameTable::NameId  nameId,
TtfNameTable::PlatformId  platformId,
uint16_t  platformSpecificId 
)

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.

Parameters
nameIdName Id.
platformIdPlatform Id.
platformSpecificIdPlatform specific Id.
Returns
Name.

◆ GetNameById()

ASPOSE_FONT_SHARED_API System::String Aspose::Font::TtfTables::TtfNameTable::GetNameById ( TtfNameTable::NameId  nameId)

Returns a name by nameId if found, null otherwise

Parameters
nameIdname identifier
Returns
name

◆ GetNameRecordsByNameId()

ASPOSE_FONT_SHARED_API System::ArrayPtr<System::SharedPtr<TtfNameTable::NameRecord> > Aspose::Font::TtfTables::TtfNameTable::GetNameRecordsByNameId ( TtfNameTable::NameId  nameId)

Returns all NameRecord structures which NameId field is equal to passed nameId value. If no records found, empty array will be returned.

Parameters
nameIdname identifier
Returns
Array of NameRecord structures

◆ Load()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::Load ( System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileReader >  ttfReader)
overrideprotectedvirtual

Loads current table

Reimplemented from Aspose::Font::TtfTables::TtfTableBase.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/2]

Aspose::Font::TtfTables::TtfNameTable::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TtfNameTable  ,
CODEPORTING_ARGS(System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/2]

Aspose::Font::TtfTables::TtfNameTable::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TtfNameTable  ,
CODEPORTING_ARGS(System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length)   
)
protected

◆ Save()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::Save ( System::ArrayPtr< uint8_t > &  tableBytes,
uint32_t &  length,
uint32_t &  checksum 
)
overrideprotectedvirtual

Saves the table to font stream

base mathod implementation simply retrieves initial table data

Reimplemented from Aspose::Font::TtfTables::TtfTableBase.

◆ set_SaveRecordsWithEmptyString()

void Aspose::Font::TtfTables::TtfNameTable::set_SaveRecordsWithEmptyString ( bool  value)
protected

Flag for saving NameRecords with empty property 'String'

◆ UpdateName()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::UpdateName ( TtfNameTable::PlatformId  platformId,
uint16_t  platformSpecificId,
TtfNameTable::NameId  nameId,
uint16_t  languageId,
System::String  newName 
)

Updates name in record(s) which related to specified platform (combination of platformId and platformSpecificId), category (nameId) and language (languageId).

Parameters
platformIdPlatform identifier
platformSpecificIdPlatform-specific encoding identifier
nameIdName identifier, logical string category, specified by NameId enumeration
languageIdLanguage identifier
newNameNew name or new string data

◆ UpdateNamesByNameId()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfNameTable::UpdateNamesByNameId ( TtfNameTable::NameId  nameId,
System::String  newName 
)

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.

Parameters
nameIdName identifier, logical string category, specified by NameId enumeration
newNameNew name or new string data

Member Data Documentation

◆ LowerTag

const System::String Aspose::Font::TtfTables::TtfNameTable::LowerTag
staticprotected

◆ NameChanged

System::EventHandler Aspose::Font::TtfTables::TtfNameTable::NameChanged
protected

◆ TAG

const System::String Aspose::Font::TtfTables::TtfNameTable::TAG
staticprotected

Table Tag.