Lines Matching refs:utf8
20 void shape(const char* utf8, size_t utf8Bytes,
26 void shape(const char* utf8, size_t utf8Bytes,
117 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
128 return this->shape(utf8, utf8Bytes, font.currentFont(), (bidi.currentLevel() % 2) == 0, in shape()
132 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
139 int glyphCount = font.countText(utf8, utf8Bytes, SkTextEncoding::kUTF8); in shape()
145 font.textToGlyphs(utf8, utf8Bytes, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in shape()
154 size_t bytesConsumed = linebreak(utf8, utf8 + utf8Bytes, font, width, in shape()
158 size_t numGlyphs = SkUTF::CountUTF8(utf8, bytesVisible); in shape()
162 { font.measureText(utf8, bytesVisible, SkTextEncoding::kUTF8), 0 }, in shape()
178 const char* txtPtr = utf8; in shape()
181 buffer.clusters[i] = SkToU32(txtPtr - utf8 + utf8Offset); in shape()
182 SkUTF::NextUTF8(&txtPtr, utf8 + utf8Bytes); in shape()
188 glyphOffset += SkUTF::CountUTF8(utf8, bytesConsumed); in shape()
190 utf8 += bytesConsumed; in shape()