Home
last modified time | relevance | path

Searched refs:glyph_count (Results 1 – 25 of 32) sorted by relevance

12

/third_party/skia/third_party/externals/sfntly/cpp/src/sample/chromium/
Dfont_subsetter.cc25 size_t glyph_count, in SubsetFont() argument
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() argument
49 glyph_ids == NULL || glyph_count == 0) { in SubsetFont()
58 return subsetter.SubsetFont(glyph_ids, glyph_count, output_buffer); in SubsetFont()
Dfont_subsetter.h47 size_t glyph_count,
71 size_t glyph_count,
Dsubsetter_impl.h64 size_t glyph_count,
Dsubsetter_impl.cc167 size_t glyph_count, in ResolveCompositeGlyphs() argument
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() argument
679 glyph_ids, glyph_count, &glyph_id_processed) || in SubsetFont()
/third_party/skia/third_party/externals/freetype/src/otvalid/
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,
Dotvgsub.c78 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()
221 if ( LigatureGlyph >= otvalid->glyph_count ) in otv_Ligature_validate()
509 if ( FT_NEXT_USHORT( p ) >= otvalid->glyph_count ) in otv_ReverseChainSingleSubst_validate()
549 FT_UInt glyph_count, in otv_GSUB_validate() argument
596 otvalid->glyph_count = glyph_count; in otv_GSUB_validate()
Dotvjstf.c173 otvalid->extra1 = otvalid->glyph_count; in otv_JstfScript_validate()
208 FT_UInt glyph_count, in otv_JSTF_validate() argument
244 otvalid->glyph_count = glyph_count; in otv_JSTF_validate()
Dotvmath.c305 if ( gid >= otvalid->glyph_count ) in otv_GlyphAssembly_validate()
341 if ( gid >= otvalid->glyph_count ) in otv_MathGlyphConstruction_validate()
417 FT_UInt glyph_count, in otv_MATH_validate() argument
440 otvalid->glyph_count = glyph_count; in otv_MATH_validate()
Dotvgdef.c184 FT_UInt glyph_count, in otv_GDEF_validate() argument
252 otvalid->glyph_count = glyph_count; in otv_GDEF_validate()
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()
Dotvgpos.c983 FT_UInt glyph_count, in otv_GPOS_validate() argument
1030 otvalid->glyph_count = glyph_count; in otv_GPOS_validate()
Dotvcommn.h50 FT_UInt glyph_count; member
/third_party/skia/gm/
Dskbug_5321.cpp32 int glyph_count = font.countText(text, byteLength, SkTextEncoding::kUTF8); variable
35 auto rec = builder.allocRunPosH(font, glyph_count, y);
36 font.textToGlyphs(text, byteLength, SkTextEncoding::kUTF8, rec.glyphs, glyph_count);
38 font.getWidths(rec.glyphs, glyph_count, rec.pos);
39 for (int i = 0; i < glyph_count; ++i) {
Drsxtext.cpp39 const auto glyph_count = font.textToGlyphs(txt, strlen(txt), SkTextEncoding::kUTF8, in onOnceBeforeDraw() local
41 font.getWidths(glyphs, glyph_count, widths); in onOnceBeforeDraw()
44 const auto& buf = builder.allocRunRSXform(font, glyph_count); in onOnceBeforeDraw()
45 std::copy(glyphs, glyphs + glyph_count, buf.glyphs); in onOnceBeforeDraw()
48 for (int i = 0; i < glyph_count; ++i) { in onOnceBeforeDraw()
/third_party/skia/third_party/externals/freetype/src/autofit/
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 af_face_globals_new()
430 if ( gindex >= (FT_ULong)globals->glyph_count ) in af_face_globals_get_metrics()
[all …]
Dafglobal.h108 FT_Long glyph_count; /* same as face->num_glyphs */ member
Dafshaper.c378 if ( idx >= (hb_codepoint_t)globals->glyph_count ) in af_shaper_get_coverage()
/third_party/skia/third_party/externals/harfbuzz/test/fuzzing/
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/
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()
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()
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()
Dhb-face.h132 unsigned int glyph_count);
Dhb-face.cc501 unsigned int glyph_count) in hb_face_set_glyph_count() argument
506 face->num_glyphs.set_relaxed (glyph_count); in hb_face_set_glyph_count()
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/
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()

12