/third_party/skia/src/gpu/text/ |
D | GrSDFTControl.cpp | 77 SkScalar scaled_text_size(const SkScalar textSize, const SkMatrix& viewMatrix) { in scaled_text_size() argument 78 SkScalar scaledTextSize = textSize; in scaled_text_size() 100 SkScalar textSize = font.getSize(); in getSDFFont() local 101 SkScalar scaledTextSize = scaled_text_size(textSize, viewMatrix); in getSDFFont() 106 *textRatio = textSize / kSmallDFFontSize; in getSDFFont() 109 *textRatio = textSize / kMediumDFFontSize; in getSDFFont() 113 *textRatio = textSize / kLargeDFFontSize; in getSDFFont() 116 *textRatio = textSize / kExtraLargeDFFontSize; in getSDFFont() 121 *textRatio = textSize / kLargeDFFontSize; 136 SkScalar textSize, const SkMatrix& viewMatrix) const { in computeSDFMinMaxScale() argument [all …]
|
D | GrSDFTControl.h | 34 SkScalar textSize, const SkMatrix& viewMatrix) const;
|
/third_party/skia/docs/examples/ |
D | Paint_isLinearText.cpp | 15 for (SkScalar textSize = 8; textSize < 30; textSize *= 1.22f) { 16 paint.setTextSize(textSize); 17 canvas->translate(0, textSize);
|
D | Paint_setAutohinted.cpp | 15 for (SkScalar textSize = 8; textSize < 30; textSize *= 1.22f) { 16 paint.setTextSize(textSize); 17 canvas->translate(0, textSize);
|
D | Paint_getFontSpacing.cpp | 9 for (SkScalar textSize : { 12, 18, 24, 32 } ) { 10 paint.setTextSize(textSize); 11 SkDebugf("textSize: %g fontSpacing: %g\n", textSize, paint.getFontSpacing());
|
D | Paint_setLinearText.cpp | 11 for (int textSize : { 12, 24 } ) { 12 paint.setTextSize(textSize); 17 canvas->translate(0, textSize + 4);
|
D | text_shadow.cpp | 11 const SkScalar textSize = 48.0f; in draw() local 13 auto blob = SkTextBlob::MakeFromString("Skia", SkFont(nullptr, textSize)); in draw()
|
/third_party/skia/src/core/ |
D | SkTextBlobPriv.h | 66 …RunRecord(uint32_t count, uint32_t textSize, const SkPoint& offset, const SkFont& font, GlyphPosi… in RunRecord() argument 74 if (textSize > 0) { in RunRecord() 76 *this->textSizePtr() = textSize; in RunRecord() 121 uint32_t textSize() const { return isExtended() ? *this->textSizePtr() : 0; } in textSize() function 136 static size_t StorageSize(uint32_t glyphCount, uint32_t textSize, 233 uint32_t textSize() const { in textSize() function 235 return fCurrentRun->textSize(); in textSize()
|
D | SkTextBlob.cpp | 43 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize() argument 56 if (textSize) { // Extended run. in StorageSize() 59 size = safe->add(size, textSize); in StorageSize() 93 SkASSERT(textSize() > 0); in validate() 96 SkASSERT(textBuffer() + textSize() <= (char*)NextUnchecked(this)); in validate() 106 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked() 443 if (run->textSize() != 0) { in mergeRun() 493 int count, int textSize, SkPoint offset, in allocInternal() argument 495 if (count <= 0 || textSize < 0) { in allocInternal() 500 if (textSize != 0 || !this->mergeRun(font, positioning, count, offset)) { in allocInternal() [all …]
|
D | SkTypeface.cpp | 471 const SkScalar textSize = 2048; in onComputeBounds() local 472 const SkScalar invTextSize = 1 / textSize; in onComputeBounds() 476 font.setSize(textSize); in onComputeBounds()
|
/third_party/icu/icu4c/source/test/perf/ubrkperf/ |
D | ubrkperfold.cpp | 169 int32_t textSize = 0; variable 294 brkit->setText(UnicodeString(text, textSize)); in doForwardTest() 321 UniCharCount startOffset = 0, breakOffset = 0, numUniChars = textSize; in doForwardTest() 361 int32_t timePerCU = (int)(float(1000) * ((float)loopTime/(float)textSize)); in doForwardTest() 364 printf("number of code units %d average time per code unit %d\n", textSize, timePerCU); in doForwardTest() 367 printf("time=%d\nevents=%d\nsize=%d\n", elapsedTime, noBreaks, textSize); in doForwardTest() 379 brkit->setText(UnicodeString(text, textSize)); in doIsBoundTest() 381 for(j = 0; j < textSize; j++) { in doIsBoundTest() 395 for(j = 0; j < textSize; j++) { in doIsBoundTest() 405 int32_t timePerCU = (int)(float(1000) * ((float)loopTime/(float)textSize)); in doIsBoundTest() [all …]
|
D | ubrkperf.cpp | 96 UniCharCount startOffset = 0, breakOffset = 0, numUniChars = textSize; 136 int32_t timePerCU = (int)(float(1000) * ((float)loopTime/(float)textSize)); 139 printf("number of code units %d average time per code unit %d\n", textSize, timePerCU); 142 printf("time=%d\nevents=%d\nsize=%d\n", elapsedTime, noBreaks, textSize);
|
/third_party/skia/gm/ |
D | imageblur2.cpp | 39 constexpr SkScalar textSize = 12; in DEF_SIMPLE_GM() local 41 SkFont font(ToolUtils::create_portable_typeface(), textSize); in DEF_SIMPLE_GM() 59 SkIntToScalar(y * dy + textSize * i + textSize), in DEF_SIMPLE_GM()
|
D | texteffects.cpp | 31 SkScalar uPos, SkScalar uWidth, SkScalar textSize) { in create_underline() argument 37 if (start > last && last + textSize / 12 < start) { in create_underline() 117 for (SkScalar textSize = 100; textSize > 10; textSize -= 20) { variable 118 SkFont skFont(ToolUtils::create_portable_typeface(fam[font], SkFontStyle()), textSize); 119 const SkScalar uWidth = textSize / 15; 137 SkPath underline = create_underline(intercepts, start, end, uPos, uWidth, textSize); 142 canvas->translate(0, textSize * 1.3f);
|
D | scaledemoji.cpp | 75 for (SkScalar textSize : { 70, 180, 270, 340 }) { in onDraw() 76 font.setSize(textSize); in onDraw() 123 for (SkScalar textSize : { 70, 180, 270, 340 }) { in onDraw() 124 font.setSize(textSize); in onDraw()
|
D | scaledemoji_rendering.cpp | 61 for (SkScalar textSize : { 70, 150 }) { in onDraw() 62 font.setSize(textSize); in onDraw()
|
D | colrv1.cpp | 160 for (SkScalar textSize : { 12, 18, 30, 120 }) { in onDraw() 161 font.setSize(textSize); in onDraw()
|
D | coloremoji.cpp | 103 for (const SkScalar& textSize : textSizes) { in onDraw() local 104 font.setSize(textSize); in onDraw()
|
D | strokefill.cpp | 255 const SkPaint& paint, float textSize) { in path_bold() argument 259 SkScalar fakeBoldScale = SkScalarInterpFunc(textSize, in path_bold() 262 SkScalar extra = textSize * fakeBoldScale; in path_bold()
|
/third_party/skia/samplecode/ |
D | SampleLCD.cpp | 29 SkScalar textSize = SkIntToScalar(6); in onDrawContent() local 39 font.setSize(textSize); in onDrawContent() 40 textSize += delta; in onDrawContent()
|
/third_party/skia/tests/ |
D | DrawTextTest.cpp | 139 SkScalar textSize; in DEF_TEST() member 157 font.setSize(testCase.textSize); in DEF_TEST()
|
/third_party/skia/tools/ |
D | ToolUtils.cpp | 164 create_string_bitmap(int w, int h, SkColor c, int x, int y, int textSize, const char* str) { in create_string_bitmap() argument 172 SkFont font(ToolUtils::create_portable_typeface(), textSize); in create_string_bitmap() 191 sk_sp<SkImage> create_string_image(int w, int h, SkColor c, int x, int y, int textSize, in create_string_image() argument 193 return create_string_bitmap(w, h, c, x, y, textSize, str).asImage(); in create_string_image()
|
D | ToolUtils.h | 111 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y, int textSize, const char* str); 112 sk_sp<SkImage> create_string_image(int w, int h, SkColor c, int x, int y, int textSize, const char*…
|
/third_party/skia/experimental/sktext/src/ |
D | Paint.cpp | 35 size_t textSize = text.size(); in drawText() local 47 DecoratedBlock decoratedBlock(textSize, foreground, background); in drawText()
|
/third_party/skia/third_party/externals/d3d12allocator/tools/D3d12maDumpVis/ |
D | D3d12maDumpVis.py | 228 textSize = draw.textsize(text, font=font) variable 229 … draw.text((iX + IMG_MARGIN - textSize[0] - TEXT_MARGIN, y), text, fill=COLOR_TEXT_H2, font=font)
|