/third_party/skia/bench/ |
D | TypefaceBench.cpp | 214 UtfToGlyph(SkTextEncoding encoding, const char* (*text), int lineCount, const char* name) in UtfToGlyph() 268 case SkTextEncoding::kUTF8: { in convertLine() 274 case SkTextEncoding::kUTF16: { in convertLine() 280 case SkTextEncoding::kUTF32: { in convertLine() 292 SkTextEncoding fEncoding; 301 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF32, ctext, SK_ARRAY_COUNT(ctext), 303 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF16, ctext, SK_ARRAY_COUNT(ctext), 305 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF8, ctext, SK_ARRAY_COUNT(ctext), 309 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF32, atext, SK_ARRAY_COUNT(atext), 311 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF16, atext, SK_ARRAY_COUNT(atext), [all …]
|
/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() 140 pos.get(), font, SkTextEncoding::kGlyphID); 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() [all …]
|
D | typeface.cpp | 57 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, x, y, font, paint); in drawKernText() 63 int glyphCount = font.textToGlyphs(text, len, SkTextEncoding::kUTF8, glyphs, len); in drawKernText() 71 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, x, y, font, paint); in drawKernText() 140 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, x, y, font, paint); in onDraw() 247 canvas->drawSimpleText(&glyph, sizeof(glyph), SkTextEncoding::kGlyphID, 252 &glyph, sizeof(glyph), SkTextEncoding::kGlyphID)) + 5; 297 canvas->drawSimpleText(&glyph, sizeof(glyph), SkTextEncoding::kGlyphID, 301 &glyph, sizeof(glyph), SkTextEncoding::kGlyphID)) + 5; 348 canvas->drawSimpleText(&glyph, sizeof(glyph), SkTextEncoding::kGlyphID, 352 &glyph, sizeof(glyph), SkTextEncoding::kGlyphID)) + 5;
|
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 | 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() 153 SkTextEncoding::kGlyphID); in make_text() 164 SkTextEncoding::kGlyphID); in make_posh() 175 SkTextEncoding::kGlyphID); in make_pos() 244 const int count = font.countText(text, length, SkTextEncoding::kUTF8); 246 font.textToGlyphs(text, length, SkTextEncoding::kUTF8, glyphs.get(), count);
|
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()
|
/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);
|
D | SkFont.h | 299 int textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, 323 int countText(const void* text, size_t byteLength, SkTextEncoding encoding) const { in countText() 336 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding, 352 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
|
/third_party/skia/docs/examples/ |
D | Paint_getTextEncoding.cpp | 10 SkTextEncoding::kUTF8 == paint.getTextEncoding() ? '=' : '!'); 11 paint.setTextEncoding(SkTextEncoding::kGlyphID); 13 SkTextEncoding::kGlyphID == paint.getTextEncoding() ? '=' : '!');
|
D | Text_Encoding.cpp | 14 paint.setTextEncoding(SkTextEncoding::kUTF16); 16 paint.setTextEncoding(SkTextEncoding::kUTF32); 20 paint.setTextEncoding(SkTextEncoding::kGlyphID);
|
D | Paint_setTextEncoding.cpp | 9 paint.setTextEncoding((SkTextEncoding) 4); 10 SkDebugf("4 %c= text encoding\n", (SkTextEncoding) 4 == paint.getTextEncoding() ? '=' : '!');
|
/third_party/skia/tests/ |
D | UnicodeTest.cpp | 35 …int count8 = font.textToGlyphs(text8, len8, SkTextEncoding::kUTF8, glyphs8, SK_ARRAY_COUNT(gl… in DEF_TEST() 36 …int count16 = font.textToGlyphs(text16, len16, SkTextEncoding::kUTF16, glyphs16, SK_ARRAY_COUNT(gl… in DEF_TEST() 37 …int count32 = font.textToGlyphs(text32, len32, SkTextEncoding::kUTF32, glyphs32, SK_ARRAY_COUNT(gl… in DEF_TEST() 60 font.textToGlyphs(uni, sizeof(uni), SkTextEncoding::kUTF32, glyphs, N); in DEF_TEST()
|
/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()
|
/third_party/skia/include/utils/ |
D | SkTextUtils.h | 26 static void Draw(SkCanvas*, const void* text, size_t size, SkTextEncoding, 31 Draw(canvas, text, strlen(text), SkTextEncoding::kUTF8, x, y, font, paint, align); 34 static void GetPath(const void* text, size_t length, SkTextEncoding, SkScalar x, SkScalar y,
|
/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/src/core/ |
D | SkFontPriv.h | 74 static int CountTextElements(const void* text, size_t byteLength, SkTextEncoding); 86 SkAutoToGlyphs(const SkFont& font, const void* text, size_t length, SkTextEncoding encoding) { in SkAutoToGlyphs() 87 if (encoding == SkTextEncoding::kGlyphID || length == 0) { in SkAutoToGlyphs()
|
D | SkFont.cpp | 153 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, in textToGlyphs() 159 SkScalar SkFont::measureText(const void* text, size_t length, SkTextEncoding encoding, in measureText() 346 int SkFontPriv::CountTextElements(const void* text, size_t byteLength, SkTextEncoding encoding) { in CountTextElements() 348 case SkTextEncoding::kUTF8: in CountTextElements() 350 case SkTextEncoding::kUTF16: in CountTextElements() 352 case SkTextEncoding::kUTF32: in CountTextElements() 354 case SkTextEncoding::kGlyphID: in CountTextElements()
|