/third_party/skia/gm/ |
D | dftext.cpp | 93 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 …]
|
D | getpostextpath.cpp | 48 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]);
|
D | textblobmixedsizes.cpp | 56 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()
|
D | bigtext.cpp | 46 (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()
|
D | skbug_257.cpp | 48 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()
|
D | coloremoji.cpp | 107 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()
|
D | skbug_5321.cpp | 29 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);
|
D | textblobrandomfont.cpp | 65 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()
|
D | pdf_never_embed.cpp | 27 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);
|
D | largeglyphblur.cpp | 41 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, 10, 500, font, blurPaint); 42 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, 10, 500, font, SkPaint());
|
D | bitmapcopy.cpp | 115 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()
|
D | pictureimagegenerator.cpp | 56 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()
|
D | glyph_pos.cpp | 107 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()
|
D | annotated_text.cpp | 27 (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()
|
D | mixedtextblobs.cpp | 64 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()
|
D | convexpolyclip.cpp | 79 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()
|
D | textblobcolortrans.cpp | 45 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw() 53 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
|
D | texteffects.cpp | 54 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/ |
D | SampleComplexClip.cpp | 120 …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()
|
D | SampleLCD.cpp | 43 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()
|
D | SampleGlyphTransform.cpp | 52 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/ |
D | SkTextBlob.h | 84 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/ |
D | CommandSet.cpp | 130 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/ |
D | TypefaceBench.cpp | 268 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/ |
D | TextBlobTest.cpp | 161 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()
|