ReactOS  0.4.14-dev-41-g31d7680
ftserv.h File Reference

Go to the source code of this file.

Classes

struct  FT_ServiceDescRec_
 
struct  FT_ServiceCacheRec_
 

Macros

#define FT_FACE_FIND_SERVICE(face, ptr, id)
 
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
 
#define FT_DEFINE_SERVICEDESCREC1(class_, serv_id_1, serv_data_1)
 
#define FT_DEFINE_SERVICEDESCREC2(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2)
 
#define FT_DEFINE_SERVICEDESCREC3(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3)
 
#define FT_DEFINE_SERVICEDESCREC4(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4)
 
#define FT_DEFINE_SERVICEDESCREC5(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5)
 
#define FT_DEFINE_SERVICEDESCREC6(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5, serv_id_6, serv_data_6)
 
#define FT_DEFINE_SERVICEDESCREC7(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5, serv_id_6, serv_data_6, serv_id_7, serv_data_7)
 
#define FT_DEFINE_SERVICEDESCREC8(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5, serv_id_6, serv_data_6, serv_id_7, serv_data_7, serv_id_8, serv_data_8)
 
#define FT_DEFINE_SERVICEDESCREC9(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5, serv_id_6, serv_data_6, serv_id_7, serv_data_7, serv_id_8, serv_data_8, serv_id_9, serv_data_9)
 
#define FT_DEFINE_SERVICEDESCREC10(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5, serv_id_6, serv_data_6, serv_id_7, serv_data_7, serv_id_8, serv_data_8, serv_id_9, serv_data_9, serv_id_10, serv_data_10)
 
#define FT_SERVICE_UNAVAILABLE   ((FT_Pointer)~(FT_PtrDist)1)
 
#define FT_FACE_LOOKUP_SERVICE(face, ptr, id)
 
#define FT_DEFINE_SERVICE(name)
 
#define FT_SERVICE_BDF_H   <freetype/internal/services/svbdf.h>
 
#define FT_SERVICE_CFF_TABLE_LOAD_H   <freetype/internal/services/svcfftl.h>
 
#define FT_SERVICE_CID_H   <freetype/internal/services/svcid.h>
 
#define FT_SERVICE_FONT_FORMAT_H   <freetype/internal/services/svfntfmt.h>
 
#define FT_SERVICE_GLYPH_DICT_H   <freetype/internal/services/svgldict.h>
 
#define FT_SERVICE_GX_VALIDATE_H   <freetype/internal/services/svgxval.h>
 
#define FT_SERVICE_KERNING_H   <freetype/internal/services/svkern.h>
 
#define FT_SERVICE_METRICS_VARIATIONS_H   <freetype/internal/services/svmetric.h>
 
#define FT_SERVICE_MULTIPLE_MASTERS_H   <freetype/internal/services/svmm.h>
 
#define FT_SERVICE_OPENTYPE_VALIDATE_H   <freetype/internal/services/svotval.h>
 
#define FT_SERVICE_PFR_H   <freetype/internal/services/svpfr.h>
 
#define FT_SERVICE_POSTSCRIPT_CMAPS_H   <freetype/internal/services/svpscmap.h>
 
#define FT_SERVICE_POSTSCRIPT_INFO_H   <freetype/internal/services/svpsinfo.h>
 
#define FT_SERVICE_POSTSCRIPT_NAME_H   <freetype/internal/services/svpostnm.h>
 
#define FT_SERVICE_PROPERTIES_H   <freetype/internal/services/svprop.h>
 
#define FT_SERVICE_SFNT_H   <freetype/internal/services/svsfnt.h>
 
#define FT_SERVICE_TRUETYPE_ENGINE_H   <freetype/internal/services/svtteng.h>
 
#define FT_SERVICE_TRUETYPE_GLYF_H   <freetype/internal/services/svttglyf.h>
 
#define FT_SERVICE_TT_CMAP_H   <freetype/internal/services/svttcmap.h>
 
#define FT_SERVICE_WINFNT_H   <freetype/internal/services/svwinfnt.h>
 

Typedefs

typedef struct FT_ServiceDescRec_ FT_ServiceDescRec
 
typedef const FT_ServiceDescRecFT_ServiceDesc
 
typedef struct FT_ServiceCacheRec_ FT_ServiceCacheRec
 
typedef struct FT_ServiceCacheRec_FT_ServiceCache
 

Functions

 ft_service_list_lookup (FT_ServiceDesc service_descriptors, const char *service_id)
 

Macro Definition Documentation

◆ FT_DEFINE_SERVICE

#define FT_DEFINE_SERVICE (   name)
Value:
typedef struct FT_Service_ ## name ## Rec_ \
FT_Service_ ## name ## Rec ; \
typedef struct FT_Service_ ## name ## Rec_ \
const * FT_Service_ ## name ; \
struct FT_Service_ ## name ## Rec_
Definition: name.c:36
#define const
Definition: zconf.h:230
GLuint const GLchar * name
Definition: glext.h:6031

Definition at line 975 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC1

#define FT_DEFINE_SERVICEDESCREC1 (   class_,
  serv_id_1,
  serv_data_1 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 189 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC10

#define FT_DEFINE_SERVICEDESCREC10 (   class_,
  serv_id_1,
  serv_data_1,
  serv_id_2,
  serv_data_2,
  serv_id_3,
  serv_data_3,
  serv_id_4,
  serv_data_4,
  serv_id_5,
  serv_data_5,
  serv_id_6,
  serv_data_6,
  serv_id_7,
  serv_data_7,
  serv_id_8,
  serv_data_8,
  serv_id_9,
  serv_data_9,
  serv_id_10,
  serv_data_10 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ serv_id_2, serv_data_2 }, \
{ serv_id_3, serv_data_3 }, \
{ serv_id_4, serv_data_4 }, \
{ serv_id_5, serv_data_5 }, \
{ serv_id_6, serv_data_6 }, \
{ serv_id_7, serv_data_7 }, \
{ serv_id_8, serv_data_8 }, \
{ serv_id_9, serv_data_9 }, \
{ serv_id_10, serv_data_10 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 333 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC2

#define FT_DEFINE_SERVICEDESCREC2 (   class_,
  serv_id_1,
  serv_data_1,
  serv_id_2,
  serv_data_2 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ serv_id_2, serv_data_2 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 197 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC3

#define FT_DEFINE_SERVICEDESCREC3 (   class_,
  serv_id_1,
  serv_data_1,
  serv_id_2,
  serv_data_2,
  serv_id_3,
  serv_data_3 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ serv_id_2, serv_data_2 }, \
{ serv_id_3, serv_data_3 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 207 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC4

#define FT_DEFINE_SERVICEDESCREC4 (   class_,
  serv_id_1,
  serv_data_1,
  serv_id_2,
  serv_data_2,
  serv_id_3,
  serv_data_3,
  serv_id_4,
  serv_data_4 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ serv_id_2, serv_data_2 }, \
{ serv_id_3, serv_data_3 }, \
{ serv_id_4, serv_data_4 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 219 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC5

#define FT_DEFINE_SERVICEDESCREC5 (   class_,
  serv_id_1,
  serv_data_1,
  serv_id_2,
  serv_data_2,
  serv_id_3,
  serv_data_3,
  serv_id_4,
  serv_data_4,
  serv_id_5,
  serv_data_5 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ serv_id_2, serv_data_2 }, \
{ serv_id_3, serv_data_3 }, \
{ serv_id_4, serv_data_4 }, \
{ serv_id_5, serv_data_5 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 233 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC6

#define FT_DEFINE_SERVICEDESCREC6 (   class_,
  serv_id_1,
  serv_data_1,
  serv_id_2,
  serv_data_2,
  serv_id_3,
  serv_data_3,
  serv_id_4,
  serv_data_4,
  serv_id_5,
  serv_data_5,
  serv_id_6,
  serv_data_6 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ serv_id_2, serv_data_2 }, \
{ serv_id_3, serv_data_3 }, \
{ serv_id_4, serv_data_4 }, \
{ serv_id_5, serv_data_5 }, \
{ serv_id_6, serv_data_6 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 249 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC7

#define FT_DEFINE_SERVICEDESCREC7 (   class_,
  serv_id_1,
  serv_data_1,
  serv_id_2,
  serv_data_2,
  serv_id_3,
  serv_data_3,
  serv_id_4,
  serv_data_4,
  serv_id_5,
  serv_data_5,
  serv_id_6,
  serv_data_6,
  serv_id_7,
  serv_data_7 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ serv_id_2, serv_data_2 }, \
{ serv_id_3, serv_data_3 }, \
{ serv_id_4, serv_data_4 }, \
{ serv_id_5, serv_data_5 }, \
{ serv_id_6, serv_data_6 }, \
{ serv_id_7, serv_data_7 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 267 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC8

#define FT_DEFINE_SERVICEDESCREC8 (   class_,
  serv_id_1,
  serv_data_1,
  serv_id_2,
  serv_data_2,
  serv_id_3,
  serv_data_3,
  serv_id_4,
  serv_data_4,
  serv_id_5,
  serv_data_5,
  serv_id_6,
  serv_data_6,
  serv_id_7,
  serv_data_7,
  serv_id_8,
  serv_data_8 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ serv_id_2, serv_data_2 }, \
{ serv_id_3, serv_data_3 }, \
{ serv_id_4, serv_data_4 }, \
{ serv_id_5, serv_data_5 }, \
{ serv_id_6, serv_data_6 }, \
{ serv_id_7, serv_data_7 }, \
{ serv_id_8, serv_data_8 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 287 of file ftserv.h.

◆ FT_DEFINE_SERVICEDESCREC9

#define FT_DEFINE_SERVICEDESCREC9 (   class_,
  serv_id_1,
  serv_data_1,
  serv_id_2,
  serv_data_2,
  serv_id_3,
  serv_data_3,
  serv_id_4,
  serv_data_4,
  serv_id_5,
  serv_data_5,
  serv_id_6,
  serv_data_6,
  serv_id_7,
  serv_data_7,
  serv_id_8,
  serv_data_8,
  serv_id_9,
  serv_data_9 
)
Value:
static const FT_ServiceDescRec class_[] = \
{ \
{ serv_id_1, serv_data_1 }, \
{ serv_id_2, serv_data_2 }, \
{ serv_id_3, serv_data_3 }, \
{ serv_id_4, serv_data_4 }, \
{ serv_id_5, serv_data_5 }, \
{ serv_id_6, serv_data_6 }, \
{ serv_id_7, serv_data_7 }, \
{ serv_id_8, serv_data_8 }, \
{ serv_id_9, serv_data_9 }, \
{ NULL, NULL } \
};
smooth NULL
Definition: ftsmooth.c:416

Definition at line 309 of file ftserv.h.

◆ FT_FACE_FIND_GLOBAL_SERVICE

#define FT_FACE_FIND_GLOBAL_SERVICE (   face,
  ptr,
  id 
)
Value:
FT_BEGIN_STMNT \
FT_Module module = FT_MODULE( FT_FACE( face )->driver ); \
FT_Pointer _tmp_; \
\
\
_tmp_ = ft_module_get_service( module, FT_SERVICE_ID_ ## id, 1 ); \
ptr = _tmp_; \
FT_END_STMNT
#define FT_MODULE(x)
Definition: ftobjs.h:543
ft_module_get_service(FT_Module module, const char *service_id, FT_Bool global)
Definition: ftobjs.c:4880
struct @1605::@1606 driver
#define FT_FACE(x)
Definition: ftobjs.h:630
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Definition at line 125 of file ftserv.h.

◆ FT_FACE_FIND_SERVICE

#define FT_FACE_FIND_SERVICE (   face,
  ptr,
  id 
)
Value:
FT_BEGIN_STMNT \
FT_Module module = FT_MODULE( FT_FACE( face )->driver ); \
FT_Pointer _tmp_ = NULL; \
if ( module->clazz->get_interface ) \
_tmp_ = module->clazz->get_interface( module, FT_SERVICE_ID_ ## id ); \
ptr = _tmp_; \
FT_END_STMNT
#define FT_MODULE(x)
Definition: ftobjs.h:543
struct @1605::@1606 driver
smooth NULL
Definition: ftsmooth.c:416
if(!(yy_init))
Definition: macro.lex.yy.c:714
#define FT_FACE(x)
Definition: ftobjs.h:630
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Definition at line 75 of file ftserv.h.

◆ FT_FACE_LOOKUP_SERVICE

#define FT_FACE_LOOKUP_SERVICE (   face,
  ptr,
  id 
)
Value:
FT_BEGIN_STMNT \
FT_Pointer svc; \
\
\
svc = FT_FACE( face )->internal->services. service_ ## id; \
if ( svc == FT_SERVICE_UNAVAILABLE ) \
svc = NULL; \
else if ( svc == NULL ) \
{ \
FT_FACE_FIND_SERVICE( face, svc, id ); \
FT_FACE( face )->internal->services. service_ ## id = \
(FT_Pointer)( svc != NULL ? svc \
} \
ptr = svc; \
FT_END_STMNT
smooth NULL
Definition: ftsmooth.c:416
void * FT_Pointer
Definition: fttypes.h:311
#define FT_FACE(x)
Definition: ftobjs.h:630
GLenum GLuint id
Definition: glext.h:5579
#define FT_SERVICE_UNAVAILABLE
Definition: ftserv.h:901
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Definition at line 950 of file ftserv.h.

◆ FT_SERVICE_BDF_H

#define FT_SERVICE_BDF_H   <freetype/internal/services/svbdf.h>

Definition at line 988 of file ftserv.h.

◆ FT_SERVICE_CFF_TABLE_LOAD_H

#define FT_SERVICE_CFF_TABLE_LOAD_H   <freetype/internal/services/svcfftl.h>

Definition at line 989 of file ftserv.h.

◆ FT_SERVICE_CID_H

#define FT_SERVICE_CID_H   <freetype/internal/services/svcid.h>

Definition at line 990 of file ftserv.h.

◆ FT_SERVICE_FONT_FORMAT_H

#define FT_SERVICE_FONT_FORMAT_H   <freetype/internal/services/svfntfmt.h>

Definition at line 991 of file ftserv.h.

◆ FT_SERVICE_GLYPH_DICT_H

#define FT_SERVICE_GLYPH_DICT_H   <freetype/internal/services/svgldict.h>

Definition at line 992 of file ftserv.h.

◆ FT_SERVICE_GX_VALIDATE_H

#define FT_SERVICE_GX_VALIDATE_H   <freetype/internal/services/svgxval.h>

Definition at line 993 of file ftserv.h.

◆ FT_SERVICE_KERNING_H

#define FT_SERVICE_KERNING_H   <freetype/internal/services/svkern.h>

Definition at line 994 of file ftserv.h.

◆ FT_SERVICE_METRICS_VARIATIONS_H

#define FT_SERVICE_METRICS_VARIATIONS_H   <freetype/internal/services/svmetric.h>

Definition at line 995 of file ftserv.h.

◆ FT_SERVICE_MULTIPLE_MASTERS_H

#define FT_SERVICE_MULTIPLE_MASTERS_H   <freetype/internal/services/svmm.h>

Definition at line 996 of file ftserv.h.

◆ FT_SERVICE_OPENTYPE_VALIDATE_H

#define FT_SERVICE_OPENTYPE_VALIDATE_H   <freetype/internal/services/svotval.h>

Definition at line 997 of file ftserv.h.

◆ FT_SERVICE_PFR_H

#define FT_SERVICE_PFR_H   <freetype/internal/services/svpfr.h>

Definition at line 998 of file ftserv.h.

◆ FT_SERVICE_POSTSCRIPT_CMAPS_H

#define FT_SERVICE_POSTSCRIPT_CMAPS_H   <freetype/internal/services/svpscmap.h>

Definition at line 999 of file ftserv.h.

◆ FT_SERVICE_POSTSCRIPT_INFO_H

#define FT_SERVICE_POSTSCRIPT_INFO_H   <freetype/internal/services/svpsinfo.h>

Definition at line 1000 of file ftserv.h.

◆ FT_SERVICE_POSTSCRIPT_NAME_H

#define FT_SERVICE_POSTSCRIPT_NAME_H   <freetype/internal/services/svpostnm.h>

Definition at line 1001 of file ftserv.h.

◆ FT_SERVICE_PROPERTIES_H

#define FT_SERVICE_PROPERTIES_H   <freetype/internal/services/svprop.h>

Definition at line 1002 of file ftserv.h.

◆ FT_SERVICE_SFNT_H

#define FT_SERVICE_SFNT_H   <freetype/internal/services/svsfnt.h>

Definition at line 1003 of file ftserv.h.

◆ FT_SERVICE_TRUETYPE_ENGINE_H

#define FT_SERVICE_TRUETYPE_ENGINE_H   <freetype/internal/services/svtteng.h>

Definition at line 1004 of file ftserv.h.

◆ FT_SERVICE_TRUETYPE_GLYF_H

#define FT_SERVICE_TRUETYPE_GLYF_H   <freetype/internal/services/svttglyf.h>

Definition at line 1005 of file ftserv.h.

◆ FT_SERVICE_TT_CMAP_H

#define FT_SERVICE_TT_CMAP_H   <freetype/internal/services/svttcmap.h>

Definition at line 1006 of file ftserv.h.

◆ FT_SERVICE_UNAVAILABLE

#define FT_SERVICE_UNAVAILABLE   ((FT_Pointer)~(FT_PtrDist)1)

Definition at line 901 of file ftserv.h.

◆ FT_SERVICE_WINFNT_H

#define FT_SERVICE_WINFNT_H   <freetype/internal/services/svwinfnt.h>

Definition at line 1007 of file ftserv.h.

Typedef Documentation

◆ FT_ServiceCache

◆ FT_ServiceCacheRec

◆ FT_ServiceDesc

Definition at line 157 of file ftserv.h.

◆ FT_ServiceDescRec

Function Documentation

◆ ft_service_list_lookup()

ft_service_list_lookup ( FT_ServiceDesc  service_descriptors,
const char service_id 
)

Definition at line 98 of file ftobjs.c.

100  {
102  FT_ServiceDesc desc = service_descriptors;
103 
104 
105  if ( desc && service_id )
106  {
107  for ( ; desc->serv_id != NULL; desc++ )
108  {
109  if ( ft_strcmp( desc->serv_id, service_id ) == 0 )
110  {
111  result = (FT_Pointer)desc->serv_data;
112  break;
113  }
114  }
115  }
116 
117  return result;
118  }
const struct builtin_class_descr * desc
Definition: regcontrol.c:48
smooth NULL
Definition: ftsmooth.c:416
void * FT_Pointer
Definition: fttypes.h:311
GLuint64EXT * result
Definition: glext.h:11304
#define ft_strcmp
Definition: ftstdlib.h:86

Referenced by af_get_interface(), bdf_driver_requester(), cff_get_interface(), cid_get_interface(), Get_Interface(), gxvalid_get_service(), otvalid_get_service(), pcf_driver_requester(), pfr_get_service(), T42_Get_Interface(), tt_get_interface(), and winfnt_get_service().