Home
last modified time | relevance | path

Searched refs:originalDataSize (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/third_party/skia/src/sfnt/
DSkOTUtils.cpp83 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize; in RenameFont() local
84 size_t newDataSize = originalDataSize + nameTablePhysicalSize; in RenameFont()
95 …if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDat… in RenameFont()
116 nameTableEntry->offset = SkEndian_SwapBE32(SkToU32(originalDataSize)); in RenameFont()
119 SkOTTableName* nameTable = reinterpret_cast<SkOTTableName*>(data + originalDataSize); in RenameFont()
125 …cord* nameRecords = reinterpret_cast<SkOTTableName::Record*>(data + originalDataSize + sizeof(SkOT… in RenameFont()
135 …SK_OT_USHORT* nameString = reinterpret_cast<SK_OT_USHORT*>(data + originalDataSize + stringOffset); in RenameFont()
140 unsigned char* logical = data + originalDataSize + nameTableLogicalSize; in RenameFont()
141 unsigned char* physical = data + originalDataSize + nameTablePhysicalSize; in RenameFont()
152 if (headTableOffset + sizeof(SkOTTableHead) < originalDataSize) { in RenameFont()
[all …]
/external/skia/src/sfnt/
DSkOTUtils.cpp83 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize; in RenameFont() local
84 size_t newDataSize = originalDataSize + nameTablePhysicalSize; in RenameFont()
95 …if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDat… in RenameFont()
116 nameTableEntry->offset = SkEndian_SwapBE32(SkToU32(originalDataSize)); in RenameFont()
119 SkOTTableName* nameTable = reinterpret_cast<SkOTTableName*>(data + originalDataSize); in RenameFont()
125 …cord* nameRecords = reinterpret_cast<SkOTTableName::Record*>(data + originalDataSize + sizeof(SkOT… in RenameFont()
135 …SK_OT_USHORT* nameString = reinterpret_cast<SK_OT_USHORT*>(data + originalDataSize + stringOffset); in RenameFont()
140 unsigned char* logical = data + originalDataSize + nameTableLogicalSize; in RenameFont()
141 unsigned char* physical = data + originalDataSize + nameTablePhysicalSize; in RenameFont()
152 if (headTableOffset + sizeof(SkOTTableHead) < originalDataSize) { in RenameFont()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/
DOpenTypeUtilities.cpp149 size_t originalDataSize = fontData->size(); in renameFont() local
167 memcpy(data, fontData->data(), originalDataSize); in renameFont()
172 rewrittenSfnt->tables[t].offset = originalDataSize; in renameFont()
175 nameTable* name = reinterpret_cast<nameTable*>(data + originalDataSize); in renameFont()
195 … reinterpret_cast<BigEndianUShort*>(data + originalDataSize + name->stringOffset)[i] = fontName[i]; in renameFont()