Home
last modified time | relevance | path

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

123

/external/freetype/src/sfnt/
Dttpost.c163 FT_Int num_glyphs; in load_format_20() local
170 if ( FT_READ_USHORT( num_glyphs ) ) in load_format_20()
179 if ( num_glyphs > face->max_profile.numGlyphs ) in load_format_20()
190 if ( FT_NEW_ARRAY ( glyph_indices, num_glyphs ) || in load_format_20()
191 FT_FRAME_ENTER( num_glyphs * 2L ) ) in load_format_20()
194 for ( n = 0; n < num_glyphs; n++ ) in load_format_20()
207 for ( n = 0; n < num_glyphs; n++ ) in load_format_20()
282 table->num_glyphs = (FT_UShort)num_glyphs; in load_format_20()
315 FT_Int num_glyphs; in load_format_25() local
322 if ( FT_READ_USHORT( num_glyphs ) ) in load_format_25()
[all …]
Dttsbit0.c885 FT_ULong mm, num_glyphs; in tt_sbit_decoder_load_image() local
891 num_glyphs = FT_NEXT_ULONG( p ); in tt_sbit_decoder_load_image()
894 if ( p + ( num_glyphs + 1 ) * 4 < p ) in tt_sbit_decoder_load_image()
897 if ( p + ( num_glyphs + 1 ) * 4 > p_limit ) in tt_sbit_decoder_load_image()
900 for ( mm = 0; mm < num_glyphs; mm++ ) in tt_sbit_decoder_load_image()
915 if ( mm >= num_glyphs ) in tt_sbit_decoder_load_image()
922 FT_ULong image_size, mm, num_glyphs; in tt_sbit_decoder_load_image() local
933 num_glyphs = FT_NEXT_ULONG( p ); in tt_sbit_decoder_load_image()
936 if ( p + 2 * num_glyphs < p ) in tt_sbit_decoder_load_image()
939 if ( p + 2 * num_glyphs > p_limit ) in tt_sbit_decoder_load_image()
[all …]
Dttsbit.c285 range->num_glyphs = count; in Load_SBit_Range_Codes()
348 FT_ULong num_glyphs, n; in Load_SBit_Range() local
360 num_glyphs = range->last_glyph - range->first_glyph + 1L; in Load_SBit_Range()
361 range->num_glyphs = num_glyphs; in Load_SBit_Range()
362 num_glyphs++; /* XXX: BEWARE - see spec */ in Load_SBit_Range()
366 if ( FT_NEW_ARRAY( range->glyph_offsets, num_glyphs ) || in Load_SBit_Range()
367 FT_FRAME_ENTER( num_glyphs * size_elem ) ) in Load_SBit_Range()
370 for ( n = 0; n < num_glyphs; n++ ) in Load_SBit_Range()
755 for ( n = 0; n < range->num_glyphs; n++ ) in find_sbit_range()
Dttcmap.h102 FT_UInt num_glyphs; member
108 #define TT_VALID_GLYPH_COUNT( x ) TT_VALIDATOR( x )->num_glyphs
Dsfdriver.c179 if ( root->num_glyphs < 0 ) in sfnt_get_name_index()
181 else if ( ( FT_ULong ) root->num_glyphs < FT_UINT_MAX ) in sfnt_get_name_index()
182 max_gid = ( FT_UInt ) root->num_glyphs; in sfnt_get_name_index()
185 FT_UINT_MAX, root->num_glyphs )); in sfnt_get_name_index()
/external/freetype/src/cff/
Dcffload.c665 FT_UInt num_glyphs, in CFF_Load_FD_Select() argument
684 fdselect->data_size = num_glyphs; in CFF_Load_FD_Select()
780 FT_UInt num_glyphs, in cff_charset_compute_cids() argument
792 for ( i = 0; i < num_glyphs; i++ ) in cff_charset_compute_cids()
804 for ( j = num_glyphs - 1; j >= 0 ; j-- ) in cff_charset_compute_cids()
808 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids()
855 FT_UInt num_glyphs, in cff_charset_load() argument
881 if ( FT_NEW_ARRAY( charset->sids, num_glyphs ) ) in cff_charset_load()
890 if ( num_glyphs > 0 ) in cff_charset_load()
892 if ( FT_FRAME_ENTER( ( num_glyphs - 1 ) * 2 ) ) in cff_charset_load()
[all …]
Dcfftypes.h100 FT_UInt num_glyphs; member
224 FT_UInt num_glyphs; member
/external/harfbuzz/src/
Dharfbuzz-tibetan.c109 const int availableGlyphs = item->num_glyphs; in tibetan_shape_syllable()
114 if (item->num_glyphs < item->item.length + 4) { in tibetan_shape_syllable()
115 item->num_glyphs = item->item.length + 4; in tibetan_shape_syllable()
128 item->glyphs, &item->num_glyphs, in tibetan_shape_syllable()
235 syllable.num_glyphs = item->num_glyphs - first_glyph; in HB_TibetanShape()
237 item->num_glyphs += syllable.num_glyphs; in HB_TibetanShape()
244 first_glyph += syllable.num_glyphs; in HB_TibetanShape()
246 item->num_glyphs = first_glyph; in HB_TibetanShape()
Dharfbuzz-hangul.c144 const int availableGlyphs = item->num_glyphs; in hangul_shape_syllable()
176 item->glyphs, &item->num_glyphs, in hangul_shape_syllable()
250 syllable.num_glyphs = item->num_glyphs - first_glyph; in HB_HangulShape()
252 item->num_glyphs += syllable.num_glyphs; in HB_HangulShape()
259 first_glyph += syllable.num_glyphs; in HB_HangulShape()
261 item->num_glyphs = first_glyph; in HB_HangulShape()
Dharfbuzz-khmer.c370 const int availableGlyphs = item->num_glyphs; in khmer_shape_syllable()
542 item->glyphs, &item->num_glyphs, in khmer_shape_syllable()
622 syllable.num_glyphs = item->num_glyphs - first_glyph; in HB_KhmerShape()
624 KHDEBUG("syllable shaping failed, syllable requests %d glyphs", syllable.num_glyphs); in HB_KhmerShape()
625 item->num_glyphs += syllable.num_glyphs; in HB_KhmerShape()
630 for (i = first_glyph; i < first_glyph + (int)syllable.num_glyphs; ++i) in HB_KhmerShape()
638 first_glyph += syllable.num_glyphs; in HB_KhmerShape()
640 item->num_glyphs = first_glyph; in HB_KhmerShape()
Dharfbuzz-myanmar.c262 const int availableGlyphs = item->num_glyphs; in myanmar_shape_syllable()
410 item->glyphs, &item->num_glyphs, in myanmar_shape_syllable()
489 syllable.num_glyphs = item->num_glyphs - first_glyph; in HB_MyanmarShape()
491 MMDEBUG("syllable shaping failed, syllable requests %d glyphs", syllable.num_glyphs); in HB_MyanmarShape()
492 item->num_glyphs += syllable.num_glyphs; in HB_MyanmarShape()
498 for (i = first_glyph; i < first_glyph + (int)syllable.num_glyphs; ++i) in HB_MyanmarShape()
506 first_glyph += syllable.num_glyphs; in HB_MyanmarShape()
508 item->num_glyphs = first_glyph; in HB_MyanmarShape()
Dharfbuzz-hebrew.c62 const int availableGlyphs = shaper_item->num_glyphs; in HB_HebrewShape()
174 shaper_item->glyphs, &shaper_item->num_glyphs, in HB_HebrewShape()
Dharfbuzz-gdef.c788 HB_UShort num_glyphs, in HB_GDEF_Build_ClassDefinition() argument
922 if ( gcrr[count - 1].End != num_glyphs - 1 ) in HB_GDEF_Build_ClassDefinition()
925 ( num_glyphs - gcrr[count - 1].End + 2 ) / 4, in HB_GDEF_Build_ClassDefinition()
930 else if ( num_glyphs > 0 ) in HB_GDEF_Build_ClassDefinition()
933 ( num_glyphs + 3 ) / 4, in HB_GDEF_Build_ClassDefinition()
938 gdef->LastGlyph = num_glyphs - 1; in HB_GDEF_Build_ClassDefinition()
/external/harfbuzz/tests/shaping/
Dmain.cpp235 shaper_item.num_glyphs = shaper_item.item.length; in shaping()
239 QVarLengthArray<HB_Glyph> hb_glyphs(shaper_item.num_glyphs); in shaping()
240 QVarLengthArray<HB_GlyphAttributes> hb_attributes(shaper_item.num_glyphs); in shaping()
241 QVarLengthArray<HB_Fixed> hb_advances(shaper_item.num_glyphs); in shaping()
242 QVarLengthArray<HB_FixedPoint> hb_offsets(shaper_item.num_glyphs); in shaping()
243 QVarLengthArray<unsigned short> hb_logClusters(shaper_item.num_glyphs); in shaping()
246 hb_glyphs.resize(shaper_item.num_glyphs); in shaping()
247 hb_attributes.resize(shaper_item.num_glyphs); in shaping()
248 hb_advances.resize(shaper_item.num_glyphs); in shaping()
249 hb_offsets.resize(shaper_item.num_glyphs); in shaping()
[all …]
/external/freetype/src/psaux/
Dt1cmap.c42 cmap->num_glyphs = 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()
284 face->type1.num_glyphs, in t1_cmap_unicode_init()
Dt1cmap.h47 FT_UInt num_glyphs; member
/external/webkit/Source/WebCore/platform/graphics/chromium/
DComplexTextControllerLinux.cpp249 m_item.num_glyphs = size; in createGlyphArrays()
256 int size = m_item.num_glyphs; in resetGlyphArrays()
273 m_item.num_glyphs = m_glyphsArrayCapacity; in shapeGlyphs()
283 createGlyphArrays(m_item.num_glyphs + 1); in shapeGlyphs()
298 for (size_t i = 0; i < m_item.num_glyphs; ++i) { in setGlyphXPositions()
317 if (i + 1 == m_item.num_glyphs || m_item.attributes[i + 1].clusterStart) in setGlyphXPositions()
/external/skia/src/core/
DSkAdvancedTypefaceMetrics.cpp125 int num_glyphs, in getAdvanceData() argument
156 int lastIndex = num_glyphs; in getAdvanceData()
257 int num_glyphs,
264 int num_glyphs,
271 int num_glyphs,
/external/freetype/src/psnames/
Dpsmodule.c301 FT_UInt num_glyphs, in ps_unicodes_init() argument
316 if ( !FT_NEW_ARRAY( table->maps, num_glyphs + EXTRA_GLYPH_LIST_SIZE ) ) in ps_unicodes_init()
326 for ( n = 0; n < num_glyphs; n++ ) in ps_unicodes_init()
377 if ( count < num_glyphs / 2 ) in ps_unicodes_init()
379 (void)FT_RENEW_ARRAY( table->maps, num_glyphs, count ); in ps_unicodes_init()
/external/freetype/src/truetype/
Dttpload.c113 if ( face->num_locations != (FT_ULong)face->root.num_glyphs + 1 ) in tt_face_load_loca()
116 face->num_locations - 1, face->root.num_glyphs )); in tt_face_load_loca()
119 if ( face->num_locations <= (FT_ULong)face->root.num_glyphs ) in tt_face_load_loca()
122 ( (FT_Long)( face->root.num_glyphs ) + 1 ) << shift; in tt_face_load_loca()
149 face->num_locations = face->root.num_glyphs + 1; in tt_face_load_loca()
/external/webkit/Source/WebCore/platform/graphics/pango/
DGlyphPageTreeNodePango.cpp60 if (glyphs->num_glyphs == 1) in pango_font_get_glyph()
63 g_warning("didn't get 1 glyph but %d", glyphs->num_glyphs); in pango_font_get_glyph()
/external/freetype/src/base/
Dftadvanc.c81 if ( gindex >= (FT_UInt)face->num_glyphs ) in FT_Get_Advance()
119 num = (FT_UInt)face->num_glyphs; in FT_Get_Advances()
/external/webkit/Source/WebCore/platform/graphics/android/fonts/
DFontAndroid.cpp436 unsigned length() const { return m_item.num_glyphs; } in length()
831 m_item.num_glyphs = size; in createGlyphArrays()
837 int size = m_item.num_glyphs; in resetGlyphArrays()
854 m_item.num_glyphs = m_glyphsArrayCapacity; in shapeGlyphs()
860 createGlyphArrays(m_item.num_glyphs << 1); in shapeGlyphs()
872 unsigned logClustersIndex = isRTL && m_item.num_glyphs ? m_item.num_glyphs - 1 : 0; in setGlyphPositions()
874 for (unsigned iter = 0; iter < m_item.num_glyphs; ++iter) { in setGlyphPositions()
877 int i = isRTL ? m_item.num_glyphs - iter - 1 : iter; in setGlyphPositions()
/external/freetype/include/freetype/internal/
Dtttypes.h600 FT_ULong num_glyphs; member
769 FT_UShort num_glyphs; member
794 FT_UShort num_glyphs; member
/external/skia/src/ports/
DSkFontHost_FreeType.cpp323 if (!face || start >= face->num_glyphs || in getAdvances()
324 start + count > face->num_glyphs || loadFlags != FT_LOAD_NO_SCALE) { in getAdvances()
407 glyphToUnicode->setCount(face->num_glyphs); in populate_glyph_to_unicode()
409 sizeof(SkUnichar) * face->num_glyphs); in populate_glyph_to_unicode()
450 info->fLastGlyphID = face->num_glyphs - 1; in GetAdvancedTypefaceMetrics()
558 for (int gID = 0; gID < face->num_glyphs; gID += 128) { in GetAdvancedTypefaceMetrics()
561 if (gID + advanceCount > face->num_glyphs) in GetAdvancedTypefaceMetrics()
562 advanceCount = face->num_glyphs - gID + 1; in GetAdvancedTypefaceMetrics()
570 finishRange(info->fGlyphWidths.get(), face->num_glyphs - 1, in GetAdvancedTypefaceMetrics()
575 face->num_glyphs, in GetAdvancedTypefaceMetrics()
[all …]

123