zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
otvmod.c File Reference
#include <ft2build.h>
#include <FT_TRUETYPE_TABLES_H>
#include <FT_TRUETYPE_TAGS_H>
#include <FT_OPENTYPE_VALIDATE_H>
#include <FT_INTERNAL_OBJECTS_H>
#include <FT_SERVICE_OPENTYPE_VALIDATE_H>
#include "otvmod.h"
#include "otvalid.h"
#include "otvcommn.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_otvmodule
 

Functions

static FT_Error otv_load_table (FT_Face face, FT_Tag tag, FT_Byte *volatile *table, FT_ULong *table_len)
 
static FT_Error otv_validate (FT_Face volatile face, FT_UInt ot_flags, FT_Bytes *ot_base, FT_Bytes *ot_gdef, FT_Bytes *ot_gpos, FT_Bytes *ot_gsub, FT_Bytes *ot_jstf)
 
static FT_Pointer otvalid_get_service (FT_Module module, const char *service_id)
 

Variables

FT_CALLBACK_TABLE_DEF const
FT_Module_Class 
otv_module_class
 
static const
FT_Service_OTvalidateRec 
otvalid_interface
 
static const FT_ServiceDescRec otvalid_services []
 

Macro Definition Documentation

#define FT_COMPONENT   trace_otvmodule

Definition at line 38 of file otvmod.c.

Function Documentation

static FT_Error otv_load_table ( FT_Face  face,
FT_Tag  tag,
FT_Byte *volatile *  table,
FT_ULong table_len 
)
static

Definition at line 42 of file otvmod.c.

References error, FT_ALLOC, FT_FACE_MEMORY, FT_Load_Sfnt_Table(), and NULL.

Referenced by otv_validate().

static FT_Pointer otvalid_get_service ( FT_Module  module,
const char *  service_id 
)
static

Definition at line 256 of file otvmod.c.

References ft_service_list_lookup(), and FT_UNUSED.

Variable Documentation

Initial value:
=
{
0,
sizeof ( FT_ModuleRec ),
"otvalid",
0x10000L,
0x20000L,
0,
}
static FT_Pointer otvalid_get_service(FT_Module module, const char *service_id)
Definition: otvmod.c:256
FT_Module_Interface(* FT_Module_Requester)(FT_Module module, const char *name)
Definition: ftmodapi.h:126
struct FT_ModuleRec_ FT_ModuleRec
void(* FT_Module_Destructor)(FT_Module module)
Definition: ftmodapi.h:109
FT_Error(* FT_Module_Constructor)(FT_Module module)
Definition: ftmodapi.h:94

Definition at line 266 of file otvmod.c.

const FT_Service_OTvalidateRec otvalid_interface
static
Initial value:
=
{
}
static FT_Error otv_validate(FT_Face volatile face, FT_UInt ot_flags, FT_Bytes *ot_base, FT_Bytes *ot_gdef, FT_Bytes *ot_gpos, FT_Bytes *ot_gsub, FT_Bytes *ot_jstf)
Definition: otvmod.c:68

Definition at line 241 of file otvmod.c.

const FT_ServiceDescRec otvalid_services[]
static
Initial value:
=
{
{ NULL, NULL }
}
#define NULL
Definition: ftobjs.h:61
static const FT_Service_OTvalidateRec otvalid_interface
Definition: otvmod.c:241
#define FT_SERVICE_ID_OPENTYPE_VALIDATE
Definition: svotval.h:28

Definition at line 248 of file otvmod.c.