53 std::unique_ptr<SkGlyphID[]> glyphBuffer =
54 std::make_unique<SkGlyphID[]>(codePointCount);
55 SkGlyphID* glyphPointer = glyphBuffer.get();
56 int remainingCodePointCount = codePointCount;
57 for (
int typefaceIndex = 0; typefaceIndex < typefaceCount; typefaceIndex++) {
59 codePoints, remainingCodePointCount, glyphPointer);
61 for (
int inputIndex = 0; inputIndex < remainingCodePointCount;
63 if (glyphPointer[inputIndex] == 0) {
64 if (outputIndex != inputIndex) {
65 codePoints[outputIndex] = codePoints[inputIndex];
70 if (outputIndex == 0) {
73 remainingCodePointCount = outputIndex;
76 return remainingCodePointCount;
size_t registerTypeface(sk_sp< SkTypeface > typeface)