HomeSort by relevance Sort by last modified time
    Searched defs:glyphCount (Results 1 - 25 of 59) sorted by null

1 2 3

  /external/icu/icu4c/source/test/letest/
letest.h 44 le_int32 glyphCount;
cletest.c 49 le_int32 glyphCount = 0;
59 glyphCount = le_getGlyphCount(engine, &status);
60 if (glyphCount != 0) {
61 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount);
64 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10);
65 indices = NEW_ARRAY(le_int32, glyphCount + 10);
66 positions = NEW_ARRAY(float, glyphCount + 10);
128 glyphCount = le_layoutChars(engine, NULL, 0, 0, 0, FALSE, 0.0, 0.0, &status);
135 glyphCount = le_layoutChars(engine, chars, -1, 6, 20, TRUE, 0.0, 0.0, &status);
142 glyphCount = le_layoutChars(engine, chars, 8, -1, 20, TRUE, 0.0, 0.0, &status)
    [all...]
gendata.cpp 206 int32_t glyphCount = 0;
316 glyphCount = engine->layoutChars(text.getBuffer(), 0, charCount, charCount, getRTL(text), 0, 0, leStatus);
318 glyphs = NEW_ARRAY(LEGlyphID, glyphCount);
319 indices = NEW_ARRAY(le_int32, glyphCount);
320 positions = NEW_ARRAY(float, glyphCount * 2 + 2);
333 dumpLongs(outputFile, "result-glyphs", (le_int32 *) glyphs, glyphCount);
335 dumpLongs(outputFile, "result-indices", indices, glyphCount);
337 dumpFloats(outputFile, "result-positions", positions, glyphCount * 2 + 2);
xmlreader.cpp 183 int32_t glyphCount = 0, indexCount = 0, positionCount = 0;
228 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount);
232 expected.glyphCount = glyphCount;
234 if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) {
235 log_err("Test %s: inconsistent input data: charCount = %d, glyphCount = %d, indexCount = %d, positionCount = %d\n",
236 id, charCount, glyphCount, indexCount, positionCount);
  /external/skia/gm/
textblobshader.cpp 41 int glyphCount = fGlyphs.count();
44 run = &builder.allocRun(p, glyphCount, 10, 10, nullptr);
45 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
47 run = &builder.allocRunPosH(p, glyphCount, 80, nullptr);
48 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
49 for (int i = 0; i < glyphCount; ++i) {
53 run = &builder.allocRunPos(p, glyphCount, nullptr);
54 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
55 for (int i = 0; i < glyphCount; ++i) {
57 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount);
    [all...]
textblob.cpp 80 int glyphCount = p.textToGlyphs(fText, txtLen, nullptr);
82 fGlyphs.append(glyphCount);
texteffects.cpp 144 const int glyphCount = blobPaint.textToGlyphs(text, textLen, nullptr);
145 SkAutoTArray<SkGlyphID> glyphs(glyphCount);
149 const size_t glyphTextBytes = SkTo<uint32_t>(glyphCount) * sizeof(SkGlyphID);
151 SkAssertResult(widthCount == glyphCount);
153 SkAutoTArray<SkScalar> widths(glyphCount);
162 const int defaultRunLen = glyphCount / 3;
175 const int horizontalRunLen = glyphCount / 3;
189 const int fullRunLen = glyphCount - glyphIndex;
typeface.cpp 53 int glyphCount = paint.textToGlyphs(text, len, glyphs);
54 if (glyphCount < 1) {
58 SkAutoSTMalloc<128, int32_t> adjustmentStorage(glyphCount - 1);
60 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) {
68 SkAutoSTMalloc<128, SkPoint> posStorage(glyphCount);
70 getGlyphPositions(glyphPaint, glyphs, glyphCount, x, y, pos);
72 applyKerning(pos, adjustments, glyphCount, glyphPaint);
73 canvas->drawPosText(glyphs, glyphCount * sizeof(uint16_t), pos, glyphPaint);
  /external/skia/tools/shape/
SkShaper_primitive.cpp 44 int glyphCount = paint.countText(utf8text, textBytes);
45 if (glyphCount <= 0) {
55 builder->allocRunTextPosH(paint, glyphCount, point.y(), textBytes, SkString(), &bounds);
58 for (int i = 0; i < glyphCount; ++i) {
68 for (int i = 0; i < glyphCount; ++i) {
  /external/skqp/gm/
textblobshader.cpp 41 int glyphCount = fGlyphs.count();
44 run = &builder.allocRun(p, glyphCount, 10, 10, nullptr);
45 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
47 run = &builder.allocRunPosH(p, glyphCount, 80, nullptr);
48 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
49 for (int i = 0; i < glyphCount; ++i) {
53 run = &builder.allocRunPos(p, glyphCount, nullptr);
54 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
55 for (int i = 0; i < glyphCount; ++i) {
57 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount);
    [all...]
textblob.cpp 80 int glyphCount = p.textToGlyphs(fText, txtLen, nullptr);
82 fGlyphs.append(glyphCount);
texteffects.cpp 144 const int glyphCount = blobPaint.textToGlyphs(text, textLen, nullptr);
145 SkAutoTArray<SkGlyphID> glyphs(glyphCount);
149 const size_t glyphTextBytes = SkTo<uint32_t>(glyphCount) * sizeof(SkGlyphID);
151 SkAssertResult(widthCount == glyphCount);
153 SkAutoTArray<SkScalar> widths(glyphCount);
162 const int defaultRunLen = glyphCount / 3;
175 const int horizontalRunLen = glyphCount / 3;
189 const int fullRunLen = glyphCount - glyphIndex;
typeface.cpp 53 int glyphCount = paint.textToGlyphs(text, len, glyphs);
54 if (glyphCount < 1) {
58 SkAutoSTMalloc<128, int32_t> adjustmentStorage(glyphCount - 1);
60 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) {
68 SkAutoSTMalloc<128, SkPoint> posStorage(glyphCount);
70 getGlyphPositions(glyphPaint, glyphs, glyphCount, x, y, pos);
72 applyKerning(pos, adjustments, glyphCount, glyphPaint);
73 canvas->drawPosText(glyphs, glyphCount * sizeof(uint16_t), pos, glyphPaint);
  /external/skqp/tools/shape/
SkShaper_primitive.cpp 44 int glyphCount = paint.countText(utf8text, textBytes);
45 if (glyphCount <= 0) {
55 builder->allocRunTextPosH(paint, glyphCount, point.y(), textBytes, SkString(), &bounds);
58 for (int i = 0; i < glyphCount; ++i) {
68 for (int i = 0; i < glyphCount; ++i) {
  /external/icu/icu4c/source/test/perf/leperf/
leperf.cpp 28 le_int32 glyphCount;
46 le_int32 glyphCount = 0;
48 glyphCount = engine->layoutChars(chars, 0, params->charLen, params->charLen, TRUE, 0.0, 0.0, status);
49 glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount + 10);
50 indices = LE_NEW_ARRAY(le_int32, glyphCount + 10);
51 positions = LE_NEW_ARRAY(float, glyphCount + 10);
53 params->glyphCount = glyphCount;
118 u_printf("leperf: glyphs=%d\n", p.glyphCount);
xmlreader.cpp 187 int32_t glyphCount = 0, indexCount = 0, positionCount = 0;
232 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount);
236 expected.glyphCount = glyphCount;
238 if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) {
239 log_err("Test %s: inconsistent input data: charCount = %d, glyphCount = %d, indexCount = %d, positionCount = %d\n",
240 id, charCount, glyphCount, indexCount, positionCount);
  /external/skia/src/gpu/text/
GrTextBlobCache.h 38 sk_sp<GrAtlasTextBlob> makeBlob(int glyphCount, int runCount) {
39 return GrAtlasTextBlob::Make(fPool, glyphCount, runCount);
43 int glyphCount = 0;
45 BlobGlyphCount(&glyphCount, &runCount, blob);
46 return GrAtlasTextBlob::Make(fPool, glyphCount, runCount);
89 static void BlobGlyphCount(int* glyphCount, int* runCount, const SkTextBlob* blob) {
92 *glyphCount += itCounter.glyphCount();
GrAtlasTextBlob.cpp 21 sk_sp<GrAtlasTextBlob> GrAtlasTextBlob::Make(GrMemoryPool* pool, int glyphCount, int runCount) {
24 size_t verticesCount = glyphCount * kVerticesPerGlyph * kMaxVASize;
27 glyphCount * sizeof(GrGlyph**) +
46 cacheBlob->fRuns = reinterpret_cast<GrAtlasTextBlob::Run*>(cacheBlob->fGlyphs + glyphCount);
250 const Run::SubRunInfo& info, int glyphCount, uint16_t run, uint16_t subRun,
263 std::move(grPaint), glyphCount, restrictedAtlasManager, distanceAdjustTable,
268 glyphCount, restrictedAtlasManager);
347 int glyphCount = info.glyphCount();
348 if (0 == glyphCount) {
    [all...]
  /external/skia/tools/fonts/
SkTestScalerContext.cpp 124 int glyphCount = this->onCountGlyphs();
127 toUnicode.setCount(glyphCount);
128 SkASSERT(glyphCount == SkToInt(fTestFont->fCharCodesCount));
129 for (int gid = 0; gid < glyphCount; ++gid) {
142 uint16_t glyphs[], int glyphCount) const {
147 for (int i = 0; i < glyphCount; i++) {
158 return glyphCount;
  /external/skqp/src/gpu/text/
GrTextBlobCache.h 38 sk_sp<GrAtlasTextBlob> makeBlob(int glyphCount, int runCount) {
39 return GrAtlasTextBlob::Make(&fPool, glyphCount, runCount);
43 int glyphCount = 0;
45 BlobGlyphCount(&glyphCount, &runCount, blob);
46 return GrAtlasTextBlob::Make(&fPool, glyphCount, runCount);
89 static void BlobGlyphCount(int* glyphCount, int* runCount, const SkTextBlob* blob) {
92 *glyphCount += itCounter.glyphCount();
  /external/skqp/tools/
SkTestScalerContext.cpp 124 int glyphCount = this->onCountGlyphs();
127 toUnicode.setCount(glyphCount);
128 SkASSERT(glyphCount == SkToInt(fTestFont->fCharCodesCount));
129 for (int gid = 0; gid < glyphCount; ++gid) {
142 uint16_t glyphs[], int glyphCount) const {
147 for (int i = 0; i < glyphCount; i++) {
158 return glyphCount;
  /frameworks/base/libs/hwui/
TextDropShadowCache.h 38 : glyphCount(0)
49 ShadowText(const SkPaint* paint, float radius, uint32_t glyphCount, const glyph_t* srcGlyphs,
51 : glyphCount(glyphCount)
72 str.setTo(reinterpret_cast<const char16_t*>(glyphs), glyphCount);
76 positionsCopy.appendArray(positions, glyphCount * 2);
81 uint32_t glyphCount;
  /frameworks/base/libs/hwui/hwui/
Canvas.cpp 121 size_t glyphCount = end - start;
133 canvas->drawGlyphs(glyphFunc, glyphCount, outlinePaint, x, y, bounds.mLeft, bounds.mTop,
140 canvas->drawGlyphs(glyphFunc, glyphCount, innerPaint, x, y, bounds.mLeft, bounds.mTop,
144 canvas->drawGlyphs(glyphFunc, glyphCount, paint, x, y, bounds.mLeft, bounds.mTop,
  /external/icu/icu4c/source/samples/layout/
paragraph.cpp 250 le_int32 glyphCount = visualRun->getGlyphCount();
255 surface->drawGlyphs(font, glyphs, glyphCount, positions, x, y, fWidth, fHeight);
  /external/skia/src/ports/
SkTypeface_win_dw.cpp 79 uint16_t glyphs[], int glyphCount) const
83 for (int i = 0; i < glyphCount; ++i) {
91 return glyphCount;
100 for (int baseGlyph = 0; baseGlyph < glyphCount; baseGlyph += scratchCount) {
101 int glyphsLeft = glyphCount - baseGlyph;
112 fDWriteFontFace->GetGlyphIndices(utf32, glyphCount, glyphs);
119 for (int i = 0; i < glyphCount; ++i) {
124 return glyphCount;
298 const unsigned glyphCount,
302 (SkUnichar*)sk_calloc_throw(sizeof(SkUnichar) * glyphCount));
    [all...]

Completed in 641 milliseconds

1 2 3