Home
last modified time | relevance | path

Searched refs:num_glyphs (Results 1 – 25 of 119) sorted by relevance

12345

/external/freetype/src/sfnt/
Dttpost.c166 FT_Int num_glyphs; in load_format_20() local
173 if ( FT_READ_USHORT( num_glyphs ) ) in load_format_20()
182 if ( num_glyphs > face->max_profile.numGlyphs ) in load_format_20()
193 if ( FT_NEW_ARRAY ( glyph_indices, num_glyphs ) || in load_format_20()
194 FT_FRAME_ENTER( num_glyphs * 2L ) ) in load_format_20()
197 for ( n = 0; n < num_glyphs; n++ ) in load_format_20()
210 for ( n = 0; n < num_glyphs; n++ ) in load_format_20()
288 table->num_glyphs = (FT_UShort)num_glyphs; in load_format_20()
321 FT_Int num_glyphs; in load_format_25() local
327 if ( FT_READ_USHORT( num_glyphs ) ) in load_format_25()
[all …]
Dsfwoff2.c848 FT_UShort num_glyphs; in reconstruct_glyf() local
874 if ( FT_READ_USHORT( num_glyphs ) ) in reconstruct_glyf()
880 num_glyphs, index_format )); in reconstruct_glyf()
882 info->num_glyphs = num_glyphs; in reconstruct_glyf()
889 ( (FT_ULong)num_glyphs + 1 ); in reconstruct_glyf()
916 if ( FT_NEW_ARRAY( loca_values, num_glyphs + 1 ) ) in reconstruct_glyf()
923 bitmap_length = ( ( num_glyphs + 31U ) >> 5 ) << 2; in reconstruct_glyf()
930 if ( FT_NEW_ARRAY( info->x_mins, num_glyphs ) ) in reconstruct_glyf()
933 for ( i = 0; i < num_glyphs; ++i ) in reconstruct_glyf()
1208 loca_values[num_glyphs] = info->glyf_table->dst_length; in reconstruct_glyf()
[all …]
/external/freetype/src/otvalid/
Dotvmod.c84 FT_UInt num_glyphs = (FT_UInt)face->num_glyphs; in otv_validate() local
95 if ( face->num_glyphs > 0xFFFFL ) in otv_validate()
98 face->num_glyphs )); in otv_validate()
100 num_glyphs = 0xFFFF; in otv_validate()
163 otv_GPOS_validate( gpos, num_glyphs, &valid ); in otv_validate()
173 otv_GSUB_validate( gsub, num_glyphs, &valid ); in otv_validate()
183 otv_GDEF_validate( gdef, gsub, gpos, num_glyphs, &valid ); in otv_validate()
193 otv_JSTF_validate( jstf, gsub, gpos, num_glyphs, &valid ); in otv_validate()
203 otv_MATH_validate( math, num_glyphs, &valid ); in otv_validate()
/external/sfntly/cpp/src/sfntly/table/core/
Dhorizontal_device_metrics_table.cc75 int32_t num_glyphs) in HorizontalDeviceMetricsTable() argument
76 : Table(header, data), num_glyphs_(num_glyphs) { in HorizontalDeviceMetricsTable()
101 void HorizontalDeviceMetricsTable::Builder::SetNumGlyphs(int32_t num_glyphs) { in SetNumGlyphs() argument
102 if (num_glyphs < 0) { in SetNumGlyphs()
108 num_glyphs_ = num_glyphs; in SetNumGlyphs()
112 table->num_glyphs_ = num_glyphs; in SetNumGlyphs()
Dhorizontal_metrics_table.cc87 int32_t num_glyphs) in HorizontalMetricsTable() argument
90 num_glyphs_(num_glyphs) { in HorizontalMetricsTable()
130 void HorizontalMetricsTable::Builder::SetNumGlyphs(int32_t num_glyphs) { in SetNumGlyphs() argument
131 assert(num_glyphs >= 0); in SetNumGlyphs()
132 num_glyphs_ = num_glyphs; in SetNumGlyphs()
135 table->num_glyphs_ = num_glyphs; in SetNumGlyphs()
/external/harfbuzz_ng/src/
Dhb-ot-cff1-table.hh327 bool sanitize (hb_sanitize_context_t *c, unsigned int num_glyphs) const in sanitize()
330 return_trace (c->check_struct (this) && sids[num_glyphs - 1].sanitize (c)); in sanitize()
341 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
346 for (unsigned int glyph = 1; glyph < num_glyphs; glyph++) in get_glyph()
354 unsigned int get_size (unsigned int num_glyphs) const in get_size()
356 assert (num_glyphs > 0); in get_size()
357 return HBUINT16::static_size * (num_glyphs - 1); in get_size()
381 bool sanitize (hb_sanitize_context_t *c, unsigned int num_glyphs) const in sanitize()
386 num_glyphs--; in sanitize()
387 for (unsigned int i = 0; num_glyphs > 0; i++) in sanitize()
[all …]
Dhb-subset-cff-common.cc154 const unsigned int num_glyphs, in serialize_fdselect_3_4() argument
168 p->sentinel () = num_glyphs; in serialize_fdselect_3_4()
178 const unsigned int num_glyphs, in hb_serialize_cff_fdselect() argument
200 for (unsigned int i = 0; i < num_glyphs; i++) in hb_serialize_cff_fdselect()
214 return serialize_fdselect_3_4<FDSelect3> (c, num_glyphs, src, in hb_serialize_cff_fdselect()
218 return serialize_fdselect_3_4<FDSelect4> (c, num_glyphs, src, in hb_serialize_cff_fdselect()
Dhb-ot-shape-complex-arabic-fallback.hh54 unsigned int num_glyphs = 0; in arabic_fallback_synthesize_lookup_single() local
69 glyphs[num_glyphs] = u_glyph; in arabic_fallback_synthesize_lookup_single()
70 substitutes[num_glyphs] = s_glyph; in arabic_fallback_synthesize_lookup_single()
72 num_glyphs++; in arabic_fallback_synthesize_lookup_single()
75 if (!num_glyphs) in arabic_fallback_synthesize_lookup_single()
80 hb_stable_sort (&glyphs[0], num_glyphs, in arabic_fallback_synthesize_lookup_single()
91 hb_sorted_array (glyphs, num_glyphs), in arabic_fallback_synthesize_lookup_single()
92 hb_array (substitutes, num_glyphs)); in arabic_fallback_synthesize_lookup_single()
Dhb-aat-layout-common.hh51 const T* get_value (hb_codepoint_t glyph_id, unsigned int num_glyphs) const in get_value()
53 if (unlikely (glyph_id >= num_glyphs)) return nullptr; in get_value()
342 const T* get_value (hb_codepoint_t glyph_id, unsigned int num_glyphs) const in get_value()
345 case 0: return u.format0.get_value (glyph_id, num_glyphs); in get_value()
354 const typename T::type get_value_or_null (hb_codepoint_t glyph_id, unsigned int num_glyphs) const in get_value_or_null()
360 const T *v = get_value (glyph_id, num_glyphs); in get_value_or_null()
366 unsigned int num_glyphs, in get_class()
369 const T *v = get_value (glyph_id, num_glyphs); in get_class()
501 unsigned int get_class (hb_codepoint_t glyph_id, unsigned int num_glyphs) const in get_class()
504 return (this+classTable).get_class (glyph_id, num_glyphs, 1); in get_class()
[all …]
Dhb-ot-cff2-table.hh54 bool serialize (hb_serialize_context_t *c, const CFF2FDSelect &src, unsigned int num_glyphs) in serialize()
57 unsigned int size = src.get_size (num_glyphs); in serialize()
64 unsigned int calculate_serialized_size (unsigned int num_glyphs) const in calculate_serialized_size()
65 { return get_size (num_glyphs); } in calculate_serialized_size()
67 unsigned int get_size (unsigned int num_glyphs) const in get_size()
71 case 0: return format.static_size + u.format0.get_size (num_glyphs); in get_size()
466 num_glyphs = charStrings->count; in init()
467 if (num_glyphs != sc.get_num_glyphs ()) in init()
528 unsigned int num_glyphs; member
Dhb-ot-color-sbix-table.hh77 unsigned int num_glyphs, in get_glyph_blob()
88 if (unlikely (glyph_id >= num_glyphs || in get_glyph_blob()
144 num_glyphs = face->get_num_glyphs (); in init()
167 num_glyphs, available_ppem); in reference_png()
267 unsigned int num_glyphs; member
Dhb-subset-plan.cc82 unsigned int num_glyphs) in _remove_invalid_gids() argument
87 if (gid >= num_glyphs) in _remove_invalid_gids()
156 unsigned int *num_glyphs /* OUT */) in _create_old_gid_to_new_gid_map() argument
163 *num_glyphs = reverse_glyph_map->get_population (); in _create_old_gid_to_new_gid_map()
176 *num_glyphs = max_glyph + 1; in _create_old_gid_to_new_gid_map()
Dhb-aat-layout-ankr-table.hh65 unsigned int num_glyphs) const in get_anchor()
67 const NNOffsetTo<GlyphAnchors> *offset = (this+lookupTable).get_value (glyph_id, num_glyphs); in get_anchor()
/external/freetype/src/cff/
Dcffload.c706 FT_UInt num_glyphs, in CFF_Load_FD_Select() argument
725 fdselect->data_size = num_glyphs; in CFF_Load_FD_Select()
834 FT_UInt num_glyphs, in cff_charset_compute_cids() argument
846 for ( i = 0; i < num_glyphs; i++ ) in cff_charset_compute_cids()
858 for ( j = (FT_Long)num_glyphs - 1; j >= 0; j-- ) in cff_charset_compute_cids()
862 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids()
909 FT_UInt num_glyphs, in cff_charset_load() argument
935 if ( FT_NEW_ARRAY( charset->sids, num_glyphs ) ) in cff_charset_load()
944 if ( num_glyphs > 0 ) in cff_charset_load()
946 if ( FT_FRAME_ENTER( ( num_glyphs - 1 ) * 2 ) ) in cff_charset_load()
[all …]
/external/harfbuzz_ng/util/
Dhelper-cairo.hh56 unsigned int num_glyphs; member
73 *x_advance = glyphs[num_glyphs].x; in get_advance()
74 *y_advance = glyphs[num_glyphs].y; in get_advance()
Dhelper-cairo.cc483 l->num_glyphs = hb_buffer_get_length (buffer); in helper_cairo_line_from_buffer()
486 l->glyphs = cairo_glyph_allocate (l->num_glyphs + 1); in helper_cairo_line_from_buffer()
491 l->num_clusters = l->num_glyphs ? 1 : 0; in helper_cairo_line_from_buffer()
492 for (unsigned int i = 1; i < l->num_glyphs; i++) in helper_cairo_line_from_buffer()
498 if ((l->num_glyphs && !l->glyphs) || in helper_cairo_line_from_buffer()
508 for (i = 0; i < (int) l->num_glyphs; i++) in helper_cairo_line_from_buffer()
528 l->clusters[cluster].num_glyphs++; in helper_cairo_line_from_buffer()
530 for (i = l->num_glyphs - 2; i >= 0; i--) { in helper_cairo_line_from_buffer()
541 l->clusters[cluster].num_glyphs++; in helper_cairo_line_from_buffer()
545 for (i = 1; i < (int) l->num_glyphs; i++) { in helper_cairo_line_from_buffer()
[all …]
Doptions.hh221 unsigned int num_glyphs = hb_buffer_get_length (buffer); in populate_buffer() local
223 for (unsigned int i = 0; i < num_glyphs; i++) in populate_buffer()
287 unsigned int num_glyphs; in verify_buffer_monotone() local
288 hb_glyph_info_t *info = hb_buffer_get_glyph_infos (buffer, &num_glyphs); in verify_buffer_monotone()
290 for (unsigned int i = 1; i < num_glyphs; i++) in verify_buffer_monotone()
323 unsigned int num_glyphs; in verify_buffer_safe_to_break() local
324 hb_glyph_info_t *info = hb_buffer_get_glyph_infos (buffer, &num_glyphs); in verify_buffer_safe_to_break()
334 for (unsigned int end = 1; end < num_glyphs + 1; end++) in verify_buffer_safe_to_break()
336 if (end < num_glyphs && in verify_buffer_safe_to_break()
342 if (end == num_glyphs) in verify_buffer_safe_to_break()
Dview-cairo.cc107 for (unsigned i = 0; i < l.num_glyphs; i++) { 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/freetype/src/truetype/
Dttpload.c124 if ( face->num_locations != (FT_ULong)face->root.num_glyphs + 1 ) in tt_face_load_loca()
127 face->num_locations - 1, face->root.num_glyphs )); in tt_face_load_loca()
130 if ( face->num_locations <= (FT_ULong)face->root.num_glyphs ) in tt_face_load_loca()
133 ( (FT_ULong)face->root.num_glyphs + 1 ) << shift; in tt_face_load_loca()
164 face->num_locations = (FT_ULong)face->root.num_glyphs + 1; in tt_face_load_loca()
172 face->root.num_glyphs = face->num_locations in tt_face_load_loca()
176 face->root.num_glyphs )); in tt_face_load_loca()
/external/sfntly/cpp/src/sfntly/table/truetype/
Dloca_table.cc70 int32_t num_glyphs) in LocaTable() argument
73 num_glyphs_(num_glyphs) { in LocaTable()
142 void LocaTable::Builder::SetNumGlyphs(int32_t num_glyphs) { in SetNumGlyphs() argument
143 assert(num_glyphs >= 0); in SetNumGlyphs()
144 num_glyphs_ = num_glyphs; in SetNumGlyphs()
Dloca_table.h88 void SetNumGlyphs(int32_t num_glyphs);
144 int32_t num_glyphs() { return num_glyphs_; } in num_glyphs() function
171 int32_t num_glyphs);
/external/freetype/src/psaux/
Dt1cmap.c42 cmap->num_glyphs = (FT_UInt)face->type1.num_glyphs; in t1_cmap_std_init()
55 cmap->num_glyphs = 0; in t1_cmap_std_done()
80 for ( n = 0; n < cmap->num_glyphs; n++ ) in t1_cmap_std_char_index()
313 (FT_UInt)face->type1.num_glyphs, in t1_cmap_unicode_init()
/external/sfntly/cpp/src/sfntly/table/bitmap/
Dindex_sub_table_format5.cc82 int32_t num_glyphs = data->ReadULongAsInt(table_offset + in NumGlyphs() local
84 return num_glyphs; in NumGlyphs()
291 int32_t num_glyphs = IndexSubTableFormat5::NumGlyphs(data, 0); in Initialize() local
292 for (int32_t i = 0; i < num_glyphs; ++i) { in Initialize()
306 int32_t num_glyphs = IndexSubTableFormat5::NumGlyphs(data, in DataLength() local
311 num_glyphs * DataSize::kUSHORT; in DataLength()
/external/freetype/src/psnames/
Dpsmodule.c316 FT_UInt num_glyphs, in ps_unicodes_init() argument
331 if ( !FT_NEW_ARRAY( table->maps, num_glyphs + EXTRA_GLYPH_LIST_SIZE ) ) in ps_unicodes_init()
341 for ( n = 0; n < num_glyphs; n++ ) in ps_unicodes_init()
392 if ( count < num_glyphs / 2 ) in ps_unicodes_init()
395 num_glyphs + EXTRA_GLYPH_LIST_SIZE, in ps_unicodes_init()
/external/sfntly/cpp/src/sample/subtly/
Dfont_info.cc214 if (glyph_id < 0 || glyph_id > loca_table_->num_glyphs()) { in ResolveCompositeGlyphs()
217 loca_table_->num_glyphs()); in ResolveCompositeGlyphs()
243 int32_t num_glyphs = composite_glyph->NumGlyphs(); in ResolveCompositeGlyphs() local
244 for (int32_t i = 0; i < num_glyphs; ++i) { in ResolveCompositeGlyphs()

12345