ReactOS 0.4.16-dev-2354-g16de117
ftgxval.c File Reference
Include dependency graph for ftgxval.c:

Go to the source code of this file.

Functions

 FT_TrueTypeGX_Validate (FT_Face face, FT_UInt validation_flags, FT_Bytes tables[FT_VALIDATE_GX_LENGTH], FT_UInt table_length)
 
 FT_TrueTypeGX_Free (FT_Face face, FT_Bytes table)
 
 FT_ClassicKern_Validate (FT_Face face, FT_UInt validation_flags, FT_Bytes *ckern_table)
 
 FT_ClassicKern_Free (FT_Face face, FT_Bytes table)
 

Function Documentation

◆ FT_ClassicKern_Free()

FT_ClassicKern_Free ( FT_Face  face,
FT_Bytes  table 
)

Definition at line 125 of file ftgxval.c.

127 {
129
130
131 if ( !face )
132 return;
133
135
136
137 FT_FREE( table );
138 }
#define FT_FREE(ptr)
Definition: ftmemory.h:337
#define FT_FACE_MEMORY(x)
Definition: ftobjs.h:603
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:64
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
static char memory[1024 *256]
Definition: process.c:122

◆ FT_ClassicKern_Validate()

FT_ClassicKern_Validate ( FT_Face  face,
FT_UInt  validation_flags,
FT_Bytes ckern_table 
)

Definition at line 90 of file ftgxval.c.

93 {
94 FT_Service_CKERNvalidate service;
96
97
98 if ( !face )
99 {
100 error = FT_THROW( Invalid_Face_Handle );
101 goto Exit;
102 }
103
104 if ( !ckern_table )
105 {
106 error = FT_THROW( Invalid_Argument );
107 goto Exit;
108 }
109
110 FT_FACE_FIND_GLOBAL_SERVICE( face, service, CLASSICKERN_VALIDATE );
111
112 if ( service )
113 error = service->validate( face,
114 validation_flags,
115 ckern_table );
116 else
117 error = FT_THROW( Unimplemented_Feature );
118
119 Exit:
120 return error;
121 }
#define FT_THROW(e)
Definition: ftdebug.h:243
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
Definition: ftserv.h:128
int FT_Error
Definition: fttypes.h:299
#define error(str)
Definition: mkdosfs.c:1605
static void Exit(void)
Definition: sock.c:1330

◆ FT_TrueTypeGX_Free()

FT_TrueTypeGX_Free ( FT_Face  face,
FT_Bytes  table 
)

Definition at line 74 of file ftgxval.c.

76 {
78
79
80 if ( !face )
81 return;
82
84
85 FT_FREE( table );
86 }

◆ FT_TrueTypeGX_Validate()

FT_TrueTypeGX_Validate ( FT_Face  face,
FT_UInt  validation_flags,
FT_Bytes  tables[FT_VALIDATE_GX_LENGTH],
FT_UInt  table_length 
)

Definition at line 37 of file ftgxval.c.

41 {
42 FT_Service_GXvalidate service;
44
45
46 if ( !face )
47 {
48 error = FT_THROW( Invalid_Face_Handle );
49 goto Exit;
50 }
51
52 if ( !tables )
53 {
54 error = FT_THROW( Invalid_Argument );
55 goto Exit;
56 }
57
58 FT_FACE_FIND_GLOBAL_SERVICE( face, service, GX_VALIDATE );
59
60 if ( service )
61 error = service->validate( face,
62 validation_flags,
63 tables,
64 table_length );
65 else
66 error = FT_THROW( Unimplemented_Feature );
67
68 Exit:
69 return error;
70 }
struct nls_table * tables
Definition: nls_base.c:22