/third_party/icu/icu4c/source/test/letest/ |
D | cletest.c | 49 le_int32 glyphCount = 0; in ParamTest() local 59 glyphCount = le_getGlyphCount(engine, &status); in ParamTest() 60 if (glyphCount != 0) { in ParamTest() 61 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount); in ParamTest() 64 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest() 65 indices = NEW_ARRAY(le_int32, glyphCount + 10); in ParamTest() 66 positions = NEW_ARRAY(float, glyphCount + 10); in ParamTest() 128 glyphCount = le_layoutChars(engine, NULL, 0, 0, 0, FALSE, 0.0, 0.0, &status); in ParamTest() 135 glyphCount = le_layoutChars(engine, chars, -1, 6, 20, TRUE, 0.0, 0.0, &status); in ParamTest() 142 glyphCount = le_layoutChars(engine, chars, 8, -1, 20, TRUE, 0.0, 0.0, &status); in ParamTest() [all …]
|
D | letest.cpp | 64 le_int32 glyphCount = 0; in ParamTest() local 66 glyphCount = engine->getGlyphCount(); in ParamTest() 67 if (glyphCount != 0) { in ParamTest() 68 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount); in ParamTest() 71 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest() 72 indices = NEW_ARRAY(le_int32, glyphCount + 10); in ParamTest() 73 positions = NEW_ARRAY(float, glyphCount + 10); in ParamTest() 149 glyphCount = engine->layoutChars(NULL, 0, 0, 0, FALSE, 0.0, 0.0, status); in ParamTest() 162 glyphCount = engine->layoutChars(chars, -1, 6, 20, TRUE, 0.0, 0.0, status); in ParamTest() 169 glyphCount = engine->layoutChars(chars, 8, -1, 20, TRUE, 0.0, 0.0, status); in ParamTest() [all …]
|
D | xmlreader.cpp | 183 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; in readTestFile() local 228 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount); in readTestFile() 232 expected.glyphCount = glyphCount; in readTestFile() 234 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile() 236 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
|
D | gendata.cpp | 206 int32_t glyphCount = 0; in main() local 316 …glyphCount = engine->layoutChars(text.getBuffer(), 0, charCount, charCount, getRTL(text), 0, 0, le… in main() 318 glyphs = NEW_ARRAY(LEGlyphID, glyphCount); in main() 319 indices = NEW_ARRAY(le_int32, glyphCount); in main() 320 positions = NEW_ARRAY(float, glyphCount * 2 + 2); in main() 333 dumpLongs(outputFile, "result-glyphs", (le_int32 *) glyphs, glyphCount); in main() 335 dumpLongs(outputFile, "result-indices", indices, glyphCount); in main() 337 dumpFloats(outputFile, "result-positions", positions, glyphCount * 2 + 2); in main()
|
/third_party/icu/icu4c/source/test/perf/leperf/ |
D | leperf.cpp | 28 le_int32 glyphCount; member in Params 46 le_int32 glyphCount = 0; in iterate() local 48 …glyphCount = engine->layoutChars(chars, 0, params->charLen, params->charLen, TRUE, 0.0, 0.0, statu… in iterate() 49 glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount + 10); in iterate() 50 indices = LE_NEW_ARRAY(le_int32, glyphCount + 10); in iterate() 51 positions = LE_NEW_ARRAY(float, glyphCount + 10); in iterate() 53 params->glyphCount = glyphCount; in iterate() 118 u_printf("leperf: glyphs=%d\n", p.glyphCount); in main()
|
D | xmlreader.cpp | 187 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; in readTestFile() local 232 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount); in readTestFile() 236 expected.glyphCount = glyphCount; in readTestFile() 238 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile() 240 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
|
/third_party/flutter/skia/gm/ |
D | textblobshader.cpp | 53 int glyphCount = fGlyphs.count(); in onOnceBeforeDraw() local 56 run = &builder.allocRun(font, glyphCount, 10, 10, nullptr); in onOnceBeforeDraw() 57 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 59 run = &builder.allocRunPosH(font, glyphCount, 80, nullptr); in onOnceBeforeDraw() 60 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 61 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 65 run = &builder.allocRunPos(font, glyphCount, nullptr); in onOnceBeforeDraw() 66 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 67 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 69 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount); in onOnceBeforeDraw()
|
/third_party/skia/gm/ |
D | textblobshader.cpp | 53 int glyphCount = fGlyphs.count(); in onOnceBeforeDraw() local 56 run = &builder.allocRun(font, glyphCount, 10, 10, nullptr); in onOnceBeforeDraw() 57 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 59 run = &builder.allocRunPosH(font, glyphCount, 80, nullptr); in onOnceBeforeDraw() 60 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 61 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 65 run = &builder.allocRunPos(font, glyphCount, nullptr); in onOnceBeforeDraw() 66 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 67 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 69 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount); in onOnceBeforeDraw()
|
/third_party/skia/experimental/sktext/src/ |
D | LogicalRun.cpp | 18 fGlyphs.push_back_n(info.glyphCount); in LogicalRun() 19 fBounds.push_back_n(info.glyphCount); in LogicalRun() 20 fPositions.push_back_n(info.glyphCount + 1); in LogicalRun() 21 fOffsets.push_back_n(info.glyphCount); in LogicalRun() 22 fClusters.push_back_n(info.glyphCount + 1); in LogicalRun()
|
/third_party/flutter/skia/src/core/ |
D | SkTextBlob.cpp | 39 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize() argument 44 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)), in StorageSize() 45 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar)); in StorageSize() 54 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t))); in StorageSize() 102 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked() 107 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount, in PosCount() argument 110 return safe->mul(glyphCount, ScalarsPerGlyph(positioning)); in PosCount() 264 font.measureText(run.glyphBuffer(), run.glyphCount() * sizeof(uint16_t), in TightRunBounds() 269 SkAutoSTArray<16, SkRect> glyphBounds(run.glyphCount()); in TightRunBounds() 270 font.getBounds(run.glyphBuffer(), run.glyphCount(), glyphBounds.get(), nullptr); in TightRunBounds() [all …]
|
/third_party/skia/src/core/ |
D | SkTextBlob.cpp | 39 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize() argument 44 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)), in StorageSize() 45 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar)); in StorageSize() 54 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t))); in StorageSize() 102 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked() 107 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount, in PosCount() argument 110 return safe->mul(glyphCount, ScalarsPerGlyph(positioning)); in PosCount() 272 font.measureText(run.glyphBuffer(), run.glyphCount() * sizeof(uint16_t), in TightRunBounds() 277 SkAutoSTArray<16, SkRect> glyphBounds(run.glyphCount()); in TightRunBounds() 278 font.getBounds(run.glyphBuffer(), run.glyphCount(), glyphBounds.get(), nullptr); in TightRunBounds() [all …]
|
/third_party/flutter/skia/experimental/editor/ |
D | shape.cpp | 33 size_t glyphCount, 113 int glyphCount = SkTFitsIn<int>(info.glyphCount) ? info.glyphCount : INT_MAX; in runBuffer() local 116 … const auto& runBuffer = SkTextBlobBuilderPriv::AllocRunTextPos(&fBuilder, info.fFont, glyphCount, in runBuffer() 125 fGlyphCount = glyphCount; in runBuffer() 145 info.glyphCount, in commitRunBuffer() 187 size_t glyphCount, in set_character_bounds() argument 194 SkASSERT(glyphCount > 0); in set_character_bounds() 199 std::unique_ptr<float[]> advances(new float[glyphCount]); in set_character_bounds() 200 font.getWidths(glyphs, glyphCount, advances.get()); in set_character_bounds() 204 for (size_t glyphIndex = 0; glyphIndex < glyphCount; ++glyphIndex) { in set_character_bounds() [all …]
|
/third_party/skia/modules/skplaintexteditor/src/ |
D | shape.cpp | 33 size_t glyphCount, 113 int glyphCount = SkTFitsIn<int>(info.glyphCount) ? info.glyphCount : INT_MAX; in runBuffer() local 116 const auto& runBuffer = fBuilder.allocRunTextPos(info.fFont, glyphCount, utf8RangeSize); in runBuffer() 124 fGlyphCount = glyphCount; in runBuffer() 144 info.glyphCount, in commitRunBuffer() 186 size_t glyphCount, in set_character_bounds() argument 193 SkASSERT(glyphCount > 0); in set_character_bounds() 198 std::unique_ptr<float[]> advances(new float[glyphCount]); in set_character_bounds() 199 font.getWidths(glyphs, glyphCount, advances.get()); in set_character_bounds() 203 for (size_t glyphIndex = 0; glyphIndex < glyphCount; ++glyphIndex) { in set_character_bounds() [all …]
|
/third_party/flutter/skia/tests/ |
D | TextBlobTest.cpp | 162 const int glyphCount = font.countText(txt, txtLen, SkTextEncoding::kUTF8); in TestBounds() local 163 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, glyphCount); in TestBounds() 165 font.textToGlyphs(txt, txtLen, SkTextEncoding::kUTF8, buffer.glyphs, glyphCount); in TestBounds() 167 memset(buffer.pos, 0, sizeof(SkScalar) * glyphCount * 2); in TestBounds() 231 unsigned glyphCount = 0; in RunBuilderTest() local 236 glyphCount += in[i].count; in RunBuilderTest() 250 REPORTER_ASSERT(reporter, out[i].count == it.glyphCount()); in RunBuilderTest() 258 for (unsigned k = 0; k < it.glyphCount(); ++k) { in RunBuilderTest() 322 int glyphCount = font.countText(text1, strlen(text1), SkTextEncoding::kUTF8); in DEF_TEST() local 323 SkAutoTMalloc<uint16_t> glyphs(glyphCount); in DEF_TEST() [all …]
|
D | SkRemoteGlyphCacheTest.cpp | 117 sk_sp<SkTextBlob> buildTextBlob(sk_sp<SkTypeface> tf, int glyphCount) { in buildTextBlob() argument 127 const auto& runBuffer = builder.allocRunPosH(font, glyphCount, 0, &bounds); in buildTextBlob() 131 for (int i = 0; i < glyphCount; i++) { in buildTextBlob() 209 int glyphCount = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 210 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 223 auto clientBlob = buildTextBlob(clientTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 246 int glyphCount = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 247 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 270 int glyphCount = 10; in DEF_TEST() local 271 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_TEST() [all …]
|
D | ShaperTest.cpp | 38 fGlyphCount = SkToUInt(info.glyphCount); in runBuffer() 40 fGlyphs.reset(new SkGlyphID[info.glyphCount]); in runBuffer() 41 fPositions.reset(new SkPoint[info.glyphCount]); in runBuffer() 42 fClusters.reset(new uint32_t[info.glyphCount]); in runBuffer() 50 REPORTER_ASSERT(fReporter, fGlyphCount == info.glyphCount, "%s", fResource); in commitRunBuffer()
|
/third_party/skia/tests/ |
D | SkRemoteGlyphCacheTest.cpp | 121 sk_sp<SkTextBlob> buildTextBlob(sk_sp<SkTypeface> tf, int glyphCount) { in buildTextBlob() argument 131 const auto& runBuffer = builder.allocRunPosH(font, glyphCount, 0, &bounds); in buildTextBlob() 135 for (int i = 0; i < glyphCount; i++) { in buildTextBlob() 214 int glyphCount = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 215 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 228 auto clientBlob = buildTextBlob(clientTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 251 int glyphCount = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 252 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 275 int glyphCount = 10; in DEF_TEST() local 276 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_TEST() [all …]
|
D | TextBlobTest.cpp | 161 const int glyphCount = font.countText(txt, txtLen, SkTextEncoding::kUTF8); in TestBounds() local 162 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, glyphCount); in TestBounds() 164 font.textToGlyphs(txt, txtLen, SkTextEncoding::kUTF8, buffer.glyphs, glyphCount); in TestBounds() 166 memset(buffer.pos, 0, sizeof(SkScalar) * glyphCount * 2); in TestBounds() 244 REPORTER_ASSERT(reporter, out[i].count == it.glyphCount()); in RunBuilderTest() 252 for (unsigned k = 0; k < it.glyphCount(); ++k) { in RunBuilderTest() 316 int glyphCount = font.countText(text1, strlen(text1), SkTextEncoding::kUTF8); in DEF_TEST() local 317 SkAutoTMalloc<uint16_t> glyphs(glyphCount); in DEF_TEST() 318 (void)font.textToGlyphs(text1, strlen(text1), SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in DEF_TEST() 320 auto run = textBlobBuilder.allocRunText(font, glyphCount, 0, 0, SkToInt(strlen(text2))); in DEF_TEST() [all …]
|
D | ShaperTest.cpp | 38 fGlyphCount = SkToUInt(info.glyphCount); in runBuffer() 40 fGlyphs = std::make_unique<SkGlyphID[]>(info.glyphCount); in runBuffer() 41 fPositions = std::make_unique<SkPoint[]>(info.glyphCount); in runBuffer() 42 fClusters = std::make_unique<uint32_t[]>(info.glyphCount); in runBuffer() 50 REPORTER_ASSERT(fReporter, fGlyphCount == info.glyphCount, "%s", fResource); in commitRunBuffer()
|
/third_party/skia/src/utils/ |
D | SkCustomTypeface.cpp | 75 int onCountGlyphs() const override { return this->glyphCount(); } in onCountGlyphs() 93 int glyphCount() const { in glyphCount() function in SkUserTypeface 155 for (int gid = 0; gid < this->glyphCount(); ++gid) { in getGlyphToUnicodeMap() 170 glyphs[i] = uni[i] < this->glyphCount() ? SkTo<SkGlyphID>(uni[i]) : 0; in onCharsToGlyphs() 331 wstream.write32(this->glyphCount()); in onOpenStream() 338 wstream.write(fAdvances.data(), this->glyphCount() * sizeof(float)); in onOpenStream() 393 int glyphCount; in Deserialize() local 394 if (!stream->readS32(&glyphCount) || glyphCount < 0 || glyphCount > kMaxGlyphCount) { in Deserialize() 403 std::vector<float> advances(glyphCount); in Deserialize() 404 if (stream->read(advances.data(), glyphCount * sizeof(float)) != glyphCount * sizeof(float)) { in Deserialize() [all …]
|
/third_party/flutter/skia/modules/skshaper/src/ |
D | SkShaper_primitive.cpp | 139 int glyphCount = font.countText(utf8, utf8Bytes, SkTextEncoding::kUTF8); in shape() local 140 if (glyphCount <= 0) { in shape() 144 std::unique_ptr<SkGlyphID[]> glyphs(new SkGlyphID[glyphCount]); in shape() 145 font.textToGlyphs(utf8, utf8Bytes, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in shape() 147 std::unique_ptr<SkScalar[]> advances(new SkScalar[glyphCount]); in shape() 148 font.getWidthsBounds(glyphs.get(), glyphCount, advances.get(), nullptr, nullptr); in shape()
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/ |
D | BasicSubsetTests.java | 48 int glyphCount = 11; in testSubsetGlyphs() local 55 List<Integer> srcLoca = new ArrayList<Integer>(glyphCount + 1); in testSubsetGlyphs() 56 for (int i = 0; i <= glyphCount + 1; i++) { in testSubsetGlyphs() 64 List<Integer> glyphs = new ArrayList<Integer>(glyphCount); in testSubsetGlyphs() 98 List<Integer> dstLoca = new ArrayList<Integer>(glyphCount + 1); in testSubsetGlyphs() 99 for (int i = 0; i <= glyphCount + 1; i++) { in testSubsetGlyphs()
|
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/ |
D | BasicSubsetTests.java | 48 int glyphCount = 11; in testSubsetGlyphs() local 55 List<Integer> srcLoca = new ArrayList<Integer>(glyphCount + 1); in testSubsetGlyphs() 56 for (int i = 0; i <= glyphCount + 1; i++) { in testSubsetGlyphs() 64 List<Integer> glyphs = new ArrayList<Integer>(glyphCount); in testSubsetGlyphs() 98 List<Integer> dstLoca = new ArrayList<Integer>(glyphCount + 1); in testSubsetGlyphs() 99 for (int i = 0; i <= glyphCount + 1; i++) { in testSubsetGlyphs()
|
/third_party/skia/modules/skshaper/src/ |
D | SkShaper_primitive.cpp | 171 int glyphCount = font.countText(utf8, utf8Bytes, SkTextEncoding::kUTF8); in shape() local 172 if (glyphCount <= 0) { in shape() 176 std::unique_ptr<SkGlyphID[]> glyphs(new SkGlyphID[glyphCount]); in shape() 177 font.textToGlyphs(utf8, utf8Bytes, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in shape() 179 std::unique_ptr<SkScalar[]> advances(new SkScalar[glyphCount]); in shape() 180 font.getWidthsBounds(glyphs.get(), glyphCount, advances.get(), nullptr, nullptr); in shape()
|
/third_party/icu/icu4c/source/layoutex/ |
D | ParagraphLayout.cpp | 397 fStyleRunInfo[run].glyphCount = 0; in ParagraphLayout() 420 …fStyleRunInfo[run].glyphCount = fStyleRunInfo[run].engine->layoutChars(fChars, runStart, fStyleRun… in ParagraphLayout() 429 fGlyphCount += fStyleRunInfo[run].glyphCount; in ParagraphLayout() 453 le_int32 glyphCount = fStyleRunInfo[run].glyphCount; in ParagraphLayout() local 456 fStyleRunInfo[run].glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount); in ParagraphLayout() 457 fStyleRunInfo[run].positions = LE_NEW_ARRAY(float, glyphCount * 2 + 2); in ParagraphLayout() 482 for (glyph = 0; glyph < glyphCount; glyph += 1) { in ParagraphLayout() 487 LXUtilities::reverse(&fGlyphWidths[glyphBase], glyphCount); in ParagraphLayout() 488 LXUtilities::reverse(&fGlyphToCharMap[glyphBase], glyphCount); in ParagraphLayout() 1079 le_int32 last = glyphBase + fStyleRunInfo[run].glyphCount - 1; in appendRun() [all …]
|