Home
last modified time | relevance | path

Searched refs:nameRecord (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/src/sfnt/
DSkOTTable_name.cpp475 SkOTTableName::Record nameRecord; in next() local
477 const size_t nameRecordsMax = std::min(nameRecordsCount, nameRecordsSize / sizeof(nameRecord)); in next()
483 memcpy(&nameRecord, nameRecords + sizeof(nameRecord)*fIndex, sizeof(nameRecord)); in next()
485 } while (fType != -1 && nameRecord.nameID.fontSpecific != fType); in next()
487 record.type = nameRecord.nameID.fontSpecific; in next()
490 const size_t nameOffset = SkEndian_SwapBE16(nameRecord.offset); in next()
491 const size_t nameLength = SkEndian_SwapBE16(nameRecord.length); in next()
496 switch (nameRecord.platformID.value) { in next()
499 != nameRecord.encodingID.windows.value in next()
501 != nameRecord.encodingID.windows.value in next()
[all …]
DSkOTUtils.cpp138 …SkOTTableName::Record* nameRecord = reinterpret_cast<SkOTTableName::Record*>(data + originalDataSi… in RenameFont() local
141 nameRecord->platformID.value = SkOTTableName::Record::PlatformID::Windows; in RenameFont()
142 nameRecord->encodingID.windows.value = encoding; in RenameFont()
143nameRecord->languageID.windows.value = SkOTTableName::Record::LanguageID::Windows::English_UnitedS… in RenameFont()
144 nameRecord->nameID.predefined.value = name; in RenameFont()
145 nameRecord->offset = SkEndian_SwapBE16(0); in RenameFont()
146 nameRecord->length = SkEndian_SwapBE16(SkToU16(fontNameLen * sizeof(SK_OT_USHORT))); in RenameFont()
147 ++nameRecord; in RenameFont()
/third_party/flutter/skia/src/sfnt/
DSkOTTable_name.cpp476 SkOTTableName::Record nameRecord; in next() local
478 const size_t nameRecordsMax = SkTMin(nameRecordsCount, nameRecordsSize / sizeof(nameRecord)); in next()
484 memcpy(&nameRecord, nameRecords + sizeof(nameRecord)*fIndex, sizeof(nameRecord)); in next()
486 } while (fType != -1 && nameRecord.nameID.fontSpecific != fType); in next()
488 record.type = nameRecord.nameID.fontSpecific; in next()
491 const size_t nameOffset = SkEndian_SwapBE16(nameRecord.offset); in next()
492 const size_t nameLength = SkEndian_SwapBE16(nameRecord.length); in next()
497 switch (nameRecord.platformID.value) { in next()
500 != nameRecord.encodingID.windows.value in next()
502 != nameRecord.encodingID.windows.value in next()
[all …]
DSkOTUtils.cpp136 …SkOTTableName::Record* nameRecord = reinterpret_cast<SkOTTableName::Record*>(data + originalDataSi… in RenameFont() local
139 nameRecord->platformID.value = SkOTTableName::Record::PlatformID::Windows; in RenameFont()
140 nameRecord->encodingID.windows.value = encoding; in RenameFont()
141nameRecord->languageID.windows.value = SkOTTableName::Record::LanguageID::Windows::English_UnitedS… in RenameFont()
142 nameRecord->nameID.predefined.value = name; in RenameFont()
143 nameRecord->offset = SkEndian_SwapBE16(0); in RenameFont()
144 nameRecord->length = SkEndian_SwapBE16(SkToU16(fontNameLen * sizeof(SK_OT_USHORT))); in RenameFont()
145 ++nameRecord; in RenameFont()
/third_party/icu/icu4c/source/test/letest/
DPortableFontInstance.cpp298 const NameRecord *nameRecord = &fNAMETable->nameRecords[i]; in getNameString() local
300 … if (SWAPW(nameRecord->platformID) == platformID && SWAPW(nameRecord->encodingID) == encodingID && in getNameString()
301 SWAPW(nameRecord->languageID) == languageID && SWAPW(nameRecord->nameID) == nameID) { in getNameString()
302 char *name = ((char *) fNAMETable) + fNameStringOffset + SWAPW(nameRecord->offset); in getNameString()
303 le_uint16 length = SWAPW(nameRecord->length); in getNameString()
331 const NameRecord *nameRecord = &fNAMETable->nameRecords[i]; in getUnicodeNameString() local
333 … if (SWAPW(nameRecord->platformID) == platformID && SWAPW(nameRecord->encodingID) == encodingID && in getUnicodeNameString()
334 SWAPW(nameRecord->languageID) == languageID && SWAPW(nameRecord->nameID) == nameID) { in getUnicodeNameString()
335 …16 *name = (LEUnicode16 *) (((char *) fNAMETable) + fNameStringOffset + SWAPW(nameRecord->offset)); in getUnicodeNameString()
336 le_uint16 length = SWAPW(nameRecord->length) / 2; in getUnicodeNameString()
/third_party/icu/icu4c/source/test/perf/leperf/
DPortableFontInstance.cpp306 const NameRecord *nameRecord = &fNAMETable->nameRecords[i]; in getNameString() local
308 … if (SWAPW(nameRecord->platformID) == platformID && SWAPW(nameRecord->encodingID) == encodingID && in getNameString()
309 SWAPW(nameRecord->languageID) == languageID && SWAPW(nameRecord->nameID) == nameID) { in getNameString()
310 char *name = ((char *) fNAMETable) + fNameStringOffset + SWAPW(nameRecord->offset); in getNameString()
311 le_uint16 length = SWAPW(nameRecord->length); in getNameString()
339 const NameRecord *nameRecord = &fNAMETable->nameRecords[i]; in getUnicodeNameString() local
341 … if (SWAPW(nameRecord->platformID) == platformID && SWAPW(nameRecord->encodingID) == encodingID && in getUnicodeNameString()
342 SWAPW(nameRecord->languageID) == languageID && SWAPW(nameRecord->nameID) == nameID) { in getUnicodeNameString()
343 …16 *name = (LEUnicode16 *) (((char *) fNAMETable) + fNameStringOffset + SWAPW(nameRecord->offset)); in getUnicodeNameString()
344 le_uint16 length = SWAPW(nameRecord->length) / 2; in getUnicodeNameString()
/third_party/flutter/skia/tests/
DFontNamesTest.cpp20 SkOTTableName::Record nameRecord[R]; member
26 SkOTTableName::Record nameRecord[R]; member
/third_party/skia/tests/
DFontNamesTest.cpp20 SkOTTableName::Record nameRecord[R]; member
26 SkOTTableName::Record nameRecord[R]; member