/third_party/skia/src/gpu/text/ |
H A D | GrSDFTControl.cpp | 81 SkScalar scaled_text_size(const SkScalar textSize, const SkMatrix& viewMatrix) { in scaled_text_size() argument 82 SkScalar scaledTextSize = textSize; in scaled_text_size() 104 SkScalar textSize = font.getSize(); in getSDFFont() local 105 SkScalar scaledTextSize = scaled_text_size(textSize, viewMatrix); in getSDFFont() 110 *textRatio = textSize / kSmallDFFontSize; in getSDFFont() 113 *textRatio = textSize / kMediumDFFontSize; in getSDFFont() 117 *textRatio = textSize / kLargeDFFontSize; in getSDFFont() 120 *textRatio = textSize / kExtraLargeDFFontSize; in getSDFFont() 125 *textRatio = textSize / kLargeDFFontSize; 140 SkScalar textSize, cons in computeSDFMinMaxScale() 139 computeSDFMinMaxScale( SkScalar textSize, const SkMatrix& viewMatrix) const computeSDFMinMaxScale() argument [all...] |
H A D | GrSDFTControl.h | 34 SkScalar textSize, const SkMatrix& viewMatrix) const;
|
/third_party/skia/docs/examples/ |
H A D | Paint_setAutohinted.cpp | 15 for (SkScalar textSize = 8; textSize < 30; textSize *= 1.22f) { in REG_FIDDLE() 16 paint.setTextSize(textSize); in REG_FIDDLE() 17 canvas->translate(0, textSize); in REG_FIDDLE()
|
H A D | Paint_isLinearText.cpp | 15 for (SkScalar textSize = 8; textSize < 30; textSize *= 1.22f) { in REG_FIDDLE() 16 paint.setTextSize(textSize); in REG_FIDDLE() 17 canvas->translate(0, textSize); in REG_FIDDLE()
|
H A D | Paint_getFontSpacing.cpp | 9 for (SkScalar textSize : { 12, 18, 24, 32 } ) { in REG_FIDDLE() 10 paint.setTextSize(textSize); in REG_FIDDLE() 11 SkDebugf("textSize: %g fontSpacing: %g\n", textSize, paint.getFontSpacing()); in REG_FIDDLE()
|
H A D | Paint_setLinearText.cpp | 11 for (int textSize : { 12, 24 } ) { in REG_FIDDLE() 12 paint.setTextSize(textSize); in REG_FIDDLE() 17 canvas->translate(0, textSize + 4); in REG_FIDDLE()
|
H A D | text_shadow.cpp | 11 const SkScalar textSize = 48.0f; in REG_FIDDLE() local 13 auto blob = SkTextBlob::MakeFromString("Skia", SkFont(nullptr, textSize)); in REG_FIDDLE()
|
/third_party/skia/src/core/ |
H A D | SkTextBlobPriv.h | 66 RunRecord(uint32_t count, uint32_t textSize, const SkPoint& offset, const SkFont& font, GlyphPositioning pos) 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 in SkTextBlob::RunRecord 124 // clusters follow the textSize. in clusterBuffer() 136 static size_t StorageSize(uint32_t glyphCount, uint32_t textSize, 233 uint32_t textSize() const { in textSize() function in SkTextBlobRunIterator 235 return fCurrentRun->textSize(); in textSize()
|
H A D | SkTextBlob.cpp | 39 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize() argument 52 if (textSize) { // Extended run. in StorageSize() 55 size = safe->add(size, textSize); in StorageSize() 89 SkASSERT(textSize() > 0); in validate() 92 SkASSERT(textBuffer() + textSize() <= (char*)NextUnchecked(this)); in validate() 102 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked() 114 // textSize follows the position buffer. in textSizePtr() 428 if (run->textSize() != 0) { in mergeRun() 478 int count, int textSize, SkPoint offset, in allocInternal() 480 if (count <= 0 || textSize < in allocInternal() 476 allocInternal(const SkFont& font, SkTextBlob::GlyphPositioning positioning, int count, int textSize, SkPoint offset, const SkRect* bounds) allocInternal() argument 666 uint32_t textSize = it.textSize(); Flatten() local 712 int textSize = pe.extended ? reader.read32() : 0; MakeFromBuffer() local [all...] |
H A D | SkTypeface.cpp | 554 const SkScalar textSize = 2048; in onComputeBounds() local 555 const SkScalar invTextSize = 1 / textSize; in onComputeBounds() 559 font.setSize(textSize); in onComputeBounds()
|
/third_party/icu/icu4c/source/test/perf/ubrkperf/ |
H A 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...] |
H A 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/ |
H A 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() local 59 SkIntToScalar(y * dy + textSize * i + textSize), in DEF_SIMPLE_GM()
|
H A D | texteffects.cpp | 31 SkScalar uPos, SkScalar uWidth, SkScalar textSize) { in create_underline() 37 if (start > last && last + textSize / 12 < start) { in create_underline() 117 for (SkScalar textSize = 100; textSize > 10; textSize -= 20) { in DEF_SIMPLE_GM() 118 SkFont skFont(ToolUtils::create_portable_typeface(fam[font], SkFontStyle()), textSize); in DEF_SIMPLE_GM() local 119 const SkScalar uWidth = textSize / 15; in DEF_SIMPLE_GM() 137 SkPath underline = create_underline(intercepts, start, end, uPos, uWidth, textSize); in DEF_SIMPLE_GM() 142 canvas->translate(0, textSize * 1.3f); in DEF_SIMPLE_GM() 29 create_underline(const SkTDArray<SkScalar>& intersections, SkScalar last, SkScalar finalPos, SkScalar uPos, SkScalar uWidth, SkScalar textSize) create_underline() argument
|
H A D | scaledemoji.cpp | 75 for (SkScalar textSize : { 70, 180, 270, 340 }) { 76 font.setSize(textSize); 123 for (SkScalar textSize : { 70, 180, 270, 340 }) { 124 font.setSize(textSize);
|
H A D | scaledemoji_rendering.cpp | 61 for (SkScalar textSize : { 70, 150 }) { 62 font.setSize(textSize);
|
H A D | colrv1.cpp | 160 for (SkScalar textSize : { 12, 18, 30, 120 }) { 161 font.setSize(textSize);
|
H A D | coloremoji.cpp | 103 for (const SkScalar& textSize : textSizes) { 104 font.setSize(textSize);
|
/third_party/skia/samplecode/ |
H A D | SampleLCD.cpp | 29 SkScalar textSize = SkIntToScalar(6); variable 39 font.setSize(textSize); 40 textSize += delta;
|
/third_party/skia/tests/ |
H A D | DrawTextTest.cpp | 139 SkScalar textSize; in DEF_TEST() member 157 font.setSize(testCase.textSize); in DEF_TEST()
|
/third_party/skia/experimental/sktext/src/ |
H A D | Paint.cpp | 35 size_t textSize = text.size(); in drawText() local 47 DecoratedBlock decoratedBlock(textSize, foreground, background); in drawText()
|
/third_party/skia/tools/ |
H A 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() local 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()
|
H A 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* str);
|
/third_party/skia/third_party/externals/d3d12allocator/tools/D3d12maDumpVis/ |
H A 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)
|
/third_party/skia/experimental/sktext/editor/ |
H A D | Editor.cpp | 26 auto textSize = SkSize::Make(size.width(), size.height() - DEFAULT_STATUS_HEIGHT); in Editor() local 28 text, SkPoint::Make(0, 0), textSize, in Editor()
|