Home
last modified time | relevance | path

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

12345678

/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.hh46 if (c->glyphs->has (glyph_id)) in closure()
47 c->glyphs->add ((glyph_id + deltaGlyphID) & 0xFFFFu); in closure()
70 return_trace (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED); in would_apply()
89 Supplier<GlyphID> &glyphs, in serialize()
95 …if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return_trace (fals… in serialize()
124 if (c->glyphs->has (iter.get_glyph ())) in closure()
125 c->glyphs->add (substitute[iter.get_coverage ()]); in closure()
147 return_trace (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED); in would_apply()
166 Supplier<GlyphID> &glyphs, in serialize()
173 …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/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/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.cpp38 SkTDArray<uint16_t> glyphs; in onDelayedSetup() local
40 glyphs.append(paint.textToGlyphs(text, len, nullptr)); in onDelayedSetup()
41 paint.textToGlyphs(text, len, glyphs.begin()); in onDelayedSetup()
46 const SkTextBlobBuilder::RunBuffer& run = builder.allocRun(paint, glyphs.count(), 10, 10, in onDelayedSetup()
48 memcpy(run.glyphs, glyphs.begin(), glyphs.count() * sizeof(uint16_t)); in onDelayedSetup()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
DGlyphLayout.java142 if (run.glyphs.size == 0) in setText()
155 … && x - xAdvance + (run.glyphs.get(i - 1).xoffset + run.glyphs.get(i - 1).width) * fontData.scaleX in setText()
164 int wrapIndex = fontData.getWrapIndex(run.glyphs, i); in setText()
166 || wrapIndex >= run.glyphs.size) { // Wrap at least the glyph that didn't fit. in setText()
265 run.glyphs.truncate(count - 1); in truncate()
271 run.glyphs.clear(); in truncate()
276 run.glyphs.addAll(truncateRun.glyphs); in truncate()
285 int glyphCount = first.glyphs.size; in wrap()
298 Array<Glyph> glyphs1 = second.glyphs; // Starts empty. in wrap()
299 Array<Glyph> glyphs2 = first.glyphs; // Starts with all the glyphs. in wrap()
[all …]
DBitmapFont.java178 for (Glyph[] page : data.glyphs) { in load()
321 public void setFixedWidthGlyphs (CharSequence glyphs) { in setFixedWidthGlyphs() argument
324 for (int index = 0, end = glyphs.length(); index < end; index++) { in setFixedWidthGlyphs()
325 Glyph g = data.getGlyph(glyphs.charAt(index)); in setFixedWidthGlyphs()
328 for (int index = 0, end = glyphs.length(); index < end; index++) { in setFixedWidthGlyphs()
329 Glyph g = data.getGlyph(glyphs.charAt(index)); in setFixedWidthGlyphs()
452 public final Glyph[][] glyphs = new Glyph[PAGES][]; field in BitmapFont.BitmapFontData
647 for (Glyph[] page : this.glyphs) { in load()
740 Glyph[] page = glyphs[ch / PAGE_SIZE]; in setGlyph()
741 if (page == null) glyphs[ch / PAGE_SIZE] = page = new Glyph[PAGE_SIZE]; in setGlyph()
[all …]
/external/skia/src/core/
DSkTypeface.cpp52 uint16_t glyphs[], int glyphCount) const override { in onCharsToGlyphs() argument
53 if (glyphs && glyphCount > 0) { in onCharsToGlyphs()
54 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0])); in onCharsToGlyphs()
239 uint16_t glyphs[], int glyphCount) const { in charsToGlyphs() argument
244 if (glyphs) { in charsToGlyphs()
245 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0])); in charsToGlyphs()
249 return this->onCharsToGlyphs(chars, encoding, glyphs, glyphCount); in charsToGlyphs()
261 bool SkTypeface::getKerningPairAdjustments(const uint16_t glyphs[], int count, in getKerningPairAdjustments() argument
267 if (nullptr == glyphs || nullptr == adjustments) { in getKerningPairAdjustments()
268 SkASSERT(nullptr == glyphs); in getKerningPairAdjustments()
[all …]
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/bmfont/
DBitmapFontWriter.java205 Array<Glyph> glyphs = new Array<Glyph>(256); in writeFont() local
206 for (int i = 0; i < fontData.glyphs.length; i++) { in writeFont()
207 if (fontData.glyphs[i] == null) continue; in writeFont()
209 for (int j = 0; j < fontData.glyphs[i].length; j++) { in writeFont()
210 if (fontData.glyphs[i][j] != null) { in writeFont()
211 glyphs.add(fontData.glyphs[i][j]); in writeFont()
216 …buf.append(xmlOpen).append("chars count=").append(quote(glyphs.size)).append(xmlClose).append("\n"… in writeFont()
228 for (int i = 0; i < glyphs.size; i++) { in writeFont()
229 Glyph g = glyphs.get(i); in writeFont()
249 for (int i = 0; i < glyphs.size; i++) { in writeFont()
[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/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/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/mesa3d/src/gallium/state_trackers/vega/
Dtext.c38 struct cso_hash *glyphs; member
54 cso_hash_take(font->glyphs, (unsigned) glyphIndex); in del_glyph()
79 cso_hash_insert(font->glyphs, (unsigned) glyphIndex, glyph); in add_glyph()
87 iter = cso_hash_find(font->glyphs, (unsigned) glyphIndex); in get_glyph()
139 font->glyphs = cso_hash_create(); in font_create()
153 iter = cso_hash_first_node(font->glyphs); in font_destroy()
159 cso_hash_delete(font->glyphs); in font_destroy()
246 return cso_hash_size(font->glyphs); in font_num_glyphs()
/external/skia/gm/
Dtypeface.cpp14 static void getGlyphPositions(const SkPaint& paint, const uint16_t glyphs[], in getGlyphPositions() argument
20 paint.getTextWidths(glyphs, count * sizeof(uint16_t), widths); in getGlyphPositions()
48 uint16_t* glyphs = glyphStorage.get(); in drawKernText() local
49 int glyphCount = paint.textToGlyphs(text, len, glyphs); in drawKernText()
56 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) { in drawKernText()
66 getGlyphPositions(glyphPaint, glyphs, glyphCount, x, y, pos); in drawKernText()
69 canvas->drawPosText(glyphs, glyphCount * sizeof(uint16_t), pos, glyphPaint); in drawKernText()
/external/icu/icu4c/source/test/letest/
Dletest.cpp59 LEGlyphID *glyphs = NULL; in ParamTest() local
69 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest()
80 engine->getGlyphs(glyphs, status); in ParamTest()
94 engine->getGlyphs(glyphs, 0xFF000000L, status); in ParamTest()
144 DELETE_ARRAY(glyphs); in ParamTest()
245 LEGlyphID glyphs[6], extraBitGlyphs[6];; in AccessTest() local
266 engine->getGlyphs(glyphs, status); in AccessTest()
281 if (extraBitGlyphs[glyph] != (glyphs[glyph] | 0xFF000000L)) { in AccessTest()
283 glyph, glyph, extraBitGlyphs[glyph], glyphs[glyph]); in AccessTest()
340 if (actual->glyphs[i] != expected->glyphs[i]) { in compareResults()
[all …]
Dcletest.c44 LEGlyphID *glyphs = NULL; in ParamTest() local
62 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest()
73 le_getGlyphs(engine, glyphs, &status); in ParamTest()
123 DELETE_ARRAY(glyphs); in ParamTest()
217 LEGlyphID glyphs[6]; in AccessTest() local
238 le_getGlyphs(engine, glyphs, &status); in AccessTest()
298 if (actual->glyphs[i] != expected->glyphs[i]) { in compareResults()
300 testID, i, expected->glyphs[i], actual->glyphs[i]); in compareResults()
474 actual.glyphs = NEW_ARRAY(LEGlyphID, actual.glyphCount); in doTestCase()
478 le_getGlyphs(engine, actual.glyphs, &status); in doTestCase()
[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()
137 uint16_t glyphs[], int glyphCount) const override { in test_matchStyleCSS3() argument
138 if (glyphs && glyphCount > 0) { in test_matchStyleCSS3()
139 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0])); in test_matchStyleCSS3()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/extensions/
DFreeTypeIncrementalTest.java56 public int getWrapIndex (Array<Glyph> glyphs, int start) { in create()
57 return SimplifiedChinese.getWrapIndex(glyphs, start); in create()
105 public static int getWrapIndex (Array<Glyph> glyphs, int start) { in getWrapIndex() argument
108 int startChar = glyphs.get(i).id; in getWrapIndex()
110 int endChar = glyphs.get(i - 1).id; in getWrapIndex()
/external/icu/icu4c/source/test/perf/leperf/
Dleperf.cpp37 LEGlyphID *glyphs = NULL; in iterate() local
43 glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount + 10); in iterate()
46 engine->getGlyphs(glyphs, status); in iterate()
50 delete glyphs; in iterate()

12345678