/external/chromium_org/third_party/icu/source/test/letest/ |
D | cletest.c | 45 le_int32 glyphCount = 0; in ParamTest() local 55 glyphCount = le_getGlyphCount(engine, &status); in ParamTest() 56 if (glyphCount != 0) { in ParamTest() 57 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount); in ParamTest() 60 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest() 61 indices = NEW_ARRAY(le_int32, glyphCount + 10); in ParamTest() 62 positions = NEW_ARRAY(float, glyphCount + 10); in ParamTest() 124 glyphCount = le_layoutChars(engine, NULL, 0, 0, 0, FALSE, 0.0, 0.0, &status); in ParamTest() 131 glyphCount = le_layoutChars(engine, chars, -1, 6, 20, TRUE, 0.0, 0.0, &status); in ParamTest() 138 glyphCount = le_layoutChars(engine, chars, 8, -1, 20, TRUE, 0.0, 0.0, &status); in ParamTest() [all …]
|
D | letest.cpp | 62 le_int32 glyphCount = 0; in ParamTest() local 64 glyphCount = engine->getGlyphCount(); in ParamTest() 65 if (glyphCount != 0) { in ParamTest() 66 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount); in ParamTest() 69 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest() 70 indices = NEW_ARRAY(le_int32, glyphCount + 10); in ParamTest() 71 positions = NEW_ARRAY(float, glyphCount + 10); in ParamTest() 147 glyphCount = engine->layoutChars(NULL, 0, 0, 0, FALSE, 0.0, 0.0, status); in ParamTest() 160 glyphCount = engine->layoutChars(chars, -1, 6, 20, TRUE, 0.0, 0.0, status); in ParamTest() 167 glyphCount = engine->layoutChars(chars, 8, -1, 20, TRUE, 0.0, 0.0, status); in ParamTest() [all …]
|
D | xmlreader.cpp | 181 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; in readTestFile() local 226 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount); in readTestFile() 230 expected.glyphCount = glyphCount; in readTestFile() 232 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile() 234 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
|
/external/icu/icu4c/source/test/letest/ |
D | cletest.c | 45 le_int32 glyphCount = 0; in ParamTest() local 55 glyphCount = le_getGlyphCount(engine, &status); in ParamTest() 56 if (glyphCount != 0) { in ParamTest() 57 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount); in ParamTest() 60 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest() 61 indices = NEW_ARRAY(le_int32, glyphCount + 10); in ParamTest() 62 positions = NEW_ARRAY(float, glyphCount + 10); in ParamTest() 124 glyphCount = le_layoutChars(engine, NULL, 0, 0, 0, FALSE, 0.0, 0.0, &status); in ParamTest() 131 glyphCount = le_layoutChars(engine, chars, -1, 6, 20, TRUE, 0.0, 0.0, &status); in ParamTest() 138 glyphCount = le_layoutChars(engine, chars, 8, -1, 20, TRUE, 0.0, 0.0, &status); in ParamTest() [all …]
|
D | letest.cpp | 62 le_int32 glyphCount = 0; in ParamTest() local 64 glyphCount = engine->getGlyphCount(); in ParamTest() 65 if (glyphCount != 0) { in ParamTest() 66 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount); in ParamTest() 69 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest() 70 indices = NEW_ARRAY(le_int32, glyphCount + 10); in ParamTest() 71 positions = NEW_ARRAY(float, glyphCount + 10); in ParamTest() 147 glyphCount = engine->layoutChars(NULL, 0, 0, 0, FALSE, 0.0, 0.0, status); in ParamTest() 160 glyphCount = engine->layoutChars(chars, -1, 6, 20, TRUE, 0.0, 0.0, status); in ParamTest() 167 glyphCount = engine->layoutChars(chars, 8, -1, 20, TRUE, 0.0, 0.0, status); in ParamTest() [all …]
|
D | xmlreader.cpp | 181 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; in readTestFile() local 226 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount); in readTestFile() 230 expected.glyphCount = glyphCount; in readTestFile() 232 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile() 234 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
|
/external/icu/icu4c/source/layout/ |
D | MultipleSubstSubtables.cpp | 42 le_uint16 glyphCount = SWAPW(sequenceTable->glyphCount); in process() local 44 if (glyphCount == 0) { in process() 47 } else if (glyphCount == 1) { in process() 60 for (le_int32 i = 0; i < glyphCount; i += 1) { in process() 69 LEGlyphID *newGlyphs = glyphIterator->insertGlyphs(glyphCount, success); in process() 77 insert = glyphCount - 1; in process() 81 for (le_int32 i = 0; i < glyphCount; i += 1) { in process()
|
D | StateTableProcessor2.cpp | 60 le_int32 glyphCount = glyphStorage.getGlyphCount(); in process() local 66 currGlyph = glyphCount - 1; in process() 78 while ((dir == 1 && currGlyph <= glyphCount) || (dir == -1 && currGlyph >= -1)) { in process() 85 if (currGlyph == glyphCount || currGlyph == -1) { in process() 109 while ((dir == 1 && currGlyph <= glyphCount) || (dir == -1 && currGlyph >= -1)) { in process() 116 if (currGlyph == glyphCount || currGlyph == -1) { in process() 146 while ((dir == 1 && currGlyph <= glyphCount) || (dir == -1 && currGlyph >= -1)) { in process() 153 if (currGlyph == glyphCount || currGlyph == -1) { in process() 156 } else if(currGlyph > glyphCount) { in process() 158 currGlyph = glyphCount; in process() [all …]
|
D | ThaiLayoutEngine.cpp | 71 le_int32 glyphCount; in computeGlyphs() local 90 …glyphCount = ThaiShaping::compose(chars, offset, count, fGlyphSet, fErrorChar, outChars, glyphStor… in computeGlyphs() 91 mapCharsToGlyphs(outChars, 0, glyphCount, FALSE, FALSE, glyphStorage, success); in computeGlyphs() 95 glyphStorage.adoptGlyphCount(glyphCount); in computeGlyphs() 96 return glyphCount; in computeGlyphs()
|
D | ContextualSubstSubtables.cpp | 50 le_bool ContextualSubstitutionBase::matchGlyphIDs(const TTGlyphID *glyphArray, le_uint16 glyphCount, in matchGlyphIDs() argument 57 match = glyphCount -1; in matchGlyphIDs() 61 while (glyphCount > 0) { in matchGlyphIDs() 72 glyphCount -= 1; in matchGlyphIDs() 79 …ol ContextualSubstitutionBase::matchGlyphClasses(const le_uint16 *classArray, le_uint16 glyphCount, in matchGlyphClasses() argument 88 match = glyphCount - 1; in matchGlyphClasses() 92 while (glyphCount > 0) { in matchGlyphClasses() 111 glyphCount -= 1; in matchGlyphClasses() 118 …SubstitutionBase::matchGlyphCoverages(const Offset *coverageTableOffsetArray, le_uint16 glyphCount, in matchGlyphCoverages() argument 125 glyph = glyphCount - 1; in matchGlyphCoverages() [all …]
|
D | ContextualSubstSubtables.h | 34 const TTGlyphID *glyphArray, le_uint16 glyphCount, GlyphIterator *glyphIterator, 38 const le_uint16 *classArray, le_uint16 glyphCount, GlyphIterator *glyphIterator, 42 const Offset *coverageTableOffsetArray, le_uint16 glyphCount, 81 le_uint16 glyphCount; member 110 le_uint16 glyphCount; member 125 le_uint16 glyphCount; member
|
/external/chromium_org/third_party/skia/gm/ |
D | textblobshader.cpp | 38 int glyphCount = fGlyphs.count(); in onOnceBeforeDraw() local 41 run = &builder.allocRun(p, glyphCount, 10, 10, NULL); in onOnceBeforeDraw() 42 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 44 run = &builder.allocRunPosH(p, glyphCount, 80, NULL); in onOnceBeforeDraw() 45 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 46 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 50 run = &builder.allocRunPos(p, glyphCount, NULL); in onOnceBeforeDraw() 51 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t)); in onOnceBeforeDraw() 52 for (int i = 0; i < glyphCount; ++i) { in onOnceBeforeDraw() 54 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount); in onOnceBeforeDraw()
|
D | typeface.cpp | 112 int glyphCount = paint.textToGlyphs(text, len, glyphs); in drawKernText() local 113 if (glyphCount < 1) { in drawKernText() 117 SkAutoSTMalloc<128, int32_t> adjustmentStorage(glyphCount - 1); in drawKernText() 119 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) { in drawKernText() 127 SkAutoSTMalloc<128, SkPoint> posStorage(glyphCount); in drawKernText() 129 getGlyphPositions(glyphPaint, glyphs, glyphCount, x, y, pos); in drawKernText() 131 applyKerning(pos, adjustments, glyphCount, glyphPaint); in drawKernText() 132 canvas->drawPosText(glyphs, glyphCount * sizeof(uint16_t), pos, glyphPaint); in drawKernText()
|
/external/chromium_org/third_party/skia/bench/ |
D | CmapBench.cpp | 24 int glyphCount); 27 int glyphCount) { in containsText_proc() argument 34 int glyphCount) { in textToGlyphs_proc() argument 36 SkASSERT(glyphCount <= NGLYPHS); in textToGlyphs_proc() 44 size_t len, int glyphCount) { in charsToGlyphs_proc() argument 47 SkASSERT(glyphCount <= NGLYPHS); in charsToGlyphs_proc() 51 face->charsToGlyphs(text, encoding, glyphs, glyphCount); in charsToGlyphs_proc() 56 size_t len, int glyphCount) { in charsToGlyphsNull_proc() argument 61 face->charsToGlyphs(text, encoding, NULL, glyphCount); in charsToGlyphsNull_proc()
|
/external/skia/bench/ |
D | CmapBench.cpp | 24 int glyphCount); 27 int glyphCount) { in containsText_proc() argument 34 int glyphCount) { in textToGlyphs_proc() argument 36 SkASSERT(glyphCount <= NGLYPHS); in textToGlyphs_proc() 44 size_t len, int glyphCount) { in charsToGlyphs_proc() argument 47 SkASSERT(glyphCount <= NGLYPHS); in charsToGlyphs_proc() 51 face->charsToGlyphs(text, encoding, glyphs, glyphCount); in charsToGlyphs_proc() 56 size_t len, int glyphCount) { in charsToGlyphsNull_proc() argument 61 face->charsToGlyphs(text, encoding, NULL, glyphCount); in charsToGlyphsNull_proc()
|
/external/icu/icu4c/source/test/perf/leperf/ |
D | leperf.cpp | 22 le_int32 glyphCount; member in Params 40 le_int32 glyphCount = 0; in iterate() local 42 …glyphCount = engine->layoutChars(chars, 0, params->charLen, params->charLen, TRUE, 0.0, 0.0, statu… in iterate() 43 glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount + 10); in iterate() 44 indices = LE_NEW_ARRAY(le_int32, glyphCount + 10); in iterate() 45 positions = LE_NEW_ARRAY(float, glyphCount + 10); in iterate() 47 params->glyphCount = glyphCount; in iterate() 112 u_printf("leperf: glyphs=%d\n", p.glyphCount); in main()
|
D | xmlreader.cpp | 181 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; in readTestFile() local 226 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount); in readTestFile() 230 expected.glyphCount = glyphCount; in readTestFile() 232 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile() 234 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
|
/external/chromium_org/third_party/icu/source/test/perf/leperf/ |
D | leperf.cpp | 22 le_int32 glyphCount; member in Params 40 le_int32 glyphCount = 0; in iterate() local 42 …glyphCount = engine->layoutChars(chars, 0, params->charLen, params->charLen, TRUE, 0.0, 0.0, statu… in iterate() 43 glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount + 10); in iterate() 44 indices = LE_NEW_ARRAY(le_int32, glyphCount + 10); in iterate() 45 positions = LE_NEW_ARRAY(float, glyphCount + 10); in iterate() 47 params->glyphCount = glyphCount; in iterate() 112 u_printf("leperf: glyphs=%d\n", p.glyphCount); in main()
|
D | xmlreader.cpp | 181 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; in readTestFile() local 226 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount); in readTestFile() 230 expected.glyphCount = glyphCount; in readTestFile() 232 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile() 234 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkTextBlob.cpp | 35 uint32_t glyphCount() const { in glyphCount() function in SkTextBlob::RunRecord 62 static size_t StorageSize(int glyphCount, SkTextBlob::GlyphPositioning positioning) { in StorageSize() argument 65 + SkAlign4(glyphCount* sizeof(uint16_t)) in StorageSize() 66 + glyphCount * sizeof(SkScalar) * ScalarsPerGlyph(positioning)); in StorageSize() 76 + StorageSize(run->glyphCount(), run->positioning())); in Next() 152 SkASSERT(it.glyphCount() > 0); in flatten() 154 buffer.write32(it.glyphCount()); in flatten() 161 buffer.writeByteArray(it.glyphs(), it.glyphCount() * sizeof(uint16_t)); in flatten() 163 it.glyphCount() * sizeof(SkScalar) * ScalarsPerGlyph(it.positioning())); in flatten() 182 int glyphCount = reader.read32(); in CreateFromBuffer() local [all …]
|
/external/chromium_org/third_party/skia/src/ports/ |
D | SkTypeface_win_dw.cpp | 75 uint16_t glyphs[], int glyphCount) const in onCharsToGlyphs() 79 for (int i = 0; i < glyphCount; ++i) { in onCharsToGlyphs() 87 return glyphCount; in onCharsToGlyphs() 96 for (int baseGlyph = 0; baseGlyph < glyphCount; baseGlyph += scratchCount) { in onCharsToGlyphs() 97 int glyphsLeft = glyphCount - baseGlyph; in onCharsToGlyphs() 108 fDWriteFontFace->GetGlyphIndices(utf32, glyphCount, glyphs); in onCharsToGlyphs() 115 for (int i = 0; i < glyphCount; ++i) { in onCharsToGlyphs() 120 return glyphCount; in onCharsToGlyphs() 291 const unsigned glyphCount, in populate_glyph_to_unicode() argument 296 SkAutoTMalloc<SkUnichar> glyphToUni(glyphCount); in populate_glyph_to_unicode() [all …]
|
/external/skia/src/ports/ |
D | SkTypeface_win_dw.cpp | 66 uint16_t glyphs[], int glyphCount) const in onCharsToGlyphs() 70 for (int i = 0; i < glyphCount; ++i) { in onCharsToGlyphs() 78 return glyphCount; in onCharsToGlyphs() 87 for (int baseGlyph = 0; baseGlyph < glyphCount; baseGlyph += scratchCount) { in onCharsToGlyphs() 88 int glyphsLeft = glyphCount - baseGlyph; in onCharsToGlyphs() 99 fDWriteFontFace->GetGlyphIndices(utf32, glyphCount, glyphs); in onCharsToGlyphs() 106 for (int i = 0; i < glyphCount; ++i) { in onCharsToGlyphs() 111 return glyphCount; in onCharsToGlyphs() 286 const unsigned glyphCount, in populate_glyph_to_unicode() argument 326 if (glyph[j] < glyphCount && (*glyphToUnicode)[glyph[j]] == 0) { in populate_glyph_to_unicode() [all …]
|
/external/skia/gm/ |
D | typeface.cpp | 112 int glyphCount = paint.textToGlyphs(text, len, glyphs); in drawKernText() local 113 if (glyphCount < 1) { in drawKernText() 117 SkAutoSTMalloc<128, int32_t> adjustmentStorage(glyphCount - 1); in drawKernText() 119 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) { in drawKernText() 127 SkAutoSTMalloc<128, SkPoint> posStorage(glyphCount); in drawKernText() 129 getGlyphPositions(glyphPaint, glyphs, glyphCount, x, y, pos); in drawKernText() 131 applyKerning(pos, adjustments, glyphCount, glyphPaint); in drawKernText() 132 canvas->drawPosText(glyphs, glyphCount * sizeof(uint16_t), pos, glyphPaint); in drawKernText()
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/ |
D | ComplexTextController.cpp | 91 glyphCountSoFar += m_complexTextRuns[i]->glyphCount(); in ComplexTextController() 114 for (unsigned j = 0; j < complexTextRun.glyphCount(); ++j) { in offsetForPosition() 120 …hitGlyphEnd = std::max<CFIndex>(hitGlyphStart, j + 1 < complexTextRun.glyphCount() ? complexTextRu… in offsetForPosition() 160 …while (firstGlyphAfterCluster < complexTextRun.glyphCount() && complexTextRun.indexAt(firstGlyphAf… in offsetForPosition() 175 offsetIntoAdjustedGlyphs += complexTextRun.glyphCount(); in offsetForPosition() 373 leftmostGlyph += m_complexTextRuns[i]->glyphCount(); in indexOfCurrentRun() 402 leftmostGlyph += m_complexTextRuns[m_currentRun++]->glyphCount(); in incrementCurrentRun() 433 size_t glyphCount = complexTextRun.glyphCount(); in advance() local 434 unsigned g = ltr ? m_glyphInCurrentRun : glyphCount - 1 - m_glyphInCurrentRun; in advance() 439 while (m_glyphInCurrentRun < glyphCount) { in advance() [all …]
|
/external/icu/icu4c/source/layoutex/ |
D | ParagraphLayout.cpp | 395 fStyleRunInfo[run].glyphCount = 0; in ParagraphLayout() 418 …fStyleRunInfo[run].glyphCount = fStyleRunInfo[run].engine->layoutChars(fChars, runStart, fStyleRun… in ParagraphLayout() 427 fGlyphCount += fStyleRunInfo[run].glyphCount; in ParagraphLayout() 451 le_int32 glyphCount = fStyleRunInfo[run].glyphCount; in ParagraphLayout() local 454 fStyleRunInfo[run].glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount); in ParagraphLayout() 455 fStyleRunInfo[run].positions = LE_NEW_ARRAY(float, glyphCount * 2 + 2); in ParagraphLayout() 480 for (glyph = 0; glyph < glyphCount; glyph += 1) { in ParagraphLayout() 485 LXUtilities::reverse(&fGlyphWidths[glyphBase], glyphCount); in ParagraphLayout() 486 LXUtilities::reverse(&fGlyphToCharMap[glyphBase], glyphCount); in ParagraphLayout() 1077 le_int32 last = glyphBase + fStyleRunInfo[run].glyphCount - 1; in appendRun() [all …]
|