#include <ft2build.h>
#include "gxvmod.h"
#include "gxvalid.h"
#include "gxvcommn.h"
Go to the source code of this file.
◆ FT_COMPONENT
#define FT_COMPONENT trace_gxvmodule |
◆ GXV_TABLE_DECL
#define GXV_TABLE_DECL |
( |
|
_sfnt | ) |
|
◆ GXV_TABLE_LOAD
#define GXV_TABLE_LOAD |
( |
|
_sfnt | ) |
|
Value: if ( ( FT_VALIDATE_ ## _sfnt ## _INDEX < table_count ) && \
( gx_flags & FT_VALIDATE_ ## _sfnt ) ) \
{ \
&_sfnt, &len_ ## _sfnt ); \
}
GLenum GLuint GLint GLenum face
static FT_Error gxv_load_table(FT_Face face, FT_Tag tag, FT_Byte *volatile *table, FT_ULong *table_len)
Definition at line 80 of file gxvmod.c.
◆ GXV_TABLE_SET
#define GXV_TABLE_SET |
( |
|
_sfnt | ) |
|
Value: if ( FT_VALIDATE_ ## _sfnt ## _INDEX < table_count ) \
struct nls_table * tables
Definition at line 102 of file gxvmod.c.
◆ GXV_TABLE_VALIDATE
#define GXV_TABLE_VALIDATE |
( |
|
_sfnt | ) |
|
Value: if ( _sfnt ) \
{ \
ft_validator_init( &
valid, _sfnt, _sfnt + len_ ## _sfnt, \
gxv_ ## _sfnt ## _validate( _sfnt,
face, &
valid ); \
}
Definition at line 90 of file gxvmod.c.
◆ classic_kern_validate()
Definition at line 191 of file gxvmod.c.
194 {
196
199
200
201
202
205
206
208
212
213 if ( ckern )
214 {
223 }
224
225 *ckern_table = ckern;
226
230
232 }
#define FT_VALIDATE_CKERN
#define FT_FACE_MEMORY(x)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
ft_validator_init(FT_Validator valid, const FT_Byte *base, const FT_Byte *limit, FT_ValidationLevel level)
gxv_kern_validate_classic(FT_Bytes table, FT_Face face, FT_Int dialect_flags, FT_Validator valid)
static char memory[1024 *256]
◆ gxv_load_table()
Definition at line 51 of file gxvmod.c.
55 {
58
59
65
68
70
73 }
#define FT_ALLOC(ptr, size)
FT_Load_Sfnt_Table(FT_Face face, FT_ULong tag, FT_Long offset, FT_Byte *buffer, FT_ULong *length)
Referenced by classic_kern_validate().
◆ gxv_validate()
Definition at line 108 of file gxvmod.c.
112 {
114
117
119
120
131
132 for (
i = 0;
i < table_count;
i++ )
134
135
146
147
158
159
170
173 {
184 }
185
187 }
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define GXV_TABLE_LOAD(_sfnt)
#define GXV_TABLE_SET(_sfnt)
#define GXV_TABLE_DECL(_sfnt)
#define GXV_TABLE_VALIDATE(_sfnt)
◆ gxvalid_get_service()
Definition at line 259 of file gxvmod.c.
261 {
263
265 }
ft_service_list_lookup(FT_ServiceDesc service_descriptors, const char *service_id)
static const FT_ServiceDescRec gxvalid_services[]
◆ ckernvalid_interface
const FT_Service_CKERNvalidateRec ckernvalid_interface |
|
static |
Initial value:=
{
}
static FT_Error classic_kern_validate(FT_Face face, FT_UInt ckern_flags, FT_Bytes *ckern_table)
Definition at line 243 of file gxvmod.c.
◆ gxv_module_class
Initial value:=
{
0,
"gxvalid",
0x10000L,
0x20000L,
}
void(* FT_Module_Destructor)(FT_Module module)
FT_Error(* FT_Module_Constructor)(FT_Module module)
FT_Module_Interface(* FT_Module_Requester)(FT_Module module, const char *name)
struct FT_ModuleRec_ FT_ModuleRec
static FT_Pointer gxvalid_get_service(FT_Module module, const char *service_id)
Definition at line 269 of file gxvmod.c.
◆ gxvalid_interface
const FT_Service_GXvalidateRec gxvalid_interface |
|
static |
Initial value:=
{
}
static FT_Error gxv_validate(FT_Face face, FT_UInt gx_flags, FT_Bytes tables[FT_VALIDATE_GX_LENGTH], FT_UInt table_count)
Definition at line 236 of file gxvmod.c.
◆ gxvalid_services
Initial value:=
{
}
static const FT_Service_GXvalidateRec gxvalid_interface
static const FT_Service_CKERNvalidateRec ckernvalid_interface
#define FT_SERVICE_ID_CLASSICKERN_VALIDATE
#define FT_SERVICE_ID_GX_VALIDATE
Definition at line 250 of file gxvmod.c.
Referenced by gxvalid_get_service().