Home
last modified time | relevance | path

Searched refs:SkTextEncoding (Results 1 – 25 of 125) sorted by relevance

12345

/third_party/skia/bench/
DTypefaceBench.cpp214 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/
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()
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 …]
Dtypeface.cpp57 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;
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()
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()
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);
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()
/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);
DSkFont.h299 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/
DPaint_getTextEncoding.cpp10 SkTextEncoding::kUTF8 == paint.getTextEncoding() ? '=' : '!');
11 paint.setTextEncoding(SkTextEncoding::kGlyphID);
13 SkTextEncoding::kGlyphID == paint.getTextEncoding() ? '=' : '!');
DText_Encoding.cpp14 paint.setTextEncoding(SkTextEncoding::kUTF16);
16 paint.setTextEncoding(SkTextEncoding::kUTF32);
20 paint.setTextEncoding(SkTextEncoding::kGlyphID);
DPaint_setTextEncoding.cpp9 paint.setTextEncoding((SkTextEncoding) 4);
10 SkDebugf("4 %c= text encoding\n", (SkTextEncoding) 4 == paint.getTextEncoding() ? '=' : '!');
/third_party/skia/tests/
DUnicodeTest.cpp35 …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/
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()
/third_party/skia/include/utils/
DSkTextUtils.h26 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/
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/src/core/
DSkFontPriv.h74 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()
DSkFont.cpp153 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()

12345