/external/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()
|
/external/skia/gm/ |
D | textblobshader.cpp | 41 int glyphCount = fGlyphs.count(); in onOnceBeforeDraw() local 44 run = &builder.allocRun(font, glyphCount, 10, 10, nullptr); in onOnceBeforeDraw() 45 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 47 run = &builder.allocRunPosH(font, glyphCount, 80, nullptr); in onOnceBeforeDraw() 48 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 49 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 53 run = &builder.allocRunPos(font, glyphCount, nullptr); in onOnceBeforeDraw() 54 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 55 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 57 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount); in onOnceBeforeDraw()
|
D | typeface.cpp | 54 int glyphCount = font.textToGlyphs(text, len, kUTF8_SkTextEncoding, glyphs, len); in drawKernText() local 55 if (glyphCount < 1) { in drawKernText() 59 SkAutoSTMalloc<128, int32_t> adjustmentStorage(glyphCount - 1); in drawKernText() 61 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) { in drawKernText() 68 auto rec = builder.allocRunPos(font, glyphCount); in drawKernText() 69 memcpy(rec.glyphs, glyphs, glyphCount * sizeof(SkGlyphID)); in drawKernText() 70 getGlyphPositions(font, glyphs, glyphCount, x, y, rec.points()); in drawKernText() 71 applyKerning(rec.points(), adjustments, glyphCount, font); in drawKernText()
|
D | texteffects.cpp | 45 const int glyphCount = font.countText(text, textLen, kUTF8_SkTextEncoding); in MakeFancyBlob() local 46 SkAutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob() 47 font.textToGlyphs(text, textLen, kUTF8_SkTextEncoding, glyphs.get(), glyphCount); in MakeFancyBlob() 48 SkAutoTArray<SkScalar> widths(glyphCount); in MakeFancyBlob() 49 font.getWidths(glyphs.get(), glyphCount, widths.get()); in MakeFancyBlob() 57 const int defaultRunLen = glyphCount / 3; in MakeFancyBlob() 70 const int horizontalRunLen = glyphCount / 3; in MakeFancyBlob() 84 const int fullRunLen = glyphCount - glyphIndex; in MakeFancyBlob()
|
/external/skqp/gm/ |
D | textblobshader.cpp | 41 int glyphCount = fGlyphs.count(); in onOnceBeforeDraw() local 44 run = &builder.allocRun(font, glyphCount, 10, 10, nullptr); in onOnceBeforeDraw() 45 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 47 run = &builder.allocRunPosH(font, glyphCount, 80, nullptr); in onOnceBeforeDraw() 48 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 49 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 53 run = &builder.allocRunPos(font, glyphCount, nullptr); in onOnceBeforeDraw() 54 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 55 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 57 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount); in onOnceBeforeDraw()
|
D | texteffects.cpp | 45 const int glyphCount = font.countText(text, textLen, kUTF8_SkTextEncoding); in MakeFancyBlob() local 46 SkAutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob() 47 font.textToGlyphs(text, textLen, kUTF8_SkTextEncoding, glyphs.get(), glyphCount); in MakeFancyBlob() 48 SkAutoTArray<SkScalar> widths(glyphCount); in MakeFancyBlob() 49 font.getWidths(glyphs.get(), glyphCount, widths.get()); in MakeFancyBlob() 57 const int defaultRunLen = glyphCount / 3; in MakeFancyBlob() 70 const int horizontalRunLen = glyphCount / 3; in MakeFancyBlob() 84 const int fullRunLen = glyphCount - glyphIndex; in MakeFancyBlob()
|
/external/skqp/src/core/ |
D | SkTextBlob.cpp | 38 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize() argument 43 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)), in StorageSize() 44 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar)); in StorageSize() 53 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t))); in StorageSize() 101 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked() 106 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount, in PosCount() argument 109 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 …]
|
D | SkTypeface_remote.h | 52 int glyphCount, 59 , fGlyphCount{glyphCount} 63 int glyphCount() const {return fGlyphCount;} in glyphCount() function 127 uint16_t glyphs[], int glyphCount) const override { in onCharsToGlyphs() argument 132 return this->glyphCount(); in onCountGlyphs()
|
/external/skia/src/core/ |
D | SkTextBlob.cpp | 38 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize() argument 43 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)), in StorageSize() 44 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar)); in StorageSize() 53 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t))); in StorageSize() 101 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked() 106 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount, in PosCount() argument 109 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 …]
|
D | SkTypeface_remote.h | 52 int glyphCount, 59 , fGlyphCount{glyphCount} 63 int glyphCount() const {return fGlyphCount;} in glyphCount() function 127 uint16_t glyphs[], int glyphCount) const override { in onCharsToGlyphs() argument 132 return this->glyphCount(); in onCountGlyphs()
|
/external/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()
|
/external/skia/bench/ |
D | CmapBench.cpp | 18 int glyphCount); 21 int glyphCount) { in textToGlyphs_proc() argument 23 SkASSERT(glyphCount <= NGLYPHS); in textToGlyphs_proc() 31 size_t len, int glyphCount) { in charsToGlyphs_proc() argument 33 SkASSERT(glyphCount <= NGLYPHS); in charsToGlyphs_proc() 37 face->charsToGlyphs(text, SkTypeface::kUTF8_Encoding, glyphs, glyphCount); in charsToGlyphs_proc() 42 size_t len, int glyphCount) { in charsToGlyphsNull_proc() argument 45 face->charsToGlyphs(text, SkTypeface::kUTF8_Encoding, nullptr, glyphCount); in charsToGlyphsNull_proc()
|
/external/skqp/bench/ |
D | CmapBench.cpp | 18 int glyphCount); 21 int glyphCount) { in textToGlyphs_proc() argument 23 SkASSERT(glyphCount <= NGLYPHS); in textToGlyphs_proc() 31 size_t len, int glyphCount) { in charsToGlyphs_proc() argument 33 SkASSERT(glyphCount <= NGLYPHS); in charsToGlyphs_proc() 37 face->charsToGlyphs(text, SkTypeface::kUTF8_Encoding, glyphs, glyphCount); in charsToGlyphs_proc() 42 size_t len, int glyphCount) { in charsToGlyphsNull_proc() argument 45 face->charsToGlyphs(text, SkTypeface::kUTF8_Encoding, nullptr, glyphCount); in charsToGlyphsNull_proc()
|
/external/skqp/tests/ |
D | TextBlobTest.cpp | 162 const int glyphCount = font.countText(txt, txtLen, kUTF8_SkTextEncoding); in TestBounds() local 163 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, glyphCount); in TestBounds() 165 font.textToGlyphs(txt, txtLen, kUTF8_SkTextEncoding, 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), kUTF8_SkTextEncoding); in DEF_TEST() local 323 SkAutoTMalloc<uint16_t> glyphs(glyphCount); in DEF_TEST() [all …]
|
D | SkRemoteGlyphCacheTest.cpp | 70 sk_sp<SkTextBlob> buildTextBlob(sk_sp<SkTypeface> tf, int glyphCount) { in buildTextBlob() argument 80 const auto& runBuffer = builder.allocRunPosH(font, glyphCount, 0, &bounds); in buildTextBlob() 84 for (int i = 0; i < glyphCount; i++) { in buildTextBlob() 170 int glyphCount = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 171 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 184 auto clientBlob = buildTextBlob(clientTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 207 int glyphCount = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 208 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 231 int glyphCount = 10; in DEF_TEST() local 232 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_TEST() [all …]
|
/external/skia/tests/ |
D | TextBlobTest.cpp | 162 const int glyphCount = font.countText(txt, txtLen, kUTF8_SkTextEncoding); in TestBounds() local 163 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, glyphCount); in TestBounds() 165 font.textToGlyphs(txt, txtLen, kUTF8_SkTextEncoding, 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), kUTF8_SkTextEncoding); in DEF_TEST() local 323 SkAutoTMalloc<uint16_t> glyphs(glyphCount); in DEF_TEST() [all …]
|
D | SkRemoteGlyphCacheTest.cpp | 70 sk_sp<SkTextBlob> buildTextBlob(sk_sp<SkTypeface> tf, int glyphCount) { in buildTextBlob() argument 80 const auto& runBuffer = builder.allocRunPosH(font, glyphCount, 0, &bounds); in buildTextBlob() 84 for (int i = 0; i < glyphCount; i++) { in buildTextBlob() 170 int glyphCount = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 171 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 184 auto clientBlob = buildTextBlob(clientTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 207 int glyphCount = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 208 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 231 int glyphCount = 10; in DEF_TEST() local 232 auto serverBlob = buildTextBlob(serverTf, glyphCount); in DEF_TEST() [all …]
|
/external/skqp/modules/skshaper/src/ |
D | SkShaper_primitive.cpp | 46 int glyphCount = font.countText(utf8text, textBytes, SkTextEncoding::kUTF8); in shape() local 47 if (glyphCount <= 0) { in shape() 62 const auto buffer = handler->newRunBuffer(info, font, glyphCount, textBytes); in shape() 64 glyphCount) == glyphCount); in shape() 65 font.getPos(buffer.glyphs, glyphCount, buffer.positions, point); in shape() 73 for (int i = 0; i < glyphCount; ++i) { in shape()
|
/external/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 …]
|
/external/skia/modules/skshaper/src/ |
D | SkShaper_primitive.cpp | 152 int glyphCount = font.countText(utf8text, textBytes, SkTextEncoding::kUTF8); in shape() local 153 if (glyphCount <= 0) { in shape() 157 std::unique_ptr<SkGlyphID[]> glyphs(new SkGlyphID[glyphCount]); in shape() 158 font.textToGlyphs(utf8text, textBytes, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in shape() 160 std::unique_ptr<SkScalar[]> advances(new SkScalar[glyphCount]); in shape() 161 font.getWidthsBounds(glyphs.get(), glyphCount, advances.get(), nullptr, nullptr); in shape()
|
/external/skqp/src/ports/ |
D | SkTypeface_win_dw.cpp | 81 uint16_t glyphs[], int glyphCount) const in onCharsToGlyphs() 85 for (int i = 0; i < glyphCount; ++i) { in onCharsToGlyphs() 93 return glyphCount; in onCharsToGlyphs() 102 for (int baseGlyph = 0; baseGlyph < glyphCount; baseGlyph += scratchCount) { in onCharsToGlyphs() 103 int glyphsLeft = glyphCount - baseGlyph; in onCharsToGlyphs() 114 fDWriteFontFace->GetGlyphIndices(utf32, glyphCount, glyphs); in onCharsToGlyphs() 121 for (int i = 0; i < glyphCount; ++i) { in onCharsToGlyphs() 126 return glyphCount; in onCharsToGlyphs() 444 unsigned glyphCount = fDWriteFontFace->GetGlyphCount(); in getGlyphToUnicodeMap() local 445 sk_bzero(glyphToUnicode, sizeof(SkUnichar) * glyphCount); in getGlyphToUnicodeMap() [all …]
|