Home
last modified time | relevance | path

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

12345678910>>...25

/third_party/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp114 auto glyphs = paths.glyphs(SkMakeSpan(glyphIDs)); in SkPDFMakeCIDGlyphWidthsArray() local
118 advances.reserve_back(glyphs.size()); in SkPDFMakeCIDGlyphWidthsArray()
119 for (const SkGlyph* glyph : glyphs) { in SkPDFMakeCIDGlyphWidthsArray()
129 for (size_t i = 0; i < glyphs.size(); ++i) { in SkPDFMakeCIDGlyphWidthsArray()
130 int16_t advance = (int16_t)glyphs[i]->advanceX(); in SkPDFMakeCIDGlyphWidthsArray()
142 for (; j < glyphs.size(); ++j) { in SkPDFMakeCIDGlyphWidthsArray()
143 int16_t next_advance = (int16_t)glyphs[j]->advanceX(); in SkPDFMakeCIDGlyphWidthsArray()
149 result->appendInt(glyphs[i]->getGlyphID()); in SkPDFMakeCIDGlyphWidthsArray()
150 result->appendInt(glyphs[j - 1]->getGlyphID()); in SkPDFMakeCIDGlyphWidthsArray()
158 result->appendInt(glyphs[i]->getGlyphID()); in SkPDFMakeCIDGlyphWidthsArray()
[all …]
/third_party/skia/modules/canvaskit/
Dfont.js20 CanvasKit.Font.prototype.getGlyphBounds = function(glyphs, paint, optionalOutputArray) { argument
21 var glyphPtr = copy1dArray(glyphs, 'HEAPU16');
23 var rectPtr = CanvasKit._malloc(glyphs.length * bytesPerRect);
24 this._getGlyphWidthBounds(glyphPtr, glyphs.length, nullptr, rectPtr, paint || null);
26 var rects = new Float32Array(CanvasKit.HEAPU8.buffer, rectPtr, glyphs.length * 4);
27 freeArraysThatAreNotMallocedByUsers(glyphPtr, glyphs);
59 var glyphs = new Uint16Array(CanvasKit.HEAPU8.buffer, glyphPtr, actualIDs);
61 optionalOutputArray.set(glyphs);
65 var rv = Uint16Array.from(glyphs);
70 CanvasKit.Font.prototype.getGlyphIntercepts = function(glyphs, positions, top, bottom) { argument
[all …]
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-ot-layout-common.hh168 bool intersects (const hb_set_t *glyphs) const in intersects()
169 { return glyphs->intersects (start, end); } in intersects()
172 bool add_coverage (set_t *glyphs) const in add_coverage()
173 { return glyphs->add_range (start, end); } in add_coverage()
808 bool serialize (hb_serialize_context_t *c, Iterator glyphs) in serialize()
811 return_trace (glyphArray.serialize (c, glyphs)); in serialize()
820 bool intersects (const hb_set_t *glyphs) const in intersects()
825 if (glyphs->has (glyphArray[i])) in intersects()
829 bool intersects_coverage (const hb_set_t *glyphs, unsigned int index) const in intersects_coverage()
830 { return glyphs->has (glyphArray[index]); } in intersects_coverage()
[all …]
Dhb-ot-layout-gsub-table.hh46 bool intersects (const hb_set_t *glyphs) const in intersects()
47 { return (this+coverage).intersects (glyphs); } in intersects()
53 | hb_filter (*c->glyphs) in closure()
72 { return c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED; } in would_apply()
92 Iterator glyphs, in serialize()
97 if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs))) return_trace (false); in serialize()
142 bool intersects (const hb_set_t *glyphs) const in intersects()
143 { return (this+coverage).intersects (glyphs); } in intersects()
148 | hb_filter (*c->glyphs, hb_first) in closure()
166 { return c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED; } in would_apply()
[all …]
/third_party/flutter/skia/gm/
Dtexteffects.cpp55 SkAutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob() local
56 font.textToGlyphs(text, textLen, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in MakeFancyBlob()
58 font.getWidths(glyphs.get(), glyphCount, widths.get()); in MakeFancyBlob()
70 memcpy(buf.glyphs, glyphs.get(), SkTo<uint32_t>(defaultRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
83 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
95 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
151 static sk_sp<SkTextBlob> make_text(const SkFont& font, const SkGlyphID glyphs[], int count) { in make_text() argument
152 return SkTextBlob::MakeFromText(glyphs, count * sizeof(SkGlyphID), font, in make_text()
156 static sk_sp<SkTextBlob> make_posh(const SkFont& font, const SkGlyphID glyphs[], int count, in make_posh() argument
159 font.getXPos(glyphs, count, xpos.get()); in make_posh()
[all …]
/third_party/skia/gm/
Dtexteffects.cpp55 SkAutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob() local
56 font.textToGlyphs(text, textLen, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in MakeFancyBlob()
58 font.getWidths(glyphs.get(), glyphCount, widths.get()); in MakeFancyBlob()
70 memcpy(buf.glyphs, glyphs.get(), SkTo<uint32_t>(defaultRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
83 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
95 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
151 static sk_sp<SkTextBlob> make_text(const SkFont& font, const SkGlyphID glyphs[], int count) { in make_text() argument
152 return SkTextBlob::MakeFromText(glyphs, count * sizeof(SkGlyphID), font, in make_text()
156 static sk_sp<SkTextBlob> make_posh(const SkFont& font, const SkGlyphID glyphs[], int count, in make_posh() argument
159 font.getXPos(glyphs, count, xpos.get()); in make_posh()
[all …]
/third_party/skia/src/core/
DSkFont.cpp149 void SkFont::unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const { in unicharsToGlyphs()
150 this->getTypefaceOrDefault()->unicharsToGlyphs(uni, count, glyphs); in unicharsToGlyphs()
154 SkGlyphID glyphs[], int maxGlyphCount) const { in textToGlyphs() argument
156 glyphs, maxGlyphCount); in textToGlyphs()
170 const SkGlyphID* glyphIDs = atg.glyphs(); in measureText()
174 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, glyphCount)); in measureText() local
178 *bounds = glyphs[0]->rect(); in measureText()
179 width = glyphs[0]->advanceX(); in measureText()
181 SkRect r = glyphs[i]->rect(); in measureText()
184 width += glyphs[i]->advanceX(); in measureText()
[all …]
/third_party/wayland_standard/cursor/
Dconvert_font.c58 struct glyph *glyphs; member
137 extracted_font.glyphs = calloc(count, sizeof(struct glyph)); in handle_compressed_metrics()
141 struct glyph *glyph = &extracted_font.glyphs[i]; in handle_compressed_metrics()
196 extracted_font.glyphs[i].name = calloc(1, end - start + 1); in handle_glyph_names()
197 memcpy(extracted_font.glyphs[i].name, name, end - start); in handle_glyph_names()
223 struct glyph *glyph = &extracted_font.glyphs[i]; in handle_bitmaps()
370 write_output_file(struct reconstructed_glyph *glyphs, int n) in write_output_file() argument
382 data = data_buffer.data + glyphs[i].offset; in write_output_file()
383 size = glyphs[i].width * glyphs[i].height; in write_output_file()
403 glyphs[i].name, in write_output_file()
[all …]
/third_party/pixman/pixman/
Dpixman-glyph.c62 glyph_t * glyphs[HASH_SIZE]; member
103 while ((g = cache->glyphs[idx++ & HASH_MASK])) in lookup_glyph()
130 loc = &cache->glyphs[idx++ & HASH_MASK]; in insert_glyph()
147 while (cache->glyphs[idx & HASH_MASK] != glyph) in remove_glyph()
150 cache->glyphs[idx & HASH_MASK] = TOMBSTONE; in remove_glyph()
155 if (cache->glyphs[(idx + 1) & HASH_MASK] == NULL) in remove_glyph()
157 while (cache->glyphs[idx & HASH_MASK] == TOMBSTONE) in remove_glyph()
159 cache->glyphs[idx & HASH_MASK] = NULL; in remove_glyph()
173 glyph_t *glyph = cache->glyphs[i]; in clear_table()
178 cache->glyphs[i] = NULL; in clear_table()
[all …]
/third_party/flutter/skia/third_party/externals/harfbuzz/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, ==, 0); 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 …]
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/
DBasicSubsetTests.java64 List<Integer> glyphs = new ArrayList<Integer>(glyphCount); in testSubsetGlyphs() local
65 glyphs.add(0); in testSubsetGlyphs()
66 glyphs.add(1); in testSubsetGlyphs()
67 glyphs.add(2); in testSubsetGlyphs()
68 glyphs.add(3); in testSubsetGlyphs()
69 glyphs.add(4); in testSubsetGlyphs()
70 glyphs.add(5); in testSubsetGlyphs()
71 glyphs.add(6); in testSubsetGlyphs()
72 glyphs.add(7); in testSubsetGlyphs()
73 glyphs.add(8); in testSubsetGlyphs()
[all …]
/third_party/skia/include/core/
DSkFont.h300 SkGlyphID glyphs[], int maxGlyphCount) const;
311 void unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const;
366 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[]) const { in getWidths() argument
367 this->getWidthsBounds(glyphs, count, widths, bounds, nullptr); in getWidths()
371 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], std::nullptr_t) const { in getWidths() argument
372 this->getWidths(glyphs, count, widths); in getWidths()
384 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[]) const { in getWidths() argument
385 this->getWidthsBounds(glyphs, count, widths, nullptr, nullptr); in getWidths()
399 void getWidthsBounds(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[],
412 void getBounds(const SkGlyphID glyphs[], int count, SkRect bounds[], in getBounds() argument
[all …]
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/
DBasicSubsetTests.java64 List<Integer> glyphs = new ArrayList<Integer>(glyphCount); in testSubsetGlyphs() local
65 glyphs.add(0); in testSubsetGlyphs()
66 glyphs.add(1); in testSubsetGlyphs()
67 glyphs.add(2); in testSubsetGlyphs()
68 glyphs.add(3); in testSubsetGlyphs()
69 glyphs.add(4); in testSubsetGlyphs()
70 glyphs.add(5); in testSubsetGlyphs()
71 glyphs.add(6); in testSubsetGlyphs()
72 glyphs.add(7); in testSubsetGlyphs()
73 glyphs.add(8); in testSubsetGlyphs()
[all …]
/third_party/flutter/skia/include/core/
DSkFont.h296 SkGlyphID glyphs[], int maxGlyphCount) const;
307 void unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const;
368 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[]) const { in getWidths() argument
369 this->getWidthsBounds(glyphs, count, widths, bounds, nullptr); in getWidths()
373 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], std::nullptr_t) const { in getWidths() argument
374 this->getWidths(glyphs, count, widths); in getWidths()
386 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[]) const { in getWidths() argument
387 this->getWidthsBounds(glyphs, count, widths, nullptr, nullptr); in getWidths()
401 void getWidthsBounds(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[],
414 void getBounds(const SkGlyphID glyphs[], int count, SkRect bounds[], in getBounds() argument
[all …]
/third_party/harfbuzz/util/
Dhb-ot-shape-closure.cc59 glyphs = hb_set_create (); in init()
69 hb_set_clear (glyphs); in consume_line()
70 shaper.shape_closure (text, text_len, font, buffer, glyphs); in consume_line()
72 if (hb_set_is_empty (glyphs)) in consume_line()
77 for (hb_codepoint_t i = -1; hb_set_next (glyphs, &i);) in consume_line()
97 hb_set_destroy (glyphs); in finish()
98 glyphs = nullptr; in finish()
109 hb_set_t *glyphs; member
/third_party/flutter/skia/third_party/externals/harfbuzz/util/
Dhb-ot-shape-closure.cc59 glyphs = hb_set_create (); in init()
69 hb_set_clear (glyphs); in consume_line()
70 shaper.shape_closure (text, text_len, font, buffer, glyphs); in consume_line()
72 if (hb_set_is_empty (glyphs)) in consume_line()
77 for (hb_codepoint_t i = -1; hb_set_next (glyphs, &i);) in consume_line()
97 hb_set_destroy (glyphs); in finish()
98 glyphs = nullptr; in finish()
109 hb_set_t *glyphs; member
/third_party/skia/third_party/externals/harfbuzz/util/
Dhb-ot-shape-closure.cc57 glyphs = hb_set_create (); in init()
70 hb_set_clear (glyphs); in consume_line()
71 shaper.shape_closure (text, text_len, font, buffer, glyphs); in consume_line()
73 if (hb_set_is_empty (glyphs)) in consume_line()
78 for (hb_codepoint_t i = -1; hb_set_next (glyphs, &i);) in consume_line()
100 hb_set_destroy (glyphs); in finish()
101 glyphs = nullptr; in finish()
112 hb_set_t *glyphs = nullptr; member
/third_party/harfbuzz/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, ==, 0); 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 …]
/third_party/skia/third_party/externals/harfbuzz/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, ==, 0); 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 …]
/third_party/flutter/skia/src/core/
DSkFont.cpp147 void SkFont::unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const { in unicharsToGlyphs()
148 this->getTypefaceOrDefault()->unicharsToGlyphs(uni, count, glyphs); in unicharsToGlyphs()
188 SkGlyphID glyphs[], int maxGlyphCount) const { in textToGlyphs() argument
196 if (!glyphs || count > maxGlyphCount) { in textToGlyphs()
201 memcpy(glyphs, text, count << 1); in textToGlyphs()
208 this->getTypefaceOrDefault()->unicharsToGlyphs(uni, count, glyphs); in textToGlyphs()
223 const SkGlyphID* glyphIDs = atg.glyphs(); in measureText()
227 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, glyphCount)); in measureText() local
231 *bounds = glyphs[0]->rect(); in measureText()
232 width = glyphs[0]->advanceX(); in measureText()
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-layout-gsub-table.hh46 bool intersects (const hb_set_t *glyphs) const in intersects()
47 { return (this+coverage).intersects (glyphs); } in intersects()
79 { return c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED; } in would_apply()
99 Iterator glyphs, in serialize()
104 if (unlikely (!coverage.serialize_serialize (c, glyphs))) return_trace (false); in serialize()
152 bool intersects (const hb_set_t *glyphs) const in intersects()
153 { return (this+coverage).intersects (glyphs); } in intersects()
182 { return c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED; } in would_apply()
208 auto glyphs = in serialize() local
214 if (unlikely (!coverage.serialize_serialize (c, glyphs))) return_trace (false); in serialize()
[all …]
/third_party/harfbuzz/src/
Dhb-ot-layout-gsub-table.hh46 bool intersects (const hb_set_t *glyphs) const in intersects()
47 { return (this+coverage).intersects (glyphs); } in intersects()
79 { return c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED; } in would_apply()
99 Iterator glyphs, in serialize()
104 if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs))) return_trace (false); in serialize()
152 bool intersects (const hb_set_t *glyphs) const in intersects()
153 { return (this+coverage).intersects (glyphs); } in intersects()
182 { return c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED; } in would_apply()
208 auto glyphs = in serialize() local
214 if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs))) return_trace (false); in serialize()
[all …]
/third_party/skia/docs/examples/
DCanvas_drawTextBlob.cpp11 uint16_t glyphs[len];
13 paint.textToGlyphs(bunny, len, glyphs);
23 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen);
25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr);
/third_party/flutter/skia/docs/examples/
DCanvas_drawTextBlob.cpp11 uint16_t glyphs[len];
13 paint.textToGlyphs(bunny, len, glyphs);
23 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen);
25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr);
DTextBlob_bounds.cpp11 uint16_t glyphs[len];
13 paint.textToGlyphs(bunny, len, glyphs);
24 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen);
25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr);

12345678910>>...25