zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ftcbasic.c File Reference
#include <ft2build.h>
#include <FT_INTERNAL_OBJECTS_H>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_CACHE_H>
#include "ftcglyph.h"
#include "ftcimage.h"
#include "ftcsbits.h"
#include "ftccback.h"
#include "ftcerror.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_cache
 
#define FTC_BASIC_ATTR_COMPARE(a, b)
 
#define FTC_BASIC_ATTR_HASH(a)   ( FTC_SCALER_HASH( &(a)->scaler ) + 31*(a)->load_flags )
 

Typedefs

typedef struct FTC_BasicAttrRec_ FTC_BasicAttrRec
 
typedef struct FTC_BasicAttrRec_ * FTC_BasicAttrs
 
typedef struct
FTC_BasicFamilyRec_ * 
FTC_BasicFamily
 
typedef struct FTC_BasicFamilyRec_ FTC_BasicFamilyRec
 
typedef struct FTC_BasicQueryRec_ * FTC_BasicQuery
 
typedef struct FTC_BasicQueryRec_ FTC_BasicQueryRec
 

Functions

 ftc_basic_family_compare (FTC_MruNode ftcfamily, FT_Pointer ftcquery)
 
 ftc_basic_family_get_count (FTC_Family ftcfamily, FTC_Manager manager)
 
 ftc_basic_family_init (FTC_MruNode ftcfamily, FT_Pointer ftcquery, FT_Pointer ftccache)
 
 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_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_ImageCache_New (FTC_Manager manager, FTC_ImageCache *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)
 
 FTC_SBitCache_New (FTC_Manager manager, FTC_SBitCache *acache)
 

Variables

FT_CALLBACK_TABLE_DEF const
FTC_GCacheClassRec 
ftc_basic_image_cache_class
 
FT_CALLBACK_TABLE_DEF const
FTC_IFamilyClassRec 
ftc_basic_image_family_class
 
FT_CALLBACK_TABLE_DEF const
FTC_GCacheClassRec 
ftc_basic_sbit_cache_class
 
FT_CALLBACK_TABLE_DEF const
FTC_SFamilyClassRec 
ftc_basic_sbit_family_class
 

Macro Definition Documentation

#define FT_COMPONENT   trace_cache

Definition at line 30 of file ftcbasic.c.

#define FTC_BASIC_ATTR_COMPARE (   a,
  b 
)
Value:
FT_BOOL( FTC_SCALER_COMPARE( &(a)->scaler, &(b)->scaler ) && \
(a)->load_flags == (b)->load_flags )
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
#define FTC_SCALER_COMPARE(a, b)
Definition: ftcmanag.h:154
#define FT_BOOL(x)
Definition: fttypes.h:581
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 82 of file ftcbasic.c.

Referenced by ftc_basic_family_compare().

#define FTC_BASIC_ATTR_HASH (   a)    ( FTC_SCALER_HASH( &(a)->scaler ) + 31*(a)->load_flags )

Typedef Documentation

typedef struct FTC_BasicAttrRec_ FTC_BasicAttrRec
typedef struct FTC_BasicAttrRec_ * FTC_BasicAttrs
typedef struct FTC_BasicFamilyRec_ * FTC_BasicFamily
typedef struct FTC_BasicFamilyRec_ FTC_BasicFamilyRec
typedef struct FTC_BasicQueryRec_ * FTC_BasicQuery
typedef struct FTC_BasicQueryRec_ FTC_BasicQueryRec

Function Documentation

ftc_basic_family_compare ( FTC_MruNode  ftcfamily,
FT_Pointer  ftcquery 
)
ftc_basic_family_get_count ( FTC_Family  ftcfamily,
FTC_Manager  manager 
)
ftc_basic_family_init ( FTC_MruNode  ftcfamily,
FT_Pointer  ftcquery,
FT_Pointer  ftccache 
)

Definition at line 119 of file ftcbasic.c.

References FTC_FAMILY, and FTC_Family_Init().

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_LookupScaler ( FTC_ImageCache  cache,
FTC_Scaler  scaler,
FT_ULong  load_flags,
FT_UInt  gindex,
FT_Glyph aglyph,
FTC_Node anode 
)
FTC_ImageCache_New ( FTC_Manager  manager,
FTC_ImageCache acache 
)

Definition at line 305 of file ftcbasic.c.

References FTC_GCache_New().

FTC_SBitCache_LookupScaler ( FTC_SBitCache  cache,
FTC_Scaler  scaler,
FT_ULong  load_flags,
FT_UInt  gindex,
FTC_SBit ansbit,
FTC_Node anode 
)
FTC_SBitCache_New ( FTC_Manager  manager,
FTC_SBitCache acache 
)

Definition at line 643 of file ftcbasic.c.

References FTC_GCache_New().

Variable Documentation

FT_CALLBACK_TABLE_DEF const FTC_GCacheClassRec ftc_basic_image_cache_class
Initial value:
=
{
{
sizeof ( FTC_GCacheRec ),
},
}
ftc_gnode_compare(FTC_Node gnode, FT_Pointer gquery, FTC_Cache cache, FT_Bool *list_changed)
Definition: ftcglyph.c:66
struct FTC_GCacheRec_ FTC_GCacheRec
FT_CALLBACK_TABLE_DEF const FTC_IFamilyClassRec ftc_basic_image_family_class
Definition: ftcbasic.c:271
ftc_inode_free(FTC_Node inode, FTC_Cache cache)
Definition: ftcimage.c:30
ftc_inode_weight(FTC_Node inode, FTC_Cache cache)
Definition: ftcimage.c:107
ftc_basic_gnode_compare_faceid(FTC_Node ftcgnode, FT_Pointer ftcface_id, FTC_Cache cache, FT_Bool *list_changed)
Definition: ftcbasic.c:239
ftc_inode_new(FTC_Node *pinode, FT_Pointer gquery, FTC_Cache cache)
Definition: ftcimage.c:94
ftc_gcache_done(FTC_Cache cache)
Definition: ftcglyph.c:153
ftc_gcache_init(FTC_Cache cache)
Definition: ftcglyph.c:119
struct FTC_MruListClassRec_ const * FTC_MruListClass
Definition: ftcmru.h:86

Definition at line 285 of file ftcbasic.c.

FT_CALLBACK_TABLE_DEF const FTC_IFamilyClassRec ftc_basic_image_family_class
Initial value:
=
{
{
sizeof ( FTC_BasicFamilyRec ),
0,
0
},
}
ftc_basic_family_compare(FTC_MruNode ftcfamily, FT_Pointer ftcquery)
Definition: ftcbasic.c:107
struct FTC_BasicFamilyRec_ FTC_BasicFamilyRec
ftc_basic_family_init(FTC_MruNode ftcfamily, FT_Pointer ftcquery, FT_Pointer ftccache)
Definition: ftcbasic.c:119
ftc_basic_family_load_glyph(FTC_Family ftcfamily, FT_UInt gindex, FTC_Cache cache, FT_Glyph *aglyph)
Definition: ftcbasic.c:191

Definition at line 271 of file ftcbasic.c.

FT_CALLBACK_TABLE_DEF const FTC_GCacheClassRec ftc_basic_sbit_cache_class
Initial value:
=
{
{
sizeof ( FTC_GCacheRec ),
},
}
struct FTC_GCacheRec_ FTC_GCacheRec
ftc_snode_weight(FTC_Node snode, FTC_Cache cache)
Definition: ftcsbits.c:279
ftc_snode_compare(FTC_Node snode, FT_Pointer gquery, FTC_Cache cache, FT_Bool *list_changed)
Definition: ftcsbits.c:325
ftc_snode_new(FTC_Node *psnode, FT_Pointer gquery, FTC_Cache cache)
Definition: ftcsbits.c:266
ftc_basic_gnode_compare_faceid(FTC_Node ftcgnode, FT_Pointer ftcface_id, FTC_Cache cache, FT_Bool *list_changed)
Definition: ftcbasic.c:239
ftc_gcache_done(FTC_Cache cache)
Definition: ftcglyph.c:153
ftc_snode_free(FTC_Node snode, FTC_Cache cache)
Definition: ftcsbits.c:65
ftc_gcache_init(FTC_Cache cache)
Definition: ftcglyph.c:119
struct FTC_MruListClassRec_ const * FTC_MruListClass
Definition: ftcmru.h:86
FT_CALLBACK_TABLE_DEF const FTC_SFamilyClassRec ftc_basic_sbit_family_class
Definition: ftcbasic.c:608

Definition at line 623 of file ftcbasic.c.

FT_CALLBACK_TABLE_DEF const FTC_SFamilyClassRec ftc_basic_sbit_family_class
Initial value:
=
{
{
sizeof ( FTC_BasicFamilyRec ),
0,
0
},
}
ftc_basic_family_get_count(FTC_Family ftcfamily, FTC_Manager manager)
Definition: ftcbasic.c:135
ftc_basic_family_load_bitmap(FTC_Family ftcfamily, FT_UInt gindex, FTC_Manager manager, FT_Face *aface)
Definition: ftcbasic.c:164
ftc_basic_family_compare(FTC_MruNode ftcfamily, FT_Pointer ftcquery)
Definition: ftcbasic.c:107
struct FTC_BasicFamilyRec_ FTC_BasicFamilyRec
ftc_basic_family_init(FTC_MruNode ftcfamily, FT_Pointer ftcquery, FT_Pointer ftccache)
Definition: ftcbasic.c:119

Definition at line 608 of file ftcbasic.c.