ReactOS 0.4.16-dev-334-g4d9f67c
ftotval.c File Reference
#include <ft2build.h>
Include dependency graph for ftotval.c:

Go to the source code of this file.

Functions

 FT_OpenType_Validate (FT_Face face, FT_UInt validation_flags, FT_Bytes *BASE_table, FT_Bytes *GDEF_table, FT_Bytes *GPOS_table, FT_Bytes *GSUB_table, FT_Bytes *JSTF_table)
 
 FT_OpenType_Free (FT_Face face, FT_Bytes table)
 

Function Documentation

◆ FT_OpenType_Free()

FT_OpenType_Free ( FT_Face  face,
FT_Bytes  table 
)

Definition at line 76 of file ftotval.c.

78 {
80
81
82 if ( !face )
83 return;
84
86
87 FT_FREE( table );
88 }
#define FT_FREE(ptr)
Definition: ftmemory.h:329
#define FT_FACE_MEMORY(x)
Definition: ftobjs.h:636
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
static char memory[1024 *256]
Definition: process.c:116

◆ FT_OpenType_Validate()

FT_OpenType_Validate ( FT_Face  face,
FT_UInt  validation_flags,
FT_Bytes BASE_table,
FT_Bytes GDEF_table,
FT_Bytes GPOS_table,
FT_Bytes GSUB_table,
FT_Bytes JSTF_table 
)

Definition at line 29 of file ftotval.c.

36 {
37 FT_Service_OTvalidate service;
39
40
41 if ( !face )
42 {
43 error = FT_THROW( Invalid_Face_Handle );
44 goto Exit;
45 }
46
47 if ( !( BASE_table &&
48 GDEF_table &&
49 GPOS_table &&
50 GSUB_table &&
51 JSTF_table ) )
52 {
53 error = FT_THROW( Invalid_Argument );
54 goto Exit;
55 }
56
57 FT_FACE_FIND_GLOBAL_SERVICE( face, service, OPENTYPE_VALIDATE );
58
59 if ( service )
60 error = service->validate( face,
61 validation_flags,
62 BASE_table,
63 GDEF_table,
64 GPOS_table,
65 GSUB_table,
66 JSTF_table );
67 else
68 error = FT_THROW( Unimplemented_Feature );
69
70 Exit:
71 return error;
72 }
#define FT_THROW(e)
Definition: ftdebug.h:213
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
Definition: ftserv.h:125
int FT_Error
Definition: fttypes.h:300
#define error(str)
Definition: mkdosfs.c:1605
static void Exit(void)
Definition: sock.c:1330