Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Macros | Typedefs | Functions
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_SERVICE_UNAVAILABLE   ((FT_Pointer)~1) /* magic number */
 
#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_CID_H   <freetype/internal/services/svcid.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_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_TT_CMAP_H   <freetype/internal/services/svttcmap.h>
 
#define FT_SERVICE_WINFNT_H   <freetype/internal/services/svwinfnt.h>
 
#define FT_SERVICE_XFREE86_NAME_H   <freetype/internal/services/svxf86nm.h>
 
#define FT_SERVICE_TRUETYPE_GLYF_H   <freetype/internal/services/svttglyf.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_
#define const
Definition: zconf.h:91
GLuint const GLchar * name

Definition at line 730 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 } \
};
#define NULL
Definition: ftobjs.h:61

Definition at line 196 of file ftserv.h.

Referenced by af_property_get().

◆ 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 } \
};
#define NULL
Definition: ftobjs.h:61

Definition at line 204 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 } \
};
#define NULL
Definition: ftobjs.h:61

Definition at line 214 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 } \
};
#define NULL
Definition: ftobjs.h:61

Definition at line 226 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 } \
};
#define NULL
Definition: ftobjs.h:61

Definition at line 240 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 } \
};
#define NULL
Definition: ftobjs.h:61

Definition at line 256 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 } \
};
#define NULL
Definition: ftobjs.h:61

Definition at line 274 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 ); \
ptr = _tmp_; \
FT_END_STMNT
#define FT_MODULE(x)
Definition: ftobjs.h:483
GLenum GLuint GLint GLenum face
ft_module_get_service(FT_Module module, const char *service_id)
Definition: ftobjs.c:4352
CFF_Driver driver
Definition: cffdrivr.c:585
#define FT_FACE(x)
Definition: ftobjs.h:557

Definition at line 133 of file ftserv.h.

Referenced by cff_face_init(), FT_ClassicKern_Validate(), FT_OpenType_Validate(), FT_TrueTypeGX_Validate(), sfnt_init_face(), t1_decoder_init(), T1_Face_Init(), and T42_Face_Init().

◆ 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 NULL
Definition: ftobjs.h:61
#define FT_MODULE(x)
Definition: ftobjs.h:483
GLenum GLuint GLint GLenum face
CFF_Driver driver
Definition: cffdrivr.c:585
if(!abbox) return FT_THROW(Invalid_Argument)
#define FT_FACE(x)
Definition: ftobjs.h:557

Definition at line 83 of file ftserv.h.

Referenced by FT_Get_BDF_Charset_ID(), FT_Get_BDF_Property(), FT_Get_CID_From_Glyph_Index(), FT_Get_CID_Is_Internally_CID_Keyed(), FT_Get_CID_Registry_Ordering_Supplement(), FT_Get_CMap_Format(), FT_Get_CMap_Language_ID(), FT_Get_FSType_Flags(), FT_Get_PS_Font_Info(), FT_Get_PS_Font_Private(), FT_Get_PS_Font_Value(), FT_Get_Sfnt_Table(), FT_Get_Track_Kerning(), FT_Get_X11_Font_Format(), FT_Has_PS_Glyph_Names(), FT_Load_Sfnt_Table(), and FT_Sfnt_Table_Info().

◆ 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
#define NULL
Definition: ftobjs.h:61
GLenum GLuint GLint GLenum face
GLenum GLuint id
void * FT_Pointer
Definition: fttypes.h:307
#define FT_FACE(x)
Definition: ftobjs.h:557
#define FT_SERVICE_UNAVAILABLE
Definition: ftserv.h:656

Definition at line 705 of file ftserv.h.

Referenced by FT_Get_Glyph_Name(), FT_Get_Name_Index(), FT_Get_Postscript_Name(), and FT_Get_WinFNT_Header().

◆ FT_SERVICE_BDF_H

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

Definition at line 743 of file ftserv.h.

◆ FT_SERVICE_CID_H

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

Definition at line 744 of file ftserv.h.

◆ FT_SERVICE_GLYPH_DICT_H

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

Definition at line 745 of file ftserv.h.

◆ FT_SERVICE_GX_VALIDATE_H

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

Definition at line 746 of file ftserv.h.

◆ FT_SERVICE_KERNING_H

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

Definition at line 747 of file ftserv.h.

◆ FT_SERVICE_MULTIPLE_MASTERS_H

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

Definition at line 748 of file ftserv.h.

◆ FT_SERVICE_OPENTYPE_VALIDATE_H

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

Definition at line 749 of file ftserv.h.

◆ FT_SERVICE_PFR_H

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

Definition at line 750 of file ftserv.h.

◆ FT_SERVICE_POSTSCRIPT_CMAPS_H

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

Definition at line 751 of file ftserv.h.

◆ FT_SERVICE_POSTSCRIPT_INFO_H

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

Definition at line 752 of file ftserv.h.

◆ FT_SERVICE_POSTSCRIPT_NAME_H

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

Definition at line 753 of file ftserv.h.

◆ FT_SERVICE_PROPERTIES_H

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

Definition at line 754 of file ftserv.h.

◆ FT_SERVICE_SFNT_H

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

Definition at line 755 of file ftserv.h.

◆ FT_SERVICE_TRUETYPE_ENGINE_H

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

Definition at line 756 of file ftserv.h.

◆ FT_SERVICE_TRUETYPE_GLYF_H

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

Definition at line 760 of file ftserv.h.

◆ FT_SERVICE_TT_CMAP_H

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

Definition at line 757 of file ftserv.h.

◆ FT_SERVICE_UNAVAILABLE

#define FT_SERVICE_UNAVAILABLE   ((FT_Pointer)~1) /* magic number */

Definition at line 656 of file ftserv.h.

◆ FT_SERVICE_WINFNT_H

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

Definition at line 758 of file ftserv.h.

◆ FT_SERVICE_XFREE86_NAME_H

#define FT_SERVICE_XFREE86_NAME_H   <freetype/internal/services/svxf86nm.h>

Definition at line 759 of file ftserv.h.

Typedef Documentation

◆ FT_ServiceCache

◆ FT_ServiceCacheRec

◆ FT_ServiceDesc

Definition at line 165 of file ftserv.h.

◆ FT_ServiceDescRec

Function Documentation

◆ ft_service_list_lookup()

ft_service_list_lookup ( FT_ServiceDesc  service_descriptors,
const char *  service_id 
)