Go to the source code of this file.
|
| | ftc_basic_family_compare (FTC_MruNode ftcfamily, FT_Pointer ftcquery) |
| |
| | ftc_basic_family_init (FTC_MruNode ftcfamily, FT_Pointer ftcquery, FT_Pointer ftccache) |
| |
| | ftc_basic_family_get_count (FTC_Family ftcfamily, FTC_Manager manager) |
| |
| | ftc_basic_family_load_bitmap (FTC_Family ftcfamily, FT_UInt gindex, FTC_Manager manager, FT_Face *aface) |
| |
| | ftc_basic_family_load_glyph (FTC_Family ftcfamily, FT_UInt gindex, FTC_Cache cache, FT_Glyph *aglyph) |
| |
| | ftc_basic_gnode_compare_faceid (FTC_Node ftcgnode, FT_Pointer ftcface_id, FTC_Cache cache, FT_Bool *list_changed) |
| |
| | FTC_ImageCache_New (FTC_Manager manager, FTC_ImageCache *acache) |
| |
| | FTC_ImageCache_Lookup (FTC_ImageCache cache, FTC_ImageType type, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode) |
| |
| | FTC_ImageCache_LookupScaler (FTC_ImageCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode) |
| |
| | FTC_SBitCache_New (FTC_Manager manager, FTC_SBitCache *acache) |
| |
| | FTC_SBitCache_Lookup (FTC_SBitCache cache, FTC_ImageType type, FT_UInt gindex, FTC_SBit *ansbit, FTC_Node *anode) |
| |
| | FTC_SBitCache_LookupScaler (FTC_SBitCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FTC_SBit *ansbit, FTC_Node *anode) |
| |
◆ FT_COMPONENT
◆ FTC_BASIC_ATTR_COMPARE
Value:
(
a)->load_flags == (
b)->load_flags )
#define FTC_SCALER_COMPARE(a, b)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
Definition at line 43 of file ftcbasic.c.
◆ FTC_BASIC_ATTR_HASH
◆ FTC_BasicAttrRec
◆ FTC_BasicAttrs
◆ FTC_BasicFamily
◆ FTC_BasicFamilyRec
◆ FTC_BasicQuery
◆ FTC_BasicQueryRec
◆ ftc_basic_family_compare()
◆ ftc_basic_family_get_count()
Definition at line 96 of file ftcbasic.c.
98 {
103
104
107
110
112 FT_TRACE1((
"ftc_basic_family_get_count:"
113 " the number of glyphs in this face is %ld,\n"
114 " "
115 " which is too much and thus truncated\n",
117
120
122 }
FTC_Manager_LookupFace(FTC_Manager manager, FTC_FaceID face_id, FT_Face *aface)
#define FT_TRACE1(varformat)
GLenum GLuint GLint GLenum face
◆ ftc_basic_family_init()
Definition at line 80 of file ftcbasic.c.
83 {
87
88
91 return 0;
92 }
struct FTC_CacheRec_ * FTC_Cache
FTC_Family_Init(FTC_Family family, FTC_Cache cache)
◆ ftc_basic_family_load_bitmap()
Definition at line 126 of file ftcbasic.c.
130 {
134
135
138 {
140
141
144 gindex,
148 }
149
151 }
FT_Load_Glyph(FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags)
FTC_Manager_LookupSize(FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize)
◆ ftc_basic_family_load_glyph()
Definition at line 155 of file ftcbasic.c.
159 {
165
166
167
169 scaler,
172 {
174
176 gindex,
179 {
180 if (
face->glyph->format == FT_GLYPH_FORMAT_BITMAP ||
181 face->glyph->format == FT_GLYPH_FORMAT_OUTLINE )
182 {
183
185
186
189 {
190 *aglyph = glyph;
192 }
193 }
194 else
196 }
197 }
198
201 }
FT_Get_Glyph(FT_GlyphSlot slot, FT_Glyph *aglyph)
◆ ftc_basic_gnode_compare_faceid()
Definition at line 205 of file ftcbasic.c.
209 {
214
215
217 *list_changed =
FALSE;
220 {
221
222
223
225 }
227 }
FT_BEGIN_HEADER typedef FT_Pointer FTC_FaceID
FTC_GNode_UnselectFamily(FTC_GNode gnode, FTC_Cache cache)
struct FTC_GNodeRec_ * FTC_GNode
FT_BEGIN_HEADER typedef unsigned char FT_Bool
◆ FTC_ImageCache_Lookup()
Definition at line 285 of file ftcbasic.c.
290 {
295
296
297
298 if ( !aglyph )
299 {
302 }
303
305 if ( anode )
307
308
309
310
311
312
313
314#if 0xFFFFFFFFUL > FT_UINT_MAX
317 " higher bits in load_flags 0x%x are dropped\n",
319#endif
320
321 query.attrs.scaler.face_id =
type->face_id;
323 query.attrs.scaler.height =
type->height;
325
326 query.attrs.scaler.pixel = 1;
327 query.attrs.scaler.x_res = 0;
328 query.attrs.scaler.y_res = 0;
329
331
332#if 1
340#else
345#endif
347 {
349
350 if ( anode )
351 {
354 }
355 }
356
359 }
ftc_basic_family_compare(FTC_MruNode ftcfamily, FT_Pointer ftcquery)
#define FTC_BASIC_ATTR_HASH(a)
FTC_GNode_Compare(FTC_GNode gnode, FTC_GQuery gquery, FTC_Cache cache, FT_Bool *list_changed)
#define FTC_GCACHE_LOOKUP_CMP(cache, famcmp, nodecmp, hash, gindex, query, node, error)
GLuint GLuint GLsizei GLenum type
◆ FTC_ImageCache_LookupScaler()
Definition at line 365 of file ftcbasic.c.
371 {
376
377
378
379 if ( !aglyph || !scaler )
380 {
383 }
384
386 if ( anode )
388
389
390
391
392
393
394
395#if FT_ULONG_MAX > FT_UINT_MAX
397 FT_TRACE1((
"FTC_ImageCache_LookupScaler:"
398 " higher bits in load_flags 0x%lx are dropped\n",
400#endif
401
402 query.attrs.scaler = scaler[0];
404
406
415 {
417
418 if ( anode )
419 {
422 }
423 }
424
427 }
◆ FTC_ImageCache_New()
Definition at line 274 of file ftcbasic.c.
276 {
279 }
static const FTC_GCacheClassRec ftc_basic_image_cache_class
FTC_GCache_New(FTC_Manager manager, FTC_GCacheClass clazz, FTC_GCache *acache)
◆ FTC_SBitCache_Lookup()
Definition at line 485 of file ftcbasic.c.
490 {
495
496
497 if ( anode )
499
500
501 if ( !ansbit )
502 return FT_THROW( Invalid_Argument );
503
505
506
507
508
509
510
511
512#if 0xFFFFFFFFUL > FT_UINT_MAX
515 " higher bits in load_flags 0x%x are dropped\n",
517#endif
518
519 query.attrs.scaler.face_id =
type->face_id;
521 query.attrs.scaler.height =
type->height;
523
524 query.attrs.scaler.pixel = 1;
525 query.attrs.scaler.x_res = 0;
526 query.attrs.scaler.y_res = 0;
527
528
531
532#if 1
540#else
543 gindex,
546#endif
549
552
553 if ( anode )
554 {
557 }
558
561 }
FTC_SNode_Compare(FTC_SNode snode, FTC_GQuery gquery, FTC_Cache cache, FT_Bool *list_changed)
#define FTC_SBIT_ITEMS_PER_NODE
◆ FTC_SBitCache_LookupScaler()
Definition at line 567 of file ftcbasic.c.
573 {
578
579
580 if ( anode )
582
583
584 if ( !ansbit || !scaler )
585 return FT_THROW( Invalid_Argument );
586
588
589
590
591
592
593
594
595#if FT_ULONG_MAX > FT_UINT_MAX
597 FT_TRACE1((
"FTC_ImageCache_LookupScaler:"
598 " higher bits in load_flags 0x%lx are dropped\n",
600#endif
601
602 query.attrs.scaler = scaler[0];
604
605
608
618
621
622 if ( anode )
623 {
626 }
627
630 }
◆ FTC_SBitCache_New()
Definition at line 474 of file ftcbasic.c.
476 {
479 }
static const FTC_GCacheClassRec ftc_basic_sbit_cache_class
◆ ftc_basic_image_cache_class
Initial value:=
{
{
},
}
static const FTC_IFamilyClassRec ftc_basic_image_family_class
ftc_basic_gnode_compare_faceid(FTC_Node ftcgnode, FT_Pointer ftcface_id, FTC_Cache cache, FT_Bool *list_changed)
ftc_gcache_done(FTC_Cache cache)
FT_BEGIN_HEADER ftc_inode_free(FTC_Node inode, FTC_Cache cache)
ftc_inode_weight(FTC_Node inode, FTC_Cache cache)
ftc_inode_new(FTC_Node *pinode, FT_Pointer gquery, FTC_Cache cache)
ftc_gcache_init(FTC_Cache cache)
ftc_gnode_compare(FTC_Node gnode, FT_Pointer gquery, FTC_Cache cache, FT_Bool *list_changed)
struct FTC_GCacheRec_ FTC_GCacheRec
struct FTC_MruListClassRec_ const * FTC_MruListClass
Definition at line 253 of file ftcbasic.c.
Referenced by FTC_ImageCache_New().
◆ ftc_basic_image_family_class
Initial value:=
{
{
},
}
ftc_basic_family_load_glyph(FTC_Family ftcfamily, FT_UInt gindex, FTC_Cache cache, FT_Glyph *aglyph)
struct FTC_BasicFamilyRec_ FTC_BasicFamilyRec
ftc_basic_family_init(FTC_MruNode ftcfamily, FT_Pointer ftcquery, FT_Pointer ftccache)
Definition at line 237 of file ftcbasic.c.
◆ ftc_basic_sbit_cache_class
Initial value:=
{
{
},
}
static const FTC_SFamilyClassRec ftc_basic_sbit_family_class
ftc_snode_weight(FTC_Node snode, FTC_Cache cache)
ftc_snode_new(FTC_Node *psnode, FT_Pointer gquery, FTC_Cache cache)
ftc_snode_compare(FTC_Node snode, FT_Pointer gquery, FTC_Cache cache, FT_Bool *list_changed)
ftc_snode_free(FTC_Node snode, FTC_Cache cache)
Definition at line 453 of file ftcbasic.c.
Referenced by FTC_SBitCache_New().
◆ ftc_basic_sbit_family_class
Initial value:=
{
{
},
}
ftc_basic_family_get_count(FTC_Family ftcfamily, FTC_Manager manager)
ftc_basic_family_load_bitmap(FTC_Family ftcfamily, FT_UInt gindex, FTC_Manager manager, FT_Face *aface)
Definition at line 437 of file ftcbasic.c.