Lines Matching refs:glyphs
55 SkAutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob() local
56 font.textToGlyphs(text, textLen, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in MakeFancyBlob()
58 font.getWidths(glyphs.get(), glyphCount, widths.get()); in MakeFancyBlob()
70 memcpy(buf.glyphs, glyphs.get(), SkTo<uint32_t>(defaultRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
83 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
95 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
151 static sk_sp<SkTextBlob> make_text(const SkFont& font, const SkGlyphID glyphs[], int count) { in make_text() argument
152 return SkTextBlob::MakeFromText(glyphs, count * sizeof(SkGlyphID), font, in make_text()
156 static sk_sp<SkTextBlob> make_posh(const SkFont& font, const SkGlyphID glyphs[], int count, in make_posh() argument
159 font.getXPos(glyphs, count, xpos.get()); in make_posh()
163 return SkTextBlob::MakeFromPosTextH(glyphs, count * sizeof(SkGlyphID), xpos.get(), 0, font, in make_posh()
167 static sk_sp<SkTextBlob> make_pos(const SkFont& font, const SkGlyphID glyphs[], int count, in make_pos() argument
170 font.getPos(glyphs, count, pos.get()); in make_pos()
174 return SkTextBlob::MakeFromPosText(glyphs, count * sizeof(SkGlyphID), pos.get(), font, in make_pos()
245 SkAutoTArray<SkGlyphID> glyphs(count);
246 font.textToGlyphs(text, length, SkTextEncoding::kUTF8, glyphs.get(), count);
248 auto b0 = make_text(font, glyphs.get(), count);
253 auto b1 = make_posh(font, glyphs.get(), count, spacing);
254 auto b2 = make_pos( font, glyphs.get(), count, spacing);