Home
last modified time | relevance | path

Searched refs:textSize (Results 1 – 25 of 45) sorted by relevance

12

/third_party/skia/src/gpu/text/
DGrSDFTControl.cpp77 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 …]
DGrSDFTControl.h34 SkScalar textSize, const SkMatrix& viewMatrix) const;
/third_party/skia/docs/examples/
DPaint_isLinearText.cpp15 for (SkScalar textSize = 8; textSize < 30; textSize *= 1.22f) {
16 paint.setTextSize(textSize);
17 canvas->translate(0, textSize);
DPaint_setAutohinted.cpp15 for (SkScalar textSize = 8; textSize < 30; textSize *= 1.22f) {
16 paint.setTextSize(textSize);
17 canvas->translate(0, textSize);
DPaint_getFontSpacing.cpp9 for (SkScalar textSize : { 12, 18, 24, 32 } ) {
10 paint.setTextSize(textSize);
11 SkDebugf("textSize: %g fontSpacing: %g\n", textSize, paint.getFontSpacing());
DPaint_setLinearText.cpp11 for (int textSize : { 12, 24 } ) {
12 paint.setTextSize(textSize);
17 canvas->translate(0, textSize + 4);
Dtext_shadow.cpp11 const SkScalar textSize = 48.0f; in draw() local
13 auto blob = SkTextBlob::MakeFromString("Skia", SkFont(nullptr, textSize)); in draw()
/third_party/skia/src/core/
DSkTextBlobPriv.h66 …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()
DSkTextBlob.cpp43 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 …]
DSkTypeface.cpp471 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/
Dubrkperfold.cpp169 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 …]
Dubrkperf.cpp96 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/
Dimageblur2.cpp39 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()
Dtexteffects.cpp31 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);
Dscaledemoji.cpp75 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()
Dscaledemoji_rendering.cpp61 for (SkScalar textSize : { 70, 150 }) { in onDraw()
62 font.setSize(textSize); in onDraw()
Dcolrv1.cpp160 for (SkScalar textSize : { 12, 18, 30, 120 }) { in onDraw()
161 font.setSize(textSize); in onDraw()
Dcoloremoji.cpp103 for (const SkScalar& textSize : textSizes) { in onDraw() local
104 font.setSize(textSize); in onDraw()
Dstrokefill.cpp255 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/
DSampleLCD.cpp29 SkScalar textSize = SkIntToScalar(6); in onDrawContent() local
39 font.setSize(textSize); in onDrawContent()
40 textSize += delta; in onDrawContent()
/third_party/skia/tests/
DDrawTextTest.cpp139 SkScalar textSize; in DEF_TEST() member
157 font.setSize(testCase.textSize); in DEF_TEST()
/third_party/skia/tools/
DToolUtils.cpp164 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()
DToolUtils.h111 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/
DPaint.cpp35 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/
DD3d12maDumpVis.py228 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)

12