Searched refs:SkEndian_SwapBE16 (Results 1 – 17 of 17) sorted by relevance
172 int numTables = SkEndian_SwapBE16(sfntHeader->numTables); in updateSBIXData()225 int numGlyphs = SkEndian_SwapBE16(maxpTable->version.tt.numGlyphs); in updateSBIXData()228 int emSize = SkEndian_SwapBE16(headTable->unitsPerEm); in updateSBIXData()236 fPts[0].set((int16_t)SkEndian_SwapBE16(glyphData->xMin) / toEm, in updateSBIXData()237 (int16_t)SkEndian_SwapBE16(glyphData->yMin) / -toEm); in updateSBIXData()238 fPts[1].set((int16_t)SkEndian_SwapBE16(glyphData->xMax) / toEm, in updateSBIXData()239 (int16_t)SkEndian_SwapBE16(glyphData->yMax) / -toEm); in updateSBIXData()241 glyphData->xMin = SkEndian_SwapBE16(sk_float_saturate2int16( fPts[0].x()*toEm)); in updateSBIXData()242 glyphData->yMin = SkEndian_SwapBE16(sk_float_saturate2int16(-fPts[0].y()*toEm)); in updateSBIXData()243 glyphData->xMax = SkEndian_SwapBE16(sk_float_saturate2int16( fPts[1].x()*toEm)); in updateSBIXData()[all …]
27 SkUnichar c = SkEndian_SwapBE16(leading); in next_unichar_UTF16BE()39 SkUnichar c2 = SkEndian_SwapBE16(trailing); in next_unichar_UTF16BE()467 const size_t stringTableOffset = SkEndian_SwapBE16(nameTable.stringOffset); in next()476 const size_t nameRecordsCount = SkEndian_SwapBE16(nameTable.count); in next()490 const size_t nameOffset = SkEndian_SwapBE16(nameRecord.offset); in next()491 const size_t nameLength = SkEndian_SwapBE16(nameRecord.length); in next()534 const uint16_t languageID = SkEndian_SwapBE16(nameRecord.languageID.languageTagID); in next()553 if (languageTagRecordIndex < SkEndian_SwapBE16(format1ext.langTagCount)) { in next()562 uint16_t languageOffset = SkEndian_SwapBE16(languageTagRecord.offset); in next()563 uint16_t languageLength = SkEndian_SwapBE16(languageTagRecord.length); in next()
42 int numTables = SkEndian_SwapBE16(sfntHeader.numTables); in RenameFont()125 nameTable->count = SkEndian_SwapBE16(encodings.size() * names.size()); in RenameFont()126 nameTable->stringOffset = SkEndian_SwapBE16(stringOffset); in RenameFont()135 nameRecord->offset = SkEndian_SwapBE16(0); in RenameFont()136 nameRecord->length = SkEndian_SwapBE16(SkToU16(fontNameLen * sizeof(SK_OT_USHORT))); in RenameFont()143 nameString[i] = SkEndian_SwapBE16(fontName[i]); in RenameFont()
46 SkEndian_SwapBE16(fLoca.offsets.shortOffset[fCurrentGlyph]) << 1; in advance()
72 uint16_t creation_date_year = SkEndian_SwapBE16(2016);73 uint16_t creation_date_month = SkEndian_SwapBE16(1); // 1-1274 uint16_t creation_date_day = SkEndian_SwapBE16(1); // 1-31342 SkEndian_SwapBE16(float_round_to_unorm16(Lab_unorm[i])); in SkICCFloatXYZD50ToGrid16Lab()347 *reinterpret_cast<uint16_t*>(table_16) = SkEndian_SwapBE16(float_round_to_unorm16(f)); in SkICCFloatToTable16()396 s.write32(SkEndian_SwapBE16(kExponential_ParaCurveType)); in write_trc_tag()399 s.write32(SkEndian_SwapBE16(kGABCDEF_ParaCurveType)); in write_trc_tag()
116 #define SkEndian_SwapBE16(n) SkEndianSwap16(n) macro130 #define SkEndian_SwapBE16(n) (n) macro
99 return SkEndian_SwapBE16(header->fSingle.fNumTables); in count_tables()
339 int numTables = SkEndian_SwapBE16(sfntHeader->numTables); in SkCTFontGetDataFontWeightMapping()355 os2Table->usWeightClass.value = SkEndian_SwapBE16(i * 100); in SkCTFontGetDataFontWeightMapping()
59 tableUPEM = SkEndian_SwapBE16(rawUPEM); in test_unitsPerEm()78 tableGlyphs = SkEndian_SwapBE16(rawGlyphs); in test_countGlyphs()
61 int numTables = SkEndian_SwapBE16(sfntHeader->numTables); in TypefaceStyle_test()72 os2Table->usWeightClass.value = SkEndian_SwapBE16(weight); in TypefaceStyle_test()74 os2Table->usWidthClass.value = static_cast<WidthType>(SkEndian_SwapBE16(width)); in TypefaceStyle_test()
748 uint16_t xHeight = SkEndian_SwapBE16(os2v2->sxHeight); in generateFontMetrics()752 uint16_t capHeight = SkEndian_SwapBE16(os2v2->sCapHeight); in generateFontMetrics()761 uint16_t strikeoutSize = SkEndian_SwapBE16(os2v0->yStrikeoutSize); in generateFontMetrics()766 uint16_t strikeoutPos = SkEndian_SwapBE16(os2v0->yStrikeoutPosition); in generateFontMetrics()
680 (1 == SkEndian_SwapBE16(hheaTable->numberOfHMetrics))); in onGetAdvancedMetrics()712 info->fBBox = SkIRect::MakeLTRB((int32_t)SkEndian_SwapBE16((uint16_t)headTable->xMin), in onGetAdvancedMetrics()713 (int32_t)SkEndian_SwapBE16((uint16_t)headTable->yMax), in onGetAdvancedMetrics()714 (int32_t)SkEndian_SwapBE16((uint16_t)headTable->xMax), in onGetAdvancedMetrics()715 (int32_t)SkEndian_SwapBE16((uint16_t)headTable->yMin)); in onGetAdvancedMetrics()
162 range->fVersion = SkEndian_SwapBE16(gasp->version); in get_gasp_range()918 metrics->fTop = -fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->yMax) / upem; in generateFontMetrics()919 metrics->fBottom = -fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->yMin) / upem; in generateFontMetrics()920 metrics->fXMin = fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->xMin) / upem; in generateFontMetrics()921 metrics->fXMax = fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->xMax) / upem; in generateFontMetrics()
755 header->numTables = SkEndian_SwapBE16(numTables); in onOpenStream()756 header->searchRange = SkEndian_SwapBE16(searchRange); in onOpenStream()757 header->entrySelector = SkEndian_SwapBE16(entrySelector); in onOpenStream()758 header->rangeShift = SkEndian_SwapBE16(rangeShift); in onOpenStream()
176 return SkEndian_SwapBE16(glyphs); in calculateGlyphCount()2033 int numTables = SkEndian_SwapBE16(header.numTables); in onGetTableTags()
279 if (!s.write16(SkEndian_SwapBE16(value))) { \
389 int numTables = SkEndian_SwapBE16(sfntHeader->numTables); in subset_typeface()