/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/skia/src/core/ |
D | SkTextBlob.cpp | 43 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize() argument 48 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)), in StorageSize() 49 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar)); in StorageSize() 58 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t))); in StorageSize() 106 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked() 111 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount, in PosCount() argument 114 return safe->mul(glyphCount, ScalarsPerGlyph(positioning)); in PosCount() 287 font.measureText(run.glyphBuffer(), run.glyphCount() * sizeof(uint16_t), in TightRunBounds() 292 SkAutoSTArray<16, SkRect> glyphBounds(run.glyphCount()); in TightRunBounds() 293 font.getBounds(run.glyphBuffer(), run.glyphCount(), glyphBounds.get(), nullptr); in TightRunBounds() [all …]
|
D | SkTextBlobPriv.h | 80 uint32_t glyphCount() const { in glyphCount() function 136 static size_t StorageSize(uint32_t glyphCount, uint32_t textSize, 157 static size_t PosCount(uint32_t glyphCount, 199 uint32_t glyphCount() const { in glyphCount() function 201 return fCurrentRun->glyphCount(); in glyphCount()
|
D | SkTypeface_remote.h | 46 int glyphCount, 54 , fGlyphCount{glyphCount} 59 int glyphCount() const {return fGlyphCount;} in glyphCount() function 125 return this->glyphCount(); in onCountGlyphs()
|
/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()
|
D | texteffects.cpp | 54 const int glyphCount = font.countText(text, textLen, SkTextEncoding::kUTF8); in MakeFancyBlob() local 55 SkAutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob() 56 font.textToGlyphs(text, textLen, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in MakeFancyBlob() 57 SkAutoTArray<SkScalar> widths(glyphCount); in MakeFancyBlob() 58 font.getWidths(glyphs.get(), glyphCount, widths.get()); in MakeFancyBlob() 66 const int defaultRunLen = glyphCount / 3; in MakeFancyBlob() 79 const int horizontalRunLen = glyphCount / 3; in MakeFancyBlob() 93 const int fullRunLen = glyphCount - glyphIndex; in MakeFancyBlob()
|
D | typeface.cpp | 63 int glyphCount = font.textToGlyphs(text, len, SkTextEncoding::kUTF8, glyphs, len); in drawKernText() local 64 if (glyphCount < 1) { in drawKernText() 68 SkAutoSTMalloc<128, int32_t> adjustmentStorage(glyphCount - 1); in drawKernText() 70 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) { in drawKernText() 77 auto rec = builder.allocRunPos(font, glyphCount); in drawKernText() 78 memcpy(rec.glyphs, glyphs, glyphCount * sizeof(SkGlyphID)); in drawKernText() 79 getGlyphPositions(font, glyphs, glyphCount, x, y, rec.points()); in drawKernText() 80 applyKerning(rec.points(), adjustments, glyphCount, font); in drawKernText()
|
/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/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/skia/modules/skshaper/src/ |
D | SkShaper_primitive.cpp | 180 int glyphCount = font.countText(utf8, utf8Bytes, SkTextEncoding::kUTF8); in shape() local 181 if (glyphCount < 0) { in shape() 185 std::unique_ptr<SkGlyphID[]> glyphs(new SkGlyphID[glyphCount]); in shape() 186 font.textToGlyphs(utf8, utf8Bytes, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in shape() 188 std::unique_ptr<SkScalar[]> advances(new SkScalar[glyphCount]); in shape() 189 font.getWidthsBounds(glyphs.get(), glyphCount, advances.get(), nullptr, nullptr); in shape() 208 if (info.glyphCount) { in shape() 212 if (info.glyphCount) { in shape() 215 memcpy(buffer.glyphs, glyphs.get() + glyphOffset, info.glyphCount * sizeof(SkGlyphID)); in shape() 217 for (size_t i = 0; i < info.glyphCount; ++i) { in shape() [all …]
|
/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/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() 276 int glyphCount = 10; in DEF_TEST() local 277 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/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 …]
|
/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/skia/modules/svg/src/ |
D | SkSVGText.cpp | 415 const auto& buf = blobBuilder.allocRunRSXform(run.font, SkToInt(run.glyphCount)); in flushChunk() 416 std::copy(run.glyphs.get(), run.glyphs.get() + run.glyphCount, buf.glyphs); in flushChunk() 417 for (size_t i = 0; i < run.glyphCount; ++i) { in flushChunk() 435 SkASSERT(ri.glyphCount); in runBuffer() 441 std::make_unique<SkGlyphID[] >(ri.glyphCount), in runBuffer() 442 std::make_unique<SkPoint[] >(ri.glyphCount), in runBuffer() 443 std::make_unique<PositionAdjustment[]>(ri.glyphCount), in runBuffer() 444 ri.glyphCount, in runBuffer() 449 fShapeClusterBuffer.resize(std::max(fShapeClusterBuffer.size(), ri.glyphCount)); in runBuffer() 464 for (size_t i = 0; i < ri.glyphCount; ++i) { in commitRunBuffer() [all …]
|
/third_party/skia/modules/skshaper/tests/ |
D | ShaperTest.cpp | 48 fGlyphCount = SkToUInt(info.glyphCount); in runBuffer() 50 fGlyphs = std::make_unique<SkGlyphID[]>(info.glyphCount); in runBuffer() 51 fPositions = std::make_unique<SkPoint[]>(info.glyphCount); in runBuffer() 52 fClusters = std::make_unique<uint32_t[]>(info.glyphCount); in runBuffer() 60 REPORTER_ASSERT(fReporter, fGlyphCount == info.glyphCount, "%s", fResource); in commitRunBuffer() 83 for (auto&& [glyph, cluster] : SkZip(info.glyphCount, fGlyphs.get(), fClusters.get())) { in commitRunBuffer()
|
/third_party/skia/experimental/sktext/include/ |
D | Text.h | 175 … void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) { } in onEndLine() argument 180 size_t glyphCount, // Just the number of glyphs in onGlyphRun() argument 260 size_t glyphCount, in onGlyphRun() argument 265 const auto& blobBuffer = builder.allocRunPos(font, SkToInt(glyphCount)); in onGlyphRun() 266 sk_careful_memcpy(blobBuffer.glyphs, glyphs, glyphCount * sizeof(uint16_t)); in onGlyphRun() 267 sk_careful_memcpy(blobBuffer.points(), positions, glyphCount * sizeof(SkPoint)); in onGlyphRun() 347 …void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) ove… 353 size_t glyphCount,
|
/third_party/skia/bench/ |
D | TypefaceBench.cpp | 233 maxGlyphs = std::max(maxGlyphs, fLines.back()->glyphCount); in onDelayedSetup() 245 fGlyphIds.data(), line->glyphCount); in onDraw() 252 int glyphCount = 0; member 262 result->glyphCount = SkUTF::CountUTF8(cursor, len); in convertLine()
|