Home
last modified time | relevance | path

Searched refs:measureText (Results 1 - 25 of 58) sorted by relevance

123

/third_party/skia/gm/
H A Dtextblobmixedsizes.cpp56 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
63 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
70 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
77 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
84 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
H A Dtextblobrandomfont.cpp65 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
76 font.measureText(bigtext1, strlen(bigtext1), SkTextEncoding::kUTF8, &bounds);
81 font.measureText(bigtext2, strlen(bigtext2), SkTextEncoding::kUTF8, &bounds);
90 font.measureText(emojiText, strlen(emojiText), SkTextEncoding::kUTF8, &bounds);
H A Dmixedtextblobs.cpp64 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
82 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
94 font.measureText(fEmojiText, strlen(fEmojiText), SkTextEncoding::kUTF8, &bounds);
H A Dtextblobcolortrans.cpp45 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
53 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
H A Dbitmapcopy.cpp115 SkScalar textWidth = font.measureText(name, strlen(name), SkTextEncoding::kUTF8);
128 SkScalar textWidth = font.measureText(name, strlen(name), SkTextEncoding::kUTF8);
H A Dconstcolorprocessor.cpp165 labelFont.measureText(inputLabel.c_str(), inputLabel.size(),
173 labelFont.measureText(procLabel.c_str(), procLabel.size(),
H A Dtextblobtransforms.cpp41 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
50 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
H A Dbigtext.cpp46 (void)font.measureText("/", 1, SkTextEncoding::kUTF8, &r);
H A Dannotated_text.cpp27 (void)font.measureText(text, byteLength, SkTextEncoding::kUTF8, &bounds); in draw_url_annotated_text_with_box()
H A Dtypeface.cpp251 SkScalar dx = SkScalarCeilToScalar(font.measureText( in draw_typeface_rendering_gm()
300 SkScalar dx = SkScalarCeilToScalar(font.measureText( in draw_typeface_rendering_gm()
351 SkScalar dx = SkScalarCeilToScalar(font.measureText( in draw_typeface_rendering_gm()
/third_party/skia/docs/examples/
H A DPaint_measureText_2.cpp9 SkDebugf("default width = %g\n", paint.measureText("!", 1)); in REG_FIDDLE()
11 SkDebugf("double width = %g\n", paint.measureText("!", 1)); in REG_FIDDLE()
H A DPaint_setLinearText.cpp16 width.appendScalar(paint.measureText(testStr, SK_ARRAY_COUNT(testStr), nullptr)); in REG_FIDDLE()
H A DCanvas_drawAnnotation_2.cpp12 (void)paint.measureText(text, strlen(text), &bounds); in REG_FIDDLE()
H A DCanvas_129.cpp12 (void)paint.measureText(text, strlen(text), &bounds); in REG_FIDDLE()
H A DPaint_measureText.cpp15 paint.measureText(str, count, &bounds); in REG_FIDDLE()
H A Dmeasure_text_bounds.cpp17 (void)font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in REG_FIDDLE()
H A DCanvas_drawTextBlob.cpp25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr); in REG_FIDDLE()
H A DTextBlob_uniqueID.cpp28 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr); in REG_FIDDLE()
H A DTextBlob_bounds.cpp25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr); in REG_FIDDLE()
/third_party/skia/include/core/
H A DSkFont.h336 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding, in measureText() function in SkFont
338 return this->measureText(text, byteLength, encoding, bounds, nullptr); in measureText()
352 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
/third_party/skia/tools/sk_app/
H A 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/
H A DSampleComplexClip.cpp79 } gOps[] = { //extra spaces in names for measureText
121 txtX += font.measureText(aTxt, strlen(aTxt), SkTextEncoding::kUTF8);
125 txtX += font.measureText(gOps[op].fName, strlen(gOps[op].fName), SkTextEncoding::kUTF8);
H A DSampleGlyphTransform.cpp52 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
/third_party/skia/modules/skparagraph/include/
H A DParagraph.h218 virtual SkFontMetrics measureText() = 0;
220 virtual RSFontMetrics measureText() = 0;
/third_party/skia/src/utils/
H A DSkTextUtils.cpp17 SkScalar width = font.measureText(text, size, encoding); in Draw()

Completed in 9 milliseconds

123