Home
last modified time | relevance | path

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

123456

/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()
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()
Dtextblobcolortrans.cpp37 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
45 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()
Dconstcolorprocessor.cpp134 labelFont.measureText(inputLabel.c_str(), inputLabel.size(), in onDraw()
142 labelFont.measureText(procLabel.c_str(), procLabel.size(), in onDraw()
/external/skia/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()
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()
Dtextblobcolortrans.cpp37 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
45 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
Dbitmapcopy.cpp100 SkScalar textWidth = font.measureText(name, strlen(name), kUTF8_SkTextEncoding); in onDraw()
113 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()
Dconstcolorprocessor.cpp123 labelFont.measureText(inputLabel.c_str(), inputLabel.size(), in onDraw()
131 labelFont.measureText(procLabel.c_str(), procLabel.size(), in onDraw()
Dtypeface.cpp244 font.measureText(&character, 1, kUTF8_SkTextEncoding)) + 5;
291 SkScalar dx = SkScalarCeilToScalar(font.measureText(&character, 1,
341 SkScalar dx = SkScalarCeilToScalar(font.measureText(&character, 1,
/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()
/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/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/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/perfetto/ui/src/tracks/cpu_slices/
Dfrontend.ts119 const charWidth = ctx.measureText('dbpqaouk').width / 8;
214 const measured = ctx.measureText(displayText);
258 const line1Width = ctx.measureText(line1).width;
259 const line2Width = ctx.measureText(line2).width;
/external/skia/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()
/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()
/external/skqp/samplecode/
DSampleComplexClip.cpp133 txtX += font.measureText(aTxt, strlen(aTxt), kUTF8_SkTextEncoding); in onDrawContent()
137 … txtX += font.measureText(gOps[op].fName, strlen(gOps[op].fName), kUTF8_SkTextEncoding); in onDrawContent()
/external/skia/samplecode/
DSampleComplexClip.cpp133 txtX += font.measureText(aTxt, strlen(aTxt), kUTF8_SkTextEncoding); in onDrawContent()
137 … txtX += font.measureText(gOps[op].fName, strlen(gOps[op].fName), kUTF8_SkTextEncoding); in onDrawContent()
/external/skqp/experimental/canvaskit/
DCHANGELOG.md39 - `SkPaint.measureText` - use `SkFont.measureText` instead.

123456