Home
last modified time | relevance | path

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

1234

/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 …]
/third_party/flutter/skia/gm/
Ddownsamplebitmap.cpp93 const SkScalar textSize = 72; in make_text() local
96 bm.allocPixels(info.makeWH(int(textSize * 8), int(textSize * 6))); in make_text()
103 font.setSize(textSize); in make_text()
106 canvas.drawString("Hamburgefons", textSize/2, 1.2f*textSize, font, paint); in make_text()
108 canvas.drawString("Hamburgefons", textSize/2, 2.4f*textSize, font, paint); in make_text()
110 canvas.drawString("Hamburgefons", textSize/2, 3.6f*textSize, font, paint); in make_text()
112 canvas.drawString("Hamburgefons", textSize/2, 4.8f*textSize, font, paint); in make_text()
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);
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()
Dscaledemoji.cpp75 for (SkScalar textSize : { 70, 180, 270, 340 }) { in onDraw()
76 font.setSize(textSize); in onDraw()
124 for (SkScalar textSize : { 70, 180, 270, 340 }) { in onDraw()
125 font.setSize(textSize); in onDraw()
/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);
/third_party/flutter/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);
/third_party/flutter/skia/src/gpu/text/
DGrTextContext.cpp132 SkScalar scaled_text_size(const SkScalar textSize, const SkMatrix& viewMatrix) { in scaled_text_size() argument
133 SkScalar scaledTextSize = textSize; in scaled_text_size()
156 SkScalar textSize = font.getSize(); in InitDistanceFieldFont() local
157 SkScalar scaledTextSize = scaled_text_size(textSize, viewMatrix); in InitDistanceFieldFont()
162 *textRatio = textSize / kSmallDFFontSize; in InitDistanceFieldFont()
165 *textRatio = textSize / kMediumDFFontSize; in InitDistanceFieldFont()
168 *textRatio = textSize / kLargeDFFontSize; in InitDistanceFieldFont()
182 SkScalar textSize, in InitDistanceFieldMinMaxScale() argument
186 SkScalar scaledTextSize = scaled_text_size(textSize, viewMatrix); in InitDistanceFieldMinMaxScale()
/third_party/flutter/skia/src/core/
DSkTextBlob.cpp39 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()
416 if (run->textSize() != 0) { in mergeRun()
466 int count, int textSize, SkPoint offset, in allocInternal() argument
468 if (count <= 0 || textSize < 0) { in allocInternal()
473 if (textSize != 0 || !this->mergeRun(font, positioning, count, offset)) { in allocInternal()
[all …]
DSkTextBlobPriv.h85 …RunRecord(uint32_t count, uint32_t textSize, const SkPoint& offset, const SkFont& font, GlyphPosi… in RunRecord() argument
93 if (textSize > 0) { in RunRecord()
95 *this->textSizePtr() = textSize; in RunRecord()
140 uint32_t textSize() const { return isExtended() ? *this->textSizePtr() : 0; } in textSize() function
153 static size_t StorageSize(uint32_t glyphCount, uint32_t textSize,
249 uint32_t textSize() const { in textSize() function
251 return fCurrentRun->textSize(); in textSize()
/third_party/skia/src/core/
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 …]
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()
/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/
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);
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()
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()
/third_party/flutter/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/samplecode/
DSampleLCD.cpp29 SkScalar textSize = SkIntToScalar(6); in onDrawContent() local
39 font.setSize(textSize); in onDrawContent()
40 textSize += delta; in onDrawContent()

1234