Searched refs:nameRecord (Results 1 – 8 of 8) sorted by relevance
475 SkOTTableName::Record nameRecord; in next() local477 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 …]
138 …SkOTTableName::Record* nameRecord = reinterpret_cast<SkOTTableName::Record*>(data + originalDataSi… in RenameFont() local141 nameRecord->platformID.value = SkOTTableName::Record::PlatformID::Windows; in RenameFont()142 nameRecord->encodingID.windows.value = encoding; in RenameFont()143 …nameRecord->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()
476 SkOTTableName::Record nameRecord; in next() local478 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 …]
136 …SkOTTableName::Record* nameRecord = reinterpret_cast<SkOTTableName::Record*>(data + originalDataSi… in RenameFont() local139 nameRecord->platformID.value = SkOTTableName::Record::PlatformID::Windows; in RenameFont()140 nameRecord->encodingID.windows.value = encoding; in RenameFont()141 …nameRecord->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()
298 const NameRecord *nameRecord = &fNAMETable->nameRecords[i]; in getNameString() local300 … 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() local333 … 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()
306 const NameRecord *nameRecord = &fNAMETable->nameRecords[i]; in getNameString() local308 … 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() local341 … 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()
20 SkOTTableName::Record nameRecord[R]; member26 SkOTTableName::Record nameRecord[R]; member