Home
last modified time | relevance | path

Searched refs:measureText (Results 1 – 25 of 134) sorted by relevance

123456

/external/skia/gm/
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()
Dtextblobrandomfont.cpp67 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
78 font.measureText(bigtext1, strlen(bigtext1), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
83 font.measureText(bigtext2, strlen(bigtext2), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
92 font.measureText(emojiText, strlen(emojiText), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
Dtextblobcolortrans.cpp45 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
53 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
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()
Dbitmapcopy.cpp114 SkScalar textWidth = font.measureText(name, strlen(name), SkTextEncoding::kUTF8); in onDraw()
127 SkScalar textWidth = font.measureText(name, strlen(name), SkTextEncoding::kUTF8); in onDraw()
/external/skqp/gm/
Dtextblobmixedsizes.cpp44 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
51 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
58 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
65 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
72 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
Dtextblobrandomfont.cpp53 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
64 font.measureText(bigtext1, strlen(bigtext1), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
69 font.measureText(bigtext2, strlen(bigtext2), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
78 font.measureText(emojiText, strlen(emojiText), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
Dtextblobcolortrans.cpp37 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
45 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
Dmixedtextblobs.cpp56 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
74 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
85 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
Dbitmapcopy.cpp99 SkScalar textWidth = font.measureText(name, strlen(name), kUTF8_SkTextEncoding); in onDraw()
112 SkScalar textWidth = font.measureText(name, strlen(name), kUTF8_SkTextEncoding); in onDraw()
Dtextblobtransforms.cpp34 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
43 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
/external/skia/docs/examples/
DPaint_measureText_2.cpp9 SkDebugf("default width = %g\n", paint.measureText("!", 1));
11 SkDebugf("double width = %g\n", paint.measureText("!", 1));
DCanvas_drawAnnotation_2.cpp12 (void)paint.measureText(text, strlen(text), &bounds);
DCanvas_129.cpp12 (void)paint.measureText(text, strlen(text), &bounds);
DPaint_measureText.cpp15 paint.measureText(str, count, &bounds);
DPaint_setLinearText.cpp16 width.appendScalar(paint.measureText(testStr, SK_ARRAY_COUNT(testStr), nullptr));
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPaintTest.java68 assertThat(paint.measureText("Hello")).isEqualTo(5.0f); in measureTextActuallyMeasuresLength()
69 assertThat(paint.measureText("Hello", 1, 3)).isEqualTo(2.0f); in measureTextActuallyMeasuresLength()
70 assertThat(paint.measureText(new StringBuilder("Hello"), 1, 4)).isEqualTo(3.0f); in measureTextActuallyMeasuresLength()
DShadowTextPaintTest.java16 assertThat(paint.measureText("1234")).isEqualTo(4f); in measureText_returnsStringLengthAsMeasurement()
/external/perfetto/ui/src/frontend/
Dflamegraph.ts142 this.labelCharWidth = ctx.measureText('_').width;
272 const nameTextSize = ctx.measureText(nameText);
280 splitIfTooBig(mappingText, width, ctx.measureText(mappingText).width);
293 totalSizeText, width, ctx.measureText(totalSizeText).width);
308 selfSizeText, width, ctx.measureText(selfSizeText).width);
314 const heightSample = ctx.measureText(
Dtrack.ts104 const textWidth = ctx.measureText(text).width;
109 const text2Width = ctx.measureText(text2).width;
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPaint.java273 protected float measureText(String text) { in measureText() method in ShadowPaint
278 protected float measureText(CharSequence text, int start, int end) { in measureText() method in ShadowPaint
283 protected float measureText(String text, int start, int end) { in measureText() method in ShadowPaint
288 protected float measureText(char[] text, int index, int count) { in measureText() method in ShadowPaint
/external/skia/include/core/
DSkFont.h334 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
336 return this->measureText(text, byteLength, encoding, bounds, nullptr);
350 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
/external/skqp/include/core/
DSkFont.h332 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
334 return this->measureText(text, byteLength, encoding, bounds, nullptr);
350 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
/external/skia/tools/sk_app/
DCommandSet.cpp129 font.measureText(cmd.fKeyName.c_str(), cmd.fKeyName.size(), in drawHelp()
132 keyWidth += font.measureText(" ", 1, SkTextEncoding::kUTF8); in drawHelp()
/external/skqp/tools/sk_app/
DCommandSet.cpp130 font.measureText(cmd.fKeyName.c_str(), cmd.fKeyName.size(), in drawHelp()
133 keyWidth += font.measureText(" ", 1, kUTF8_SkTextEncoding); in drawHelp()

123456