Home
last modified time | relevance | path

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

123

/third_party/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.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()
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()
Dtextblobcolortrans.cpp45 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
53 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
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()
Dtextblobtransforms.cpp41 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
50 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
Dconstcolorprocessor.cpp165 labelFont.measureText(inputLabel.c_str(), inputLabel.size(), in onDraw()
173 labelFont.measureText(procLabel.c_str(), procLabel.size(), in onDraw()
Dtypeface.cpp251 SkScalar dx = SkScalarCeilToScalar(font.measureText(
300 SkScalar dx = SkScalarCeilToScalar(font.measureText(
351 SkScalar dx = SkScalarCeilToScalar(font.measureText(
Dbigtext.cpp46 (void)font.measureText("/", 1, SkTextEncoding::kUTF8, &r); in onDraw()
Dannotated_text.cpp27 (void)font.measureText(text, byteLength, SkTextEncoding::kUTF8, &bounds); in draw_url_annotated_text_with_box()
/third_party/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_129.cpp12 (void)paint.measureText(text, strlen(text), &bounds);
DCanvas_drawAnnotation_2.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));
Dmeasure_text_bounds.cpp17 (void)font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in draw()
DCanvas_drawTextBlob.cpp25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr);
DTextBlob_bounds.cpp25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr);
DTextBlob_uniqueID.cpp28 … textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr);
/third_party/node/deps/v8/tools/turbolizer/src/
Dnode.ts8 import { alignUp, measureText } from "./util";
46 this.labelbbox = measureText(this.displayLabel);
47 const typebbox = measureText(this.getDisplayType());
/third_party/skia/include/core/
DSkFont.h336 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
338 return this->measureText(text, byteLength, encoding, bounds, nullptr);
352 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
/third_party/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()
/third_party/skia/samplecode/
DSampleComplexClip.cpp121 txtX += font.measureText(aTxt, strlen(aTxt), SkTextEncoding::kUTF8); in onDrawContent()
125 … txtX += font.measureText(gOps[op].fName, strlen(gOps[op].fName), SkTextEncoding::kUTF8); in onDrawContent()
/third_party/skia/modules/skparagraph/include/
DParagraph.h206 virtual SkFontMetrics measureText() = 0;
208 virtual RSFontMetrics measureText() = 0;
/third_party/skia/tests/
DFontHostTest.cpp254 SkScalar width1 = font.measureText(txt, textLen, SkTextEncoding::kUTF8); in test_advances()
257 SkScalar width2 = font.measureText(txt, textLen, SkTextEncoding::kUTF8, &bounds); in test_advances()

123