Home
last modified time | relevance | path

Searched refs:kUTF8 (Results 1 – 25 of 99) sorted by relevance

1234

/third_party/skia/gm/
Ddftext.cpp93 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 0, 0, font, paint); in onDraw()
107 … canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, rotX, rotY, font, paint); in onDraw()
123 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 0, 0, font, paint); in onDraw()
134 … int count = font.textToGlyphs(text, textLen, SkTextEncoding::kUTF8, glyphs.get(), textLen); in onDraw()
163 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, x, y, font, paint); in onDraw()
177 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, x, y, font, paint); in onDraw()
187 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 745, 70, font, paint); in onDraw()
194 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 580, 125, font, paint); in onDraw()
208 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 0, 0, font, paint); in onDraw()
222 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 0, 0, font, paint); in onDraw()
[all …]
Dgetpostextpath.cpp48 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, 0, 0, font, paint);
49 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, nullptr);
53 SkAutoToGlyphs atg(font, text, len, SkTextEncoding::kUTF8);
70 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, &pos[0]);
Dtextblobmixedsizes.cpp56 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
63 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
70 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
77 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
84 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
Dbigtext.cpp46 (void)font.measureText("/", 1, SkTextEncoding::kUTF8, &r); in onDraw()
53 canvas->drawSimpleText("/", 1, SkTextEncoding::kUTF8, pos.fX, pos.fY, font, paint); in onDraw()
56 canvas->drawSimpleText("\\", 1, SkTextEncoding::kUTF8, pos.fX, pos.fY, font, paint); in onDraw()
Dskbug_257.cpp48 const int count = font.countText(text, strlen(text), SkTextEncoding::kUTF8); in exercise_draw_pos_text()
51 font.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, rec.glyphs, count); in exercise_draw_pos_text()
60 const int count = font.countText(text, strlen(text), SkTextEncoding::kUTF8); in exercise_draw_pos_text_h()
63 font.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, rec.glyphs, count); in exercise_draw_pos_text_h()
75 canvas->drawSimpleText(text, strlen(text), SkTextEncoding::kUTF8, 32, size / 2 + Y, in test_text()
Dcoloremoji.cpp107 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, in onDraw()
145 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 380, y, in onDraw()
159 font.measureText(text, textLen, SkTextEncoding::kUTF8, &bounds); in onDraw()
185 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 0, 0, font, paint); in onDraw()
188 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 0, 0, font, paint); in onDraw()
Dskbug_5321.cpp29 canvas->drawSimpleText(text, byteLength, SkTextEncoding::kUTF8, x, y, font, SkPaint());
32 int glyph_count = font.countText(text, byteLength, SkTextEncoding::kUTF8);
36 font.textToGlyphs(text, byteLength, SkTextEncoding::kUTF8, rec.glyphs, glyph_count);
Dtextblobrandomfont.cpp65 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
76 font.measureText(bigtext1, strlen(bigtext1), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
81 font.measureText(bigtext2, strlen(bigtext2), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
90 font.measureText(emojiText, strlen(emojiText), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
Dpdf_never_embed.cpp27 const int count = font.countText(text, strlen(text), SkTextEncoding::kUTF8); in excercise_draw_pos_text()
30 font.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, rec.glyphs, count); in excercise_draw_pos_text()
64 canvas->drawSimpleText(text, strlen(text), SkTextEncoding::kUTF8, 30, 700, font, p);
Dlargeglyphblur.cpp41 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, 10, 500, font, blurPaint);
42 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, 10, 500, font, SkPaint());
Dbitmapcopy.cpp115 SkScalar textWidth = font.measureText(name, strlen(name), SkTextEncoding::kUTF8); in onDraw()
128 SkScalar textWidth = font.measureText(name, strlen(name), SkTextEncoding::kUTF8); in onDraw()
131 canvas->drawSimpleText(name, strlen(name), SkTextEncoding::kUTF8, x, y, font, paint); in onDraw()
Dpictureimagegenerator.cpp56 SkTextUtils::GetPath("SKI", 3, SkTextEncoding::kUTF8, 0, 0, font, &path); in draw_vector_logo()
58 SkTextUtils::GetPath("I", 1, SkTextEncoding::kUTF8, 0, 0, font, &path); in draw_vector_logo()
63 SkTextUtils::GetPath(kSkiaStr, textLen, SkTextEncoding::kUTF8, 0, 0, font, &path); in draw_vector_logo()
113 canvas->drawSimpleText(kSkiaStr, textLen, SkTextEncoding::kUTF8, 0, 0, font, paint); in draw_vector_logo()
Dglyph_pos.cpp107 SkScalar advance = font.measureText(kText, sizeof(kText) - 1, SkTextEncoding::kUTF8, in drawTestCase()
126 canvas->drawSimpleText(kText, sizeof(kText) - 1, SkTextEncoding::kUTF8, in drawTestCase()
132 const int count = font.textToGlyphs(kText, len, SkTextEncoding::kUTF8, glyphs, len); in drawTestCase()
Dannotated_text.cpp27 (void)font.measureText(text, byteLength, SkTextEncoding::kUTF8, &bounds); in draw_url_annotated_text_with_box()
34 canvas->drawSimpleText(text, byteLength, SkTextEncoding::kUTF8, x, y, font, SkPaint()); in draw_url_annotated_text_with_box()
Dmixedtextblobs.cpp64 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
82 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
94 font.measureText(fEmojiText, strlen(fEmojiText), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
Dconvexpolyclip.cpp79 canvas->drawSimpleText(kTxt, SK_ARRAY_COUNT(kTxt)-1, SkTextEncoding::kUTF8, in make_img()
84 canvas->drawSimpleText(kTxt, SK_ARRAY_COUNT(kTxt)-1, SkTextEncoding::kUTF8, in make_img()
168 SkScalar textW = font.measureText(kTxt, SK_ARRAY_COUNT(kTxt)-1, SkTextEncoding::kUTF8); in onDraw()
215 canvas->drawSimpleText(kTxt, SK_ARRAY_COUNT(kTxt)-1, SkTextEncoding::kUTF8, in onDraw()
Dtextblobcolortrans.cpp45 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
53 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
Dtexteffects.cpp54 const int glyphCount = font.countText(text, textLen, SkTextEncoding::kUTF8); in MakeFancyBlob()
56 font.textToGlyphs(text, textLen, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in MakeFancyBlob()
244 const int count = font.countText(text, length, SkTextEncoding::kUTF8);
246 font.textToGlyphs(text, length, SkTextEncoding::kUTF8, glyphs.get(), count);
/third_party/skia/samplecode/
DSampleComplexClip.cpp120 …canvas->drawSimpleText(aTxt, strlen(aTxt), SkTextEncoding::kUTF8, txtX, SkIntToScalar(220), font, … in onDrawContent()
121 txtX += font.measureText(aTxt, strlen(aTxt), SkTextEncoding::kUTF8); in onDrawContent()
123 … canvas->drawSimpleText(gOps[op].fName, strlen(gOps[op].fName), SkTextEncoding::kUTF8, in onDrawContent()
125 … txtX += font.measureText(gOps[op].fName, strlen(gOps[op].fName), SkTextEncoding::kUTF8); in onDrawContent()
127 canvas->drawSimpleText("B", 1, SkTextEncoding::kUTF8, txtX, 220, font, paint); in onDrawContent()
DSampleLCD.cpp43 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, x0, y, font, paint); in onDrawContent()
45 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, x1, y, font, paint); in onDrawContent()
DSampleGlyphTransform.cpp52 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onDrawContent()
53 …canvas->drawSimpleText(text, strlen(text), SkTextEncoding::kUTF8, -bounds.centerX(), -bounds.cente… in onDrawContent()
/third_party/skia/include/core/
DSkTextBlob.h84 SkTextEncoding encoding = SkTextEncoding::kUTF8);
104 SkTextEncoding encoding = SkTextEncoding::kUTF8) {
125 SkTextEncoding encoding = SkTextEncoding::kUTF8);
140 SkTextEncoding encoding = SkTextEncoding::kUTF8);
144 SkTextEncoding encoding = SkTextEncoding::kUTF8);
/third_party/skia/tools/sk_app/
DCommandSet.cpp130 SkTextEncoding::kUTF8)); in drawHelp()
132 keyWidth += font.measureText(" ", 1, SkTextEncoding::kUTF8); in drawHelp()
146 canvas->drawSimpleText(cmd.fGroup.c_str(), cmd.fGroup.size(), SkTextEncoding::kUTF8, in drawHelp()
152 canvas->drawSimpleText(cmd.fKeyName.c_str(), cmd.fKeyName.size(), SkTextEncoding::kUTF8, in drawHelp()
/third_party/skia/bench/
DTypefaceBench.cpp268 case SkTextEncoding::kUTF8: { in convertLine()
305 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF8, ctext, SK_ARRAY_COUNT(ctext),
313 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF8, atext, SK_ARRAY_COUNT(atext),
/third_party/skia/tests/
DTextBlobTest.cpp161 const int glyphCount = font.countText(txt, txtLen, SkTextEncoding::kUTF8); in TestBounds()
164 font.textToGlyphs(txt, txtLen, SkTextEncoding::kUTF8, buffer.glyphs, glyphCount); in TestBounds()
316 int glyphCount = font.countText(text1, strlen(text1), SkTextEncoding::kUTF8); in DEF_TEST()
318 (void)font.textToGlyphs(text1, strlen(text1), SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in DEF_TEST()
358 int glyphCount = font.countText(text, strlen(text), SkTextEncoding::kUTF8); in add_run()
362 (void)font.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, buffer.glyphs, glyphCount); in add_run()
434 auto blob = SkTextBlob::MakeFromString(text, SkFont(), SkTextEncoding::kUTF8); in DEF_TEST()

1234