Searched defs:glyphCount (Results 1 - 25 of 57) sorted by relevance

123

/external/icu/icu4c/source/test/letest/
H A Dletest.h44 le_int32 glyphCount; member in struct:TestResult
H A Dxmlreader.cpp183 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; local
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/
H A Dtextblobshader.cpp41 int glyphCount = fGlyphs.count(); variable
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...]
H A Dtextblob.cpp80 int glyphCount = p.textToGlyphs(fText, txtLen, nullptr); variable
82 fGlyphs.append(glyphCount);
H A Dtexteffects.cpp144 const int glyphCount = blobPaint.textToGlyphs(text, textLen, nullptr); local
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;
H A Dtypeface.cpp53 int glyphCount = paint.textToGlyphs(text, len, glyphs); local
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/gm/
H A Dtextblobshader.cpp41 int glyphCount = fGlyphs.count(); variable
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...]
H A Dtextblob.cpp80 int glyphCount = p.textToGlyphs(fText, txtLen, nullptr); variable
82 fGlyphs.append(glyphCount);
H A Dtexteffects.cpp144 const int glyphCount = blobPaint.textToGlyphs(text, textLen, nullptr); local
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;
H A Dtypeface.cpp53 int glyphCount = paint.textToGlyphs(text, len, glyphs); local
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/icu/icu4c/source/test/perf/leperf/
H A Dleperf.cpp28 le_int32 glyphCount; member in class:Params
46 le_int32 glyphCount = 0; local
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);
H A Dxmlreader.cpp187 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; local
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/bench/
H A DCmapBench.cpp24 int glyphCount);
27 int glyphCount) {
34 int glyphCount) {
36 SkASSERT(glyphCount <= NGLYPHS);
44 size_t len, int glyphCount) {
47 SkASSERT(glyphCount <= NGLYPHS);
51 face->charsToGlyphs(text, encoding, glyphs, glyphCount);
56 size_t len, int glyphCount) {
61 face->charsToGlyphs(text, encoding, nullptr, glyphCount);
26 containsText_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
33 textToGlyphs_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
43 charsToGlyphs_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
55 charsToGlyphsNull_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
/external/skia/tools/shape/
H A DSkShaper_primitive.cpp44 int glyphCount = paint.countText(utf8text, textBytes); local
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/bench/
H A DCmapBench.cpp24 int glyphCount);
27 int glyphCount) {
34 int glyphCount) {
36 SkASSERT(glyphCount <= NGLYPHS);
44 size_t len, int glyphCount) {
47 SkASSERT(glyphCount <= NGLYPHS);
51 face->charsToGlyphs(text, encoding, glyphs, glyphCount);
56 size_t len, int glyphCount) {
61 face->charsToGlyphs(text, encoding, nullptr, glyphCount);
26 containsText_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
33 textToGlyphs_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
43 charsToGlyphs_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
55 charsToGlyphsNull_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
/external/skqp/tools/shape/
H A DSkShaper_primitive.cpp44 int glyphCount = paint.countText(utf8text, textBytes); local
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/samples/layout/
H A DGnomeFontInstance.cpp184 void GnomeFontInstance::rasterizeGlyphs(cairo_t *cairo, const LEGlyphID *glyphs, le_int32 glyphCount, const float *positions, argument
187 cairo_glyph_t *glyph_t = LE_NEW_ARRAY(cairo_glyph_t, glyphCount);
190 for (in = 0, out = 0; in < glyphCount; in += 1) {
H A Dparagraph.cpp250 le_int32 glyphCount = visualRun->getGlyphCount(); local
255 surface->drawGlyphs(font, glyphs, glyphCount, positions, x, y, fWidth, fHeight);
/external/skia/src/gpu/text/
H A DGrTextBlobCache.h38 sk_sp<GrAtlasTextBlob> makeBlob(int glyphCount, int runCount) { argument
39 return GrAtlasTextBlob::Make(fPool, glyphCount, runCount);
43 int glyphCount = 0; local
45 BlobGlyphCount(&glyphCount, &runCount, blob);
46 return GrAtlasTextBlob::Make(fPool, glyphCount, runCount);
89 static void BlobGlyphCount(int* glyphCount, int* runCount, const SkTextBlob* blob) { argument
92 *glyphCount += itCounter.glyphCount();
/external/skia/tests/
H A DTextBlobTest.cpp162 const int glyphCount = p.textToGlyphs(txt, txtLen, nullptr); local
165 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(p, glyphCount);
170 memset(buffer.pos, 0, sizeof(SkScalar) * glyphCount * 2);
266 unsigned glyphCount = 0; local
271 glyphCount += in[i].count;
285 REPORTER_ASSERT(reporter, out[i].count == it.glyphCount());
293 for (unsigned k = 0; k < it.glyphCount(); ++k) {
357 int glyphCount = paint.textToGlyphs(text1, strlen(text1), nullptr); local
358 SkAutoTMalloc<uint16_t> glyphs(glyphCount);
363 paint, glyphCount,
401 int glyphCount = paint.textToGlyphs(text, strlen(text), nullptr); local
[all...]
/external/skia/tools/fonts/
H A DSkTestScalerContext.cpp124 int glyphCount = this->onCountGlyphs(); local
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/
H A DGrTextBlobCache.h38 sk_sp<GrAtlasTextBlob> makeBlob(int glyphCount, int runCount) { argument
39 return GrAtlasTextBlob::Make(&fPool, glyphCount, runCount);
43 int glyphCount = 0; local
45 BlobGlyphCount(&glyphCount, &runCount, blob);
46 return GrAtlasTextBlob::Make(&fPool, glyphCount, runCount);
89 static void BlobGlyphCount(int* glyphCount, int* runCount, const SkTextBlob* blob) { argument
92 *glyphCount += itCounter.glyphCount();
/external/skqp/tests/
H A DTextBlobTest.cpp162 const int glyphCount = p.textToGlyphs(txt, txtLen, nullptr); local
165 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(p, glyphCount);
170 memset(buffer.pos, 0, sizeof(SkScalar) * glyphCount * 2);
266 unsigned glyphCount = 0; local
271 glyphCount += in[i].count;
285 REPORTER_ASSERT(reporter, out[i].count == it.glyphCount());
293 for (unsigned k = 0; k < it.glyphCount(); ++k) {
357 int glyphCount = paint.textToGlyphs(text1, strlen(text1), nullptr); local
358 SkAutoTMalloc<uint16_t> glyphs(glyphCount);
363 paint, glyphCount,
401 int glyphCount = paint.textToGlyphs(text, strlen(text), nullptr); local
[all...]
/external/skqp/tools/
H A DSkTestScalerContext.cpp124 int glyphCount = this->onCountGlyphs(); local
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/icu/icu4c/source/layoutex/layout/
H A DParagraphLayout.h188 void append(const LEFontInstance *font, UBiDiDirection direction, le_int32 glyphCount,
349 inline VisualRun(const LEFontInstance *font, UBiDiDirection direction, le_int32 glyphCount,
578 le_int32 glyphCount; member in struct:ParagraphLayout::StyleRunInfo
739 inline ParagraphLayout::VisualRun::VisualRun(const LEFontInstance *font, UBiDiDirection direction, le_int32 glyphCount, argument
741 : fFont(font), fDirection(direction), fGlyphCount(glyphCount),

Completed in 522 milliseconds

123