#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 | ) |
|
Value: FT_ULong len_ ## _sfnt = 0
Definition at line 76 of file gxvmod.c.
◆ GXV_TABLE_LOAD
#define GXV_TABLE_LOAD |
( |
|
_sfnt | ) |
|
Value:if ( ( FT_VALIDATE_ ## _sfnt ## _INDEX < table_count ) && \
( gx_flags & FT_VALIDATE_ ## _sfnt ) ) \
{ \
&_sfnt, &len_ ## _sfnt ); \
}
static FT_Error gxv_load_table(FT_Face face, FT_Tag tag, FT_Byte *volatile *table, FT_ULong *table_len)
GLenum GLuint GLint GLenum face
Definition at line 80 of file gxvmod.c.
◆ GXV_TABLE_SET
#define GXV_TABLE_SET |
( |
|
_sfnt | ) |
|
Value:if ( FT_VALIDATE_ ## _sfnt ## _INDEX < table_count ) \
tables[FT_VALIDATE_ ## _sfnt ## _INDEX] = (
FT_Bytes)_sfnt
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 ); \
}
GLenum GLuint GLint GLenum face
Definition at line 90 of file gxvmod.c.
◆ classic_kern_validate()
Definition at line 191 of file gxvmod.c.
225 *ckern_table = ckern;
static char memory[1024 *256]
gxv_kern_validate_classic(FT_Bytes table, FT_Face face, FT_Int dialect_flags, FT_Validator valid)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
#define FT_FACE_MEMORY(x)
#define FT_VALIDATE_CKERN
static FT_Error gxv_load_table(FT_Face face, FT_Tag tag, FT_Byte *volatile *table, FT_ULong *table_len)
ft_validator_init(FT_Validator valid, const FT_Byte *base, const FT_Byte *limit, FT_ValidationLevel level)
GLenum GLuint GLint GLenum face
◆ gxv_load_table()
Definition at line 51 of file gxvmod.c.
#define FT_ALLOC(ptr, size)
static char memory[1024 *256]
FT_Load_Sfnt_Table(FT_Face face, FT_ULong tag, FT_Long offset, FT_Byte *buffer, FT_ULong *length)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
#define FT_FACE_MEMORY(x)
GLenum GLuint GLint GLenum face
Referenced by classic_kern_validate().
◆ gxv_validate()
Definition at line 108 of file gxvmod.c.
132 for (
i = 0;
i < table_count;
i++ )
#define GXV_TABLE_DECL(_sfnt)
struct nls_table * tables
static char memory[1024 *256]
#define GXV_TABLE_LOAD(_sfnt)
#define GXV_TABLE_VALIDATE(_sfnt)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
#define FT_FACE_MEMORY(x)
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_SET(_sfnt)
GLenum GLuint GLint GLenum face
◆ gxvalid_get_service()
Definition at line 259 of file gxvmod.c.
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,
}
FT_Error(* FT_Module_Constructor)(FT_Module module)
static FT_Pointer gxvalid_get_service(FT_Module module, const char *service_id)
struct FT_ModuleRec_ FT_ModuleRec
FT_Module_Interface(* FT_Module_Requester)(FT_Module module, const char *name)
void(* FT_Module_Destructor)(FT_Module module)
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_CKERNvalidateRec ckernvalid_interface
#define FT_SERVICE_ID_CLASSICKERN_VALIDATE
#define FT_SERVICE_ID_GX_VALIDATE
static const FT_Service_GXvalidateRec gxvalid_interface
Definition at line 250 of file gxvmod.c.
Referenced by gxvalid_get_service().