Home
last modified time | relevance | path

Searched refs:glyph_count (Results 1 - 25 of 29) sorted by relevance

12

/third_party/skia/third_party/externals/sfntly/cpp/src/sample/chromium/
H A Dfont_subsetter.cc25 size_t glyph_count, in SubsetFont()
29 glyph_ids == NULL || glyph_count == 0) { in SubsetFont()
38 return subsetter.SubsetFont(glyph_ids, glyph_count, output_buffer); in SubsetFont()
45 size_t glyph_count, in SubsetFont()
49 glyph_ids == NULL || glyph_count == 0) { in SubsetFont()
58 return subsetter.SubsetFont(glyph_ids, glyph_count, output_buffer); in SubsetFont()
21 SubsetFont(const char* font_name, const unsigned char* original_font, size_t font_size, const unsigned int* glyph_ids, size_t glyph_count, unsigned char** output_buffer) SubsetFont() argument
41 SubsetFont(int font_index, const unsigned char* original_font, size_t font_size, const unsigned int* glyph_ids, size_t glyph_count, unsigned char** output_buffer) SubsetFont() argument
H A Dfont_subsetter.h41 // |glyph_count| Number of glyph IDs in |glyph_ids|
47 size_t glyph_count,
65 // |glyph_count| Number of glyph IDs in |glyph_ids|
71 size_t glyph_count,
H A Dsubsetter_impl.h64 size_t glyph_count,
H A Dsubsetter_impl.cc167 size_t glyph_count, in ResolveCompositeGlyphs()
170 glyph_ids == NULL || glyph_count == 0 || glyph_id_processed == NULL) { in ResolveCompositeGlyphs()
177 for (size_t i = 0; i < glyph_count; ++i) { in ResolveCompositeGlyphs()
662 size_t glyph_count, in SubsetFont()
679 glyph_ids, glyph_count, &glyph_id_processed) || in SubsetFont()
164 ResolveCompositeGlyphs(GlyphTable* glyph_table, LocaTable* loca_table, const unsigned int* glyph_ids, size_t glyph_count, IntegerSet* glyph_id_processed) ResolveCompositeGlyphs() argument
661 SubsetFont(const unsigned int* glyph_ids, size_t glyph_count, unsigned char** output_buffer) SubsetFont() argument
/third_party/skia/third_party/externals/freetype/src/otvalid/
H A Dotvalid.h44 FT_UInt glyph_count,
49 FT_UInt glyph_count,
54 FT_UInt glyph_count,
63 FT_UInt glyph_count,
68 FT_UInt glyph_count,
H A Dotvgsub.c41 /* uses otvalid->glyph_count */
78 if ( (FT_UInt)idx >= otvalid->glyph_count ) in otv_SingleSubst_validate()
102 if ( FT_NEXT_USHORT( p ) >= otvalid->glyph_count ) in otv_SingleSubst_validate()
143 otvalid->extra1 = otvalid->glyph_count; in otv_MultipleSubst_validate()
184 otvalid->extra1 = otvalid->glyph_count; in otv_AlternateSubst_validate()
207 /* uses otvalid->glyph_count */
221 if ( LigatureGlyph >= otvalid->glyph_count ) in otv_Ligature_validate()
455 /* uses otvalid->glyph_count */
509 if ( FT_NEXT_USHORT( p ) >= otvalid->glyph_count ) in otv_ReverseChainSingleSubst_validate()
545 /* sets otvalid->glyph_count */
548 otv_GSUB_validate( FT_Bytes table, FT_UInt glyph_count, FT_Validator ftvalid ) otv_GSUB_validate() argument
[all...]
H A Dotvjstf.c173 otvalid->extra1 = otvalid->glyph_count; in otv_JstfScript_validate()
202 /* sets otvalid->glyph_count */
208 FT_UInt glyph_count, in otv_JSTF_validate()
244 otvalid->glyph_count = glyph_count; in otv_JSTF_validate()
205 otv_JSTF_validate( FT_Bytes table, FT_Bytes gsub, FT_Bytes gpos, FT_UInt glyph_count, FT_Validator ftvalid ) otv_JSTF_validate() argument
H A Dotvgdef.c178 /* sets otvalid->glyph_count */
184 FT_UInt glyph_count, in otv_GDEF_validate()
252 otvalid->glyph_count = glyph_count; in otv_GDEF_validate()
181 otv_GDEF_validate( FT_Bytes table, FT_Bytes gsub, FT_Bytes gpos, FT_UInt glyph_count, FT_Validator ftvalid ) otv_GDEF_validate() argument
H A Dotvmath.c305 if ( gid >= otvalid->glyph_count ) in otv_GlyphAssembly_validate()
341 if ( gid >= otvalid->glyph_count ) in otv_MathGlyphConstruction_validate()
413 /* sets otvalid->glyph_count */
417 FT_UInt glyph_count, in otv_MATH_validate()
440 otvalid->glyph_count = glyph_count; in otv_MATH_validate()
416 otv_MATH_validate( FT_Bytes table, FT_UInt glyph_count, FT_Validator ftvalid ) otv_MATH_validate() argument
H A Dotvcommn.c77 if ( gid >= otvalid->glyph_count ) in otv_Coverage_validate()
107 if ( End >= otvalid->glyph_count ) in otv_Coverage_validate()
255 if ( StartGlyph + GlyphCount - 1 >= otvalid->glyph_count ) in otv_ClassDef_validate()
282 if ( End >= otvalid->glyph_count ) in otv_ClassDef_validate()
H A Dotvgpos.c979 /* sets otvalid->glyph_count */
983 FT_UInt glyph_count, in otv_GPOS_validate()
1030 otvalid->glyph_count = glyph_count; in otv_GPOS_validate()
982 otv_GPOS_validate( FT_Bytes table, FT_UInt glyph_count, FT_Validator ftvalid ) otv_GPOS_validate() argument
H A Dotvcommn.h50 FT_UInt glyph_count; member
/third_party/skia/gm/
H A Dskbug_5321.cpp32 int glyph_count = font.countText(text, byteLength, SkTextEncoding::kUTF8); in DEF_SIMPLE_GM() local
35 auto rec = builder.allocRunPosH(font, glyph_count, y); in DEF_SIMPLE_GM()
36 font.textToGlyphs(text, byteLength, SkTextEncoding::kUTF8, rec.glyphs, glyph_count); in DEF_SIMPLE_GM()
38 font.getWidths(rec.glyphs, glyph_count, rec.pos); in DEF_SIMPLE_GM()
39 for (int i = 0; i < glyph_count; ++i) { in DEF_SIMPLE_GM()
H A Drsxtext.cpp39 const auto glyph_count = font.textToGlyphs(txt, strlen(txt), SkTextEncoding::kUTF8, variable
41 font.getWidths(glyphs, glyph_count, widths);
44 const auto& buf = builder.allocRunRSXform(font, glyph_count);
45 std::copy(glyphs, glyphs + glyph_count, buf.glyphs);
48 for (int i = 0; i < glyph_count; ++i) {
/third_party/skia/third_party/externals/freetype/src/autofit/
H A Dafglobal.c138 for ( i = 0; i < (FT_UInt)globals->glyph_count; i++ ) in af_face_globals_compute_style_coverage()
186 gindex < (FT_ULong)globals->glyph_count && in af_face_globals_compute_style_coverage()
197 if ( gindex < (FT_ULong)globals->glyph_count && in af_face_globals_compute_style_coverage()
215 gindex < (FT_ULong)globals->glyph_count && in af_face_globals_compute_style_coverage()
226 if ( gindex < (FT_ULong)globals->glyph_count && in af_face_globals_compute_style_coverage()
258 if ( gindex != 0 && gindex < (FT_ULong)globals->glyph_count ) in af_face_globals_compute_style_coverage()
272 for ( nn = 0; nn < globals->glyph_count; nn++ ) in af_face_globals_compute_style_coverage()
298 for ( idx = 0; idx < globals->glyph_count; idx++ ) in af_face_globals_compute_style_coverage()
346 globals->glyph_count = face->num_glyphs; in FT_LOCAL_DEF()
430 if ( gindex >= (FT_ULong)globals->glyph_count ) in FT_LOCAL_DEF()
[all...]
H A Dafglobal.h108 FT_Long glyph_count; /* same as face->num_glyphs */ member
H A Dafshaper.c378 if ( idx >= (hb_codepoint_t)globals->glyph_count ) in af_shaper_get_coverage()
/third_party/skia/third_party/externals/harfbuzz/test/fuzzing/
H A Dhb-draw-fuzzer.cc135 unsigned glyph_count = hb_face_get_glyph_count (face); in LLVMFuzzerTestOneInput() local
136 glyph_count = glyph_count > 16 ? 16 : glyph_count; in LLVMFuzzerTestOneInput()
148 volatile unsigned counter = !glyph_count; in LLVMFuzzerTestOneInput()
150 for (unsigned gid = 0; gid < glyph_count; ++gid) in LLVMFuzzerTestOneInput()
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-graphite2.cc285 unsigned int glyph_count = gr_seg_n_slots (seg); in _hb_graphite2_shape() local
286 if (unlikely (!glyph_count)) { in _hb_graphite2_shape()
293 (void) buffer->ensure (glyph_count); in _hb_graphite2_shape()
296 DIV_CEIL (sizeof (hb_codepoint_t) * glyph_count, sizeof (*scratch))) > scratch_size) in _hb_graphite2_shape()
317 ALLOCATE_ARRAY (hb_codepoint_t, gids, glyph_count); in _hb_graphite2_shape()
394 buffer->len = glyph_count; in _hb_graphite2_shape()
H A Dmain.cc49 unsigned glyph_count = hb_face_get_glyph_count (face); in svg_dump() local
51 for (unsigned glyph_id = 0; glyph_id < glyph_count; ++glyph_id) in svg_dump()
79 unsigned glyph_count = hb_face_get_glyph_count (face); in png_dump() local
85 for (sample_glyph_id = 0; sample_glyph_id < glyph_count; ++sample_glyph_id) in png_dump()
105 for (unsigned glyph_id = 0; glyph_id < glyph_count; ++glyph_id) in png_dump()
H A Dhb-ot-color-cbdt-table.hh156 bool sanitize (hb_sanitize_context_t *c, unsigned int glyph_count) const in sanitize()
160 offsetArrayZ.sanitize (c, glyph_count + 1)); in sanitize()
199 bool sanitize (hb_sanitize_context_t *c, unsigned int glyph_count) const in sanitize()
205 case 1: return_trace (u.format1.sanitize (c, glyph_count)); in sanitize()
206 case 3: return_trace (u.format3.sanitize (c, glyph_count)); in sanitize()
H A Dhb-face.h132 unsigned int glyph_count);
H A Dhb-face.cc493 * @glyph_count: The glyph-count value to assign
501 unsigned int glyph_count) in hb_face_set_glyph_count()
506 face->num_glyphs.set_relaxed (glyph_count); in hb_face_set_glyph_count()
500 hb_face_set_glyph_count(hb_face_t *face, unsigned int glyph_count) hb_face_set_glyph_count() argument
H A Dhb-ot-layout-common.hh1944 unsigned glyph_count = glyph_max - glyph_min + 1; in serialize() local
1947 if (unlikely (!classValue.serialize (c, glyph_count))) return_trace (false); in serialize()
1986 unsigned glyph_count = glyph_filter in subset() local
1989 use_class_zero = use_class_zero && glyph_count <= gid_org_klass_map.get_population (); in subset()
2205 unsigned glyph_count = glyph_filter in subset() local
2208 use_class_zero = use_class_zero && glyph_count <= gid_org_klass_map.get_population (); in subset()
/third_party/skia/tests/
H A DSerializationTest.cpp848 int glyph_count = 5; in DEF_TEST() local
849 const auto& run = builder.allocRun(font, glyph_count, 1.2f, 2.3f); in DEF_TEST()
851 std::fill(run.glyphs, run.glyphs + glyph_count, 0); in DEF_TEST()

Completed in 23 milliseconds

12