Lines Matching refs:head
73 size_t head = 0; in buildCmapFormat4Table() local
74 head = writeU16(4, out.data(), head); // format in buildCmapFormat4Table()
75 head = writeU16(finalLength, out.data(), head); // length in buildCmapFormat4Table()
76 head = writeU16(0, out.data(), head); // langauge in buildCmapFormat4Table()
80 head = writeU16(segmentCount * 2, out.data(), head); // segCountX2 in buildCmapFormat4Table()
81 head = writeU16(searchRange, out.data(), head); // searchRange in buildCmapFormat4Table()
82 head = writeU16(__builtin_ctz(searchRange) - 1, out.data(), head); // entrySelector in buildCmapFormat4Table()
83 head = writeU16(segmentCount * 2 - searchRange, out.data(), head); // rangeShift in buildCmapFormat4Table()
85 size_t endCountHead = head; in buildCmapFormat4Table()
86 size_t startCountHead = head + segmentCount * sizeof(uint16_t) + 2 /* padding */; in buildCmapFormat4Table()
122 size_t head = 0; in buildCmapFormat12Table() local
123 head = writeU16(12, out.data(), head); // format in buildCmapFormat12Table()
124 head = writeU16(0, out.data(), head); // reserved in buildCmapFormat12Table()
125 head = writeU32(finalLength, out.data(), head); // length in buildCmapFormat12Table()
126 head = writeU32(0, out.data(), head); // langauge in buildCmapFormat12Table()
127 head = writeU32(numGroups, out.data(), head); // numGroups in buildCmapFormat12Table()
132 head = writeU32(start, out.data(), head); in buildCmapFormat12Table()
133 head = writeU32(end, out.data(), head); in buildCmapFormat12Table()
138 head = writeU32(start, out.data(), head); in buildCmapFormat12Table()
141 LOG_ALWAYS_FATAL_IF(head != finalLength); in buildCmapFormat12Table()
159 size_t head = 0; in getDefaultUVSAsBinary() local
160 head = writeU32(numOfRanges, out.data(), head); in getDefaultUVSAsBinary()
164 head = writeU24(startUnicodeValue, out.data(), head); in getDefaultUVSAsBinary()
165 head = writeU8(endUnicodeValue - startUnicodeValue, out.data(), head); in getDefaultUVSAsBinary()
167 LOG_ALWAYS_FATAL_IF(head != length); in getDefaultUVSAsBinary()
179 size_t head = 0; in getNonDefaultUVSAsBinary() local
180 head = writeU32(nonDefaultUVS.size(), out.data(), head); in getNonDefaultUVSAsBinary()
182 head = writeU24(codePoint, out.data(), head); in getNonDefaultUVSAsBinary()
183 head = writeU16(4 /* fixed glyph id */, out.data(), head); in getNonDefaultUVSAsBinary()
185 LOG_ALWAYS_FATAL_IF(head != length); in getNonDefaultUVSAsBinary()
198 size_t head = 0; in buildCmapFormat14Table() local
199 head = writeU16(14, out.data(), head); // format in buildCmapFormat14Table()
200 head += sizeof(uint32_t); // length will be filled later in buildCmapFormat14Table()
201 head = writeU32(vsRecords.size(), out.data(), head); // numVarSelectorRecords; in buildCmapFormat14Table()
205 head = writeU24(vsCodePoint, out.data(), head); in buildCmapFormat14Table()
209 head = writeU32(0, out.data(), head); in buildCmapFormat14Table()
211 head = writeU32(out.size(), out.data(), head); in buildCmapFormat14Table()
217 head = writeU32(0, out.data(), head); in buildCmapFormat14Table()
219 head = writeU32(out.size(), out.data(), head); in buildCmapFormat14Table()
223 LOG_ALWAYS_FATAL_IF(head != headerLength); in buildCmapFormat14Table()
273 size_t head = writeU16(platformId, out.data(), currentEncodingTableHead); in appendEncodingTable() local
274 head = writeU16(encodingId, out.data(), head); in appendEncodingTable()
275 head = writeU32(offset, out.data(), head); in appendEncodingTable()
276 LOG_ALWAYS_FATAL_IF((head - currentEncodingTableHead) != kEncodingTableSize); in appendEncodingTable()