Home
last modified time | relevance | path

Searched refs:glyphs (Results 1 - 25 of 226) sorted by relevance

12345678910

/third_party/skia/src/pdf/
H A DSkPDFMakeCIDGlyphWidthsArray.cpp70 /** Retrieve advance data for glyphs. Used by the PDF backend. */
114 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[ in SkPDFMakeCIDGlyphWidthsArray()
[all...]
/third_party/skia/gm/
H A Dtexteffects.cpp55 SkAutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob()
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[], in argument
156 make_posh(const SkFont& font, const SkGlyphID glyphs[], int count, SkScalar spacing) make_posh() argument
167 make_pos(const SkFont& font, const SkGlyphID glyphs[], int count, SkScalar spacing) make_pos() argument
[all...]
H A Drsxtext.cpp37 SkGlyphID glyphs[16]; variable
40 glyphs, SK_ARRAY_COUNT(glyphs));
41 font.getWidths(glyphs, glyph_count, widths);
45 std::copy(glyphs, glyphs + glyph_count, buf.glyphs);
H A Dtypeface.cpp30 static void getGlyphPositions(const SkFont& font, const uint16_t glyphs[], in getGlyphPositions() argument
34 font.getWidths(glyphs, count, widths); in getGlyphPositions()
62 uint16_t* glyphs = glyphStorage.get(); in drawKernText() local
63 int glyphCount = font.textToGlyphs(text, len, SkTextEncoding::kUTF8, glyphs, len); in drawKernText()
70 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) { in drawKernText()
78 memcpy(rec.glyphs, glyphs, glyphCount * sizeof(SkGlyphID)); in drawKernText()
79 getGlyphPositions(font, glyphs, glyphCount, x, y, rec.points()); in drawKernText()
409 uint16_t glyphs[1] = { font.unicharToGlyph('A') }; in DEF_SIMPLE_GM() local
424 canvas->drawGlyphs(1, glyphs, po in DEF_SIMPLE_GM()
[all...]
/third_party/skia/src/core/
H A 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()
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[ in measureText()
153 textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, SkGlyphID glyphs[], int maxGlyphCount) const textToGlyphs() argument
212 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); getWidthsBounds() local
233 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); getPos() local
247 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); getXPos() local
265 SkSpan<const SkGlyph*> glyphs = paths.glyphs(SkMakeSpan(glyphIDs, count)); getPaths() local
361 GlyphsToUnichars(const SkFont& font, const SkGlyphID glyphs[], int count, SkUnichar text[]) GlyphsToUnichars() argument
[all...]
H A DSkTypeface.cpp58 void onCharsToGlyphs(const SkUnichar* chars, int count, SkGlyphID glyphs[]) const override {
59 sk_bzero(glyphs, count * sizeof(glyphs[0]));
388 void SkTypeface::unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const { in unicharsToGlyphs()
389 if (count > 0 && glyphs && uni) { in unicharsToGlyphs()
390 this->onCharsToGlyphs(uni, count, glyphs); in unicharsToGlyphs()
395 SkGlyphID glyphs[1] = { 0 }; in unicharToGlyph() local
396 this->onCharsToGlyphs(&uni, 1, glyphs); in unicharToGlyph()
397 return glyphs[0]; in unicharToGlyph()
439 SkGlyphID glyphs[], in in textToGlyphs()
438 textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, SkGlyphID glyphs[], int maxGlyphCount) const textToGlyphs() argument
472 getKerningPairAdjustments(const uint16_t glyphs[], int count, int32_t adjustments[]) const getKerningPairAdjustments() argument
532 onGetKerningPairAdjustments(const uint16_t glyphs[], int count, int32_t adjustments[]) const onGetKerningPairAdjustments() argument
[all...]
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/
H A DBasicSubsetTests.java62 // BitSet glyphs = new BitSet(); in testSubsetGlyphs()
63 // glyphs.set(0, 10); in testSubsetGlyphs()
64 List<Integer> glyphs = new ArrayList<Integer>(glyphCount); in testSubsetGlyphs()
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 in testSubsetGlyphs()
[all...]
/third_party/skia/include/core/
H A DSkFont.h86 /** If true, instructs the font manager to always hint glyphs.
89 @return true if all glyphs are hinted
93 /** Returns true if font engine may return glyphs from font bitmaps instead of from outlines.
95 @return true if glyphs may be font bitmaps
99 /** Returns true if glyphs may be drawn at sub-pixel offsets.
101 @return true if glyphs may be drawn at sub-pixel offsets.
125 /** Sets whether to always hint glyphs.
126 If forceAutoHinting is set, instructs the font manager to always hint glyphs.
130 @param forceAutoHinting setting to always hint glyphs
140 /** Requests, but does not require, that glyphs respec
366 getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[]) const getWidths() argument
371 getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], std::nullptr_t) const getWidths() argument
384 getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[]) const getWidths() argument
412 getBounds(const SkGlyphID glyphs[], int count, SkRect bounds[], const SkPaint* paint) const getBounds() argument
[all...]
/third_party/skia/docs/examples/
H A DCanvas_drawTextBlob.cpp11 uint16_t glyphs[len]; in REG_FIDDLE() local
13 paint.textToGlyphs(bunny, len, glyphs); in REG_FIDDLE()
23 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen); in REG_FIDDLE()
25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr); in REG_FIDDLE()
H A DTextBlob_uniqueID.cpp12 uint16_t glyphs[len]; in REG_FIDDLE() local
14 paint.textToGlyphs(bunny, len, glyphs); in REG_FIDDLE()
27 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen); in REG_FIDDLE()
28 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr); in REG_FIDDLE()
H A DTextBlob_bounds.cpp11 uint16_t glyphs[len]; in REG_FIDDLE() local
13 paint.textToGlyphs(bunny, len, glyphs); in REG_FIDDLE()
24 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen); in REG_FIDDLE()
25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr); in REG_FIDDLE()
H A DPaint_textToGlyphs.cpp10 std::vector<SkGlyphID> glyphs; in REG_FIDDLE() local
12 glyphs.resize(count); in REG_FIDDLE()
13 (void) paint.textToGlyphs(utf8, sizeof(utf8), &glyphs.front()); in REG_FIDDLE()
16 canvas->drawText(&glyphs.front(), glyphs.size() * sizeof(SkGlyphID), 10, 40, paint); in REG_FIDDLE()
H A DText_Encoding.cpp18 uint16_t glyphs[SK_ARRAY_COUNT(hello32)]; in REG_FIDDLE() local
19 paint.textToGlyphs(hello32, sizeof(hello32), glyphs); in REG_FIDDLE()
21 canvas->drawText(glyphs, sizeof(glyphs), 10, 120, paint); in REG_FIDDLE()
H A DTextBlob_Deserialize.cpp14 uint16_t glyphs[6]; in REG_FIDDLE() local
16 blobPaint.textToGlyphs("Hacker", 6, glyphs); in REG_FIDDLE()
17 memcpy((char*)data->writable_data() + 0x54, glyphs, sizeof(glyphs)); in REG_FIDDLE()
/third_party/skia/third_party/externals/harfbuzz/src/
H A 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_trac in serialize()
[all...]
H A Dhb-ot-layout-common.hh92 hb_sorted_vector_t<HBGlyphID16> &glyphs,
541 bool intersects (const hb_set_t *glyphs) const in intersects()
542 { return glyphs->intersects (first, last); } in intersects()
545 bool collect_coverage (set_t *glyphs) const in collect_coverage()
546 { return glyphs->add_range (first, last); } in collect_coverage()
1439 bool serialize (hb_serialize_context_t *c, Iterator glyphs) in serialize()
1442 return_trace (glyphArray.serialize (c, glyphs)); in serialize()
1451 bool intersects (const hb_set_t *glyphs) const in intersects()
1455 if (glyphs->has (g)) in intersects()
1459 bool intersects_coverage (const hb_set_t *glyphs, unsigne in intersects()
1870 ClassDef_remap_and_serialize(hb_serialize_context_t *c, const hb_map_t &gid_klass_map, hb_sorted_vector_t<HBGlyphID16> &glyphs, const hb_set_t &klasses, bool use_class_zero, hb_map_t *klass_map ) ClassDef_remap_and_serialize() argument
1966 hb_sorted_vector_t<HBGlyphID16> glyphs; subset() local
2184 hb_sorted_vector_t<HBGlyphID16> glyphs; subset() local
[all...]
H A Dhb-ot-layout-gsubgpos.hh48 return_t dispatch (const T &obj) { return obj.intersects (this->glyphs); } in dispatch()
52 const hb_set_t *glyphs; member
55 glyphs (glyphs_) {} in hb_intersects_context_t()
104 /* Have we visited this lookup with the current set of glyphs? */ in is_lookup_done()
105 if (done_lookups_glyph_count->get (lookup_index) != glyphs->get_population ()) in is_lookup_done()
107 done_lookups_glyph_count->set (lookup_index, glyphs->get_population ()); in is_lookup_done()
135 return glyphs; in parent_active_glyphs()
155 hb_set_t *glyphs; member
169 glyphs (glyphs_), in hb_closure_context_t()
186 hb_set_del_range (output, face->get_num_glyphs (), HB_SET_VALUE_INVALID); /* Remove invalid glyphs in flush()
243 const hb_set_t *glyphs; global() member
277 const hb_codepoint_t *glyphs; global() member
837 intersects_glyph(const hb_set_t *glyphs, const HBUINT16 &value, const void *data HB_UNUSED) intersects_glyph() argument
841 intersects_class(const hb_set_t *glyphs, const HBUINT16 &value, const void *data) intersects_class() argument
846 intersects_coverage(const hb_set_t *glyphs, const HBUINT16 &value, const void *data) intersects_coverage() argument
858 intersected_class_glyphs(const hb_set_t *glyphs, const void *data, unsigned value, hb_set_t *intersected_glyphs) intersected_class_glyphs() argument
863 intersected_coverage_glyphs(const hb_set_t *glyphs, const void *data, unsigned value, hb_set_t *intersected_glyphs) intersected_coverage_glyphs() argument
871 array_is_subset_of(const hb_set_t *glyphs, unsigned int count, const HBUINT16 values[], intersects_func_t intersects_func, const void *intersects_data) array_is_subset_of() argument
883 collect_glyph(hb_set_t *glyphs, const HBUINT16 &value, const void *data HB_UNUSED) collect_glyph() argument
887 collect_class(hb_set_t *glyphs, const HBUINT16 &value, const void *data) collect_class() argument
892 collect_coverage(hb_set_t *glyphs, const HBUINT16 &value, const void *data) collect_coverage() argument
897 collect_array(hb_collect_glyphs_context_t *c HB_UNUSED, hb_set_t *glyphs, unsigned int count, const HBUINT16 values[], collect_glyphs_func_t collect_func, const void *collect_data) collect_array() argument
1488 context_intersects(const hb_set_t *glyphs, unsigned int inputCount, const HBUINT16 input[], ContextClosureLookupContext &lookup_context) context_intersects() argument
[all...]
H A Dtest-gsub-would-substitute.cc61 hb_codepoint_t glyphs[2]; in main() local
62 if (!hb_font_glyph_from_string (font, argv[3], -1, &glyphs[0]) || in main()
64 !hb_font_glyph_from_string (font, argv[4], -1, &glyphs[1]))) in main()
66 return !hb_ot_layout_lookup_would_substitute (face, strtol (argv[2], nullptr, 0), glyphs, len, false); in main()
/third_party/skia/third_party/externals/harfbuzz/util/
H A 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/skia/third_party/externals/harfbuzz/test/api/
H A 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[ in test_buffer_contents()
390 hb_glyph_info_t *glyphs; test_buffer_utf8_conversion() local
680 hb_glyph_info_t *glyphs; test_buffer_utf8_validity() local
739 hb_glyph_info_t *glyphs; test_buffer_utf16_conversion() local
793 hb_glyph_info_t *glyphs; test_buffer_utf32_conversion() local
[all...]
H A Dtest-shape.c77 hb_glyph_info_t *glyphs; in test_font() local
87 glyphs = hb_buffer_get_glyph_infos (buffer, NULL); in test_font()
97 g_assert_cmphex (glyphs[i].codepoint, ==, output_glyphs[i]); in test_font()
98 g_assert_cmphex (glyphs[i].cluster, ==, i); in test_font()
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()
/third_party/cups-filters/fontembed/
H A Dsfnt_subset.c70 // include components (set bit in >glyphs) of currently loaded compound glyph (with >curgid)
72 static int otf_subset_glyf(OTF_FILE *otf,int curgid,int donegid,BITSET glyphs) // {{{ in otf_subset_glyf() argument
86 if (!bit_check(glyphs,sub_gid)) { in otf_subset_glyf()
90 bit_set(glyphs,sub_gid); in otf_subset_glyf()
93 ret+=otf_subset_glyf(otf,sub_gid,donegid,glyphs); // composite of composites?, e.g. in DejaVu in otf_subset_glyf()
118 int otf_subset(OTF_FILE *otf,BITSET glyphs,OUTPUT_FN output,void *context) // {{{ - returns number of bytes written in otf_subset() argument
121 assert(glyphs); in otf_subset()
126 // first pass: include all required glyphs in otf_subset()
127 bit_set(glyphs,0); // .notdef always required in otf_subset()
134 if (glyphs[ in otf_subset()
225 otf_subset_cff(OTF_FILE *otf,BITSET glyphs,OUTPUT_FN output,void *context) otf_subset_cff() argument
[all...]
/third_party/skia/samplecode/
H A DSampleChineseFling.cpp80 SkUnichar glyphs[kWordLength]; variable
82 this->createRandomWord(glyphs);
86 (const char*)glyphs,
98 void createRandomWord(SkUnichar glyphs[kWordLength]) { in createRandomWord() argument
100 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomWord()
192 SkUnichar glyphs[45]; variable
199 this->createRandomLine(glyphs, currentLineLength);
202 (const char*)glyphs,
216 void createRandomLine(SkUnichar glyphs[45], int lineLength) { in createRandomLine() argument
218 glyphs[ in createRandomLine()
[all...]
/third_party/skia/modules/skparagraph/src/
H A DOneLineShaper.cpp191 auto glyphs = resolvedBlock.fGlyphs; in finish() local
195 lastTextEnd, text.start, text.end, glyphs.start, glyphs.end); in finish()
210 auto runAdvance = SkVector::Make(run->posX(glyphs.end) - run->posX(glyphs.start), run->fAdvance.fY); in finish()
215 glyphs.width(), in finish()
231 SkPoint zero = {run->fPositions[glyphs.start].fX, 0}; in finish()
232 for (size_t i = glyphs.start; i <= glyphs.end; ++i) { in finish()
234 auto index = i - glyphs in finish()
793 clusteredText(GlyphRange& glyphs) global() argument
[all...]
/third_party/skia/third_party/externals/sfntly/cpp/src/sample/subsetter/
H A Dsubset_util.cc67 IntegerList glyphs; in Subset()
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()

Completed in 18 milliseconds

12345678910