Home
last modified time | relevance | path

Searched refs:glyphs (Results 1 – 25 of 164) sorted by relevance

1234567

/external/fonttools/Lib/fontTools/
Dsubset.py46 def intersect(self, glyphs): argument
48 return [i for i,g in enumerate(self.glyphs) if g in glyphs]
51 def intersect_glyphs(self, glyphs): argument
53 return set(g for g in self.glyphs if g in glyphs)
56 def subset(self, glyphs): argument
58 indices = self.intersect(glyphs)
59 self.glyphs = [g for g in self.glyphs if g in glyphs]
65 self.glyphs = [self.glyphs[i] for i in coverage_map]
68 def intersect(self, glyphs): argument
71 ([0] if any(g not in self.classDefs for g in glyphs) else []) +
[all …]
/external/harfbuzz_ng/test/api/
Dtest-buffer.c185 hb_glyph_info_t *glyphs; in test_buffer_contents() local
194 glyphs = hb_buffer_get_glyph_infos (b, &len2); in test_buffer_contents()
199 g_assert_cmphex (glyphs[i].mask, ==, 1); in test_buffer_contents()
200 g_assert_cmphex (glyphs[i].var1.u32, ==, 0); in test_buffer_contents()
201 g_assert_cmphex (glyphs[i].var2.u32, ==, 0); in test_buffer_contents()
213 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
214 g_assert_cmphex (glyphs[i].cluster, ==, cluster); in test_buffer_contents()
221 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
225 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
232 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
[all …]
Dtest-shape.c92 hb_glyph_info_t *glyphs; in test_shape() local
116 glyphs = hb_buffer_get_glyph_infos (buffer, NULL); in test_shape()
126 g_assert_cmphex (glyphs[i].codepoint, ==, output_glyphs[i]); in test_shape()
127 g_assert_cmphex (glyphs[i].cluster, ==, i); in test_shape()
148 hb_glyph_info_t *glyphs; in test_shape_clusters() local
165 glyphs = hb_buffer_get_glyph_infos (buffer, NULL); in test_shape_clusters()
173 g_assert_cmphex (glyphs[i].codepoint, ==, output_glyphs[i]); in test_shape_clusters()
174 g_assert_cmphex (glyphs[i].cluster, ==, output_clusters[i]); in test_shape_clusters()
/external/harfbuzz_ng/src/
Dhb-ot-layout-common-private.hh157 inline bool intersects (const hb_set_t *glyphs) const { in intersects()
158 return glyphs->intersects (start, end); in intersects()
162 inline void add_coverage (set_t *glyphs) const { in add_coverage()
163 glyphs->add_range (start, end); in add_coverage()
698 Supplier<GlyphID> &glyphs, in serialize()
706 glyphArray[i] = glyphs[i]; in serialize()
707 glyphs.advance (num_glyphs); in serialize()
717 inline bool intersects_coverage (const hb_set_t *glyphs, unsigned int index) const { in intersects_coverage()
718 return glyphs->has (glyphArray[index]); in intersects_coverage()
722 inline void add_coverage (set_t *glyphs) const { in add_coverage()
[all …]
Dhb-ot-layout-gsub-table.hh49 if (c->glyphs->has (glyph_id)) in closure()
50 c->glyphs->add ((glyph_id + deltaGlyphID) & 0xFFFFu); in closure()
76 return_trace (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED); in would_apply()
95 Supplier<GlyphID> &glyphs, in serialize()
101 …if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return_trace (fals… in serialize()
134 if (c->glyphs->has (iter.get_glyph ())) in closure()
135 c->glyphs->add (substitute[iter.get_coverage ()]); in closure()
161 return_trace (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED); in would_apply()
180 Supplier<GlyphID> &glyphs, in serialize()
187 …if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return_trace (fals… in serialize()
[all …]
Dtest-would-substitute.cc100 hb_codepoint_t glyphs[2]; in main() local
101 if (!hb_font_glyph_from_string (font, argv[3], -1, &glyphs[0]) || in main()
103 !hb_font_glyph_from_string (font, argv[4], -1, &glyphs[1]))) in main()
105 …return !hb_ot_layout_lookup_would_substitute (face, strtol (argv[2], NULL, 0), glyphs, len, false); in main()
/external/harfbuzz_ng/util/
Dhb-ot-shape-closure.cc58 glyphs = hb_set_create (); in init()
68 hb_set_clear (glyphs); in consume_line()
69 shaper.shape_closure (text, text_len, font, buffer, glyphs); in consume_line()
71 if (hb_set_is_empty (glyphs)) in consume_line()
76 for (hb_codepoint_t i = -1; hb_set_next (glyphs, &i);) in consume_line()
96 hb_set_destroy (glyphs); in finish()
97 glyphs = NULL; in finish()
106 hb_set_t *glyphs; member
Dhelper-cairo.hh54 cairo_glyph_t *glyphs; member
63 if (glyphs) in finish()
64 cairo_glyph_free (glyphs); in finish()
72 *x_advance = glyphs[num_glyphs].x; in get_advance()
73 *y_advance = glyphs[num_glyphs].y; in get_advance()
Dview-cairo.cc108 cairo_move_to (cr, l.glyphs[i].x, l.glyphs[i].y); in render()
118 cairo_glyph_path (cr, l.glyphs, l.num_glyphs); in render()
123 l.glyphs, l.num_glyphs, in render()
127 cairo_show_glyphs (cr, l.glyphs, l.num_glyphs); in render()
/external/skia/bench/
DTextBlobBench.cpp35 SkTDArray<uint16_t> glyphs; in onDelayedSetup() local
37 glyphs.append(paint.textToGlyphs(text, len, nullptr)); in onDelayedSetup()
38 paint.textToGlyphs(text, len, glyphs.begin()); in onDelayedSetup()
43 const SkTextBlobBuilder::RunBuffer& run = builder.allocRun(paint, glyphs.count(), 10, 10, in onDelayedSetup()
45 memcpy(run.glyphs, glyphs.begin(), glyphs.count() * sizeof(uint16_t)); in onDelayedSetup()
DCmapBench.cpp35 uint16_t glyphs[NGLYPHS]; in textToGlyphs_proc() local
39 paint.textToGlyphs(text, len, glyphs); in textToGlyphs_proc()
46 uint16_t glyphs[NGLYPHS]; in charsToGlyphs_proc() local
51 face->charsToGlyphs(text, encoding, glyphs, glyphCount); in charsToGlyphs_proc()
DFontCacheBench.cpp123 int glyphs = 0; in onDraw() local
128 glyphs += count; in onDraw()
131 …ts [%d] limit [%d] collisions [%d / %d = %1.2g%%] using %s\n", hashBits, limit, collisions, glyphs, in onDraw()
132 collisions * 100.0 / glyphs, gRec[i].fName); in onDraw()
/external/skia/src/core/
DSkTypeface.cpp58 uint16_t glyphs[], int glyphCount) const override { in onCharsToGlyphs() argument
59 if (glyphs && glyphCount > 0) { in onCharsToGlyphs()
60 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0])); in onCharsToGlyphs()
254 uint16_t glyphs[], int glyphCount) const { in charsToGlyphs() argument
259 if (glyphs) { in charsToGlyphs()
260 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0])); in charsToGlyphs()
264 return this->onCharsToGlyphs(chars, encoding, glyphs, glyphCount); in charsToGlyphs()
276 bool SkTypeface::getKerningPairAdjustments(const uint16_t glyphs[], int count, in getKerningPairAdjustments() argument
282 if (nullptr == glyphs || nullptr == adjustments) { in getKerningPairAdjustments()
283 SkASSERT(nullptr == glyphs); in getKerningPairAdjustments()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DotTables.py42 self.glyphs = rawTable["GlyphArray"]
44 glyphs = self.glyphs = []
56 assert r.StartCoverageIndex == len(glyphs), \
57 (r.StartCoverageIndex, len(glyphs))
74 glyphs.extend(glyphOrder[glyphID] for glyphID in range(startID, endID))
80 glyphs = getattr(self, "glyphs", None)
81 if glyphs is None:
82 glyphs = self.glyphs = []
84 rawTable = {"GlyphArray": glyphs}
86 if glyphs:
[all …]
/external/sfntly/cpp/src/sample/subsetter/
Dsubset_util.cc67 IntegerList glyphs; in Subset() local
69 glyphs.push_back(i); in Subset()
71 glyphs.push_back(11); in Subset()
72 glyphs.push_back(10); in Subset()
75 subsetter->SetGlyphs(&glyphs); in Subset()
/external/harfbuzz_ng/test/shaping/
Drecord-test.sh39 glyphs=`echo "$text" | $hb_shape $options "$fontfile"`
59 if ! test "x$glyphs" = "x$glyphs_subset"; then
67 echo "$glyphs"
74 glyphs=$glyphs_subset
85 echo "$glyphs" > "$glyphs_file"
Drun-tests.sh29 glyphs=`$srcdir/hb-unicode-encode "$unicodes" | $hb_shape $options "$srcdir/$fontfile"`
36 echo "$fontfile:$options:$unicodes:$glyphs"
39 if ! test "x$glyphs" = "x$glyphs_expected"; then
40 echo "Actual: $glyphs" >&2
/external/icu/icu4c/source/test/letest/
Dletest.cpp61 LEGlyphID *glyphs = NULL; in ParamTest() local
71 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest()
82 engine->getGlyphs(glyphs, status); in ParamTest()
96 engine->getGlyphs(glyphs, 0xFF000000L, status); in ParamTest()
146 DELETE_ARRAY(glyphs); in ParamTest()
247 LEGlyphID glyphs[6], extraBitGlyphs[6];; in AccessTest() local
268 engine->getGlyphs(glyphs, status); in AccessTest()
283 if (extraBitGlyphs[glyph] != (glyphs[glyph] | 0xFF000000L)) { in AccessTest()
285 glyph, glyph, extraBitGlyphs[glyph], glyphs[glyph]); in AccessTest()
342 if (actual->glyphs[i] != expected->glyphs[i]) { in compareResults()
[all …]
Dcletest.c46 LEGlyphID *glyphs = NULL; in ParamTest() local
64 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest()
75 le_getGlyphs(engine, glyphs, &status); in ParamTest()
125 DELETE_ARRAY(glyphs); in ParamTest()
219 LEGlyphID glyphs[6]; in AccessTest() local
240 le_getGlyphs(engine, glyphs, &status); in AccessTest()
300 if (actual->glyphs[i] != expected->glyphs[i]) { in compareResults()
302 testID, i, expected->glyphs[i], actual->glyphs[i]); in compareResults()
476 actual.glyphs = NEW_ARRAY(LEGlyphID, actual.glyphCount); in doTestCase()
480 le_getGlyphs(engine, actual.glyphs, &status); in doTestCase()
[all …]
/external/skia/src/gpu/text/
DGrStencilAndCoverTextContext.cpp149 (const char*)it.glyphs(), textLen, x + offset.x(), y + offset.y(), in uncachedDrawTextBlob()
154 (const char*)it.glyphs(), textLen, it.pos(), 1, in uncachedDrawTextBlob()
159 (const char*)it.glyphs(), textLen, it.pos(), 2, in uncachedDrawTextBlob()
281 const char* text = reinterpret_cast<const char*>(iter.glyphs()); in init()
531 sk_sp<GrPathRange> glyphs; in createGlyphs() local
533 glyphs.reset(static_cast<GrPathRange*>( in createGlyphs()
535 if (!glyphs) { in createGlyphs()
538 glyphs = resourceProvider->createGlyphs(fFont.getTypeface(), noeffects, in createGlyphs()
542 glyphs = resourceProvider->createGlyphs(cache->getScalerContext()->getTypeface(), in createGlyphs()
547 resourceProvider->assignUniqueKeyToResource(fGlyphPathsKey, glyphs.get()); in createGlyphs()
[all …]
/external/skia/tests/
DFontMgrTest.cpp30 uint16_t glyphs[5]; in test_font() local
31 sk_bzero(glyphs, sizeof(glyphs)); in test_font()
33 … int count = font->textToGlyphs("Hello", 5, kUTF8_SkTextEncoding, glyphs, SK_ARRAY_COUNT(glyphs)); in test_font()
37 REPORTER_ASSERT(reporter, 0 != glyphs[i]); in test_font()
39 REPORTER_ASSERT(reporter, glyphs[0] != glyphs[1]); // 'h' != 'e' in test_font()
40 REPORTER_ASSERT(reporter, glyphs[2] == glyphs[3]); // 'l' == 'l' in test_font()
141 uint16_t glyphs[], int glyphCount) const override { in test_matchStyleCSS3() argument
142 if (glyphs && glyphCount > 0) { in test_matchStyleCSS3()
143 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0])); in test_matchStyleCSS3()
/external/icu/icu4c/source/test/perf/leperf/
Dleperf.cpp43 LEGlyphID *glyphs = NULL; in iterate() local
49 glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount + 10); in iterate()
52 engine->getGlyphs(glyphs, status); in iterate()
56 delete glyphs; in iterate()
/external/skia/gm/
Dtypeface.cpp17 static void getGlyphPositions(const SkPaint& paint, const uint16_t glyphs[], in getGlyphPositions() argument
23 paint.getTextWidths(glyphs, count * sizeof(uint16_t), widths); in getGlyphPositions()
51 uint16_t* glyphs = glyphStorage.get(); in drawKernText() local
52 int glyphCount = paint.textToGlyphs(text, len, glyphs); in drawKernText()
59 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) { in drawKernText()
69 getGlyphPositions(glyphPaint, glyphs, glyphCount, x, y, pos); in drawKernText()
72 canvas->drawPosText(glyphs, glyphCount * sizeof(uint16_t), pos, glyphPaint); in drawKernText()
Dtextbloblooper.cpp31 SkTDArray<uint16_t> glyphs; in add_to_text_blob() local
34 glyphs.append(paint.textToGlyphs(text, len, nullptr)); in add_to_text_blob()
35 paint.textToGlyphs(text, len, glyphs.begin()); in add_to_text_blob()
47 const SkTextBlobBuilder::RunBuffer& run = builder->allocRunPos(paint, glyphs.count()); in add_to_text_blob()
48 memcpy(run.glyphs, glyphs.begin(), glyphs.count() * sizeof(uint16_t)); in add_to_text_blob()
/external/skia/tools/lua/
Dglyph-counts.lua65 if t.glyphs then
66 local key = array_count(t.glyphs)
75 local first = t.glyphs[1];

1234567