Lines Matching refs:utf8
19 void shape(const char* utf8, size_t utf8Bytes,
25 void shape(const char* utf8, size_t utf8Bytes,
33 void shape(const char* utf8, size_t utf8Bytes,
125 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
146 return this->shape(utf8, utf8Bytes, skfont, skbidi, width, handler); in shape()
149 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
160 return this->shape(utf8, utf8Bytes, font.currentFont(), (bidi.currentLevel() % 2) == 0, in shape()
164 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument
171 int glyphCount = font.countText(utf8, utf8Bytes, SkTextEncoding::kUTF8); in shape()
177 font.textToGlyphs(utf8, utf8Bytes, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in shape()
186 size_t bytesConsumed = linebreak(utf8, utf8 + utf8Bytes, font, width, in shape()
190 size_t numGlyphs = SkUTF::CountUTF8(utf8, bytesVisible); in shape()
194 { font.measureText(utf8, bytesVisible, SkTextEncoding::kUTF8), 0 }, in shape()
210 const char* txtPtr = utf8; in shape()
213 buffer.clusters[i] = SkToU32(txtPtr - utf8 + utf8Offset); in shape()
214 SkUTF::NextUTF8(&txtPtr, utf8 + utf8Bytes); in shape()
220 glyphOffset += SkUTF::CountUTF8(utf8, bytesConsumed); in shape()
222 utf8 += bytesConsumed; in shape()