ReactOS 0.4.16-dev-2354-g16de117
ftotval.c File Reference
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 75 of file ftotval.c.

77 {
79
80
81 if ( !face )
82 return;
83
85
86 FT_FREE( table );
87 }
#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_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 28 of file ftotval.c.

35 {
36 FT_Service_OTvalidate service;
38
39
40 if ( !face )
41 {
42 error = FT_THROW( Invalid_Face_Handle );
43 goto Exit;
44 }
45
46 if ( !( BASE_table &&
47 GDEF_table &&
48 GPOS_table &&
49 GSUB_table &&
50 JSTF_table ) )
51 {
52 error = FT_THROW( Invalid_Argument );
53 goto Exit;
54 }
55
56 FT_FACE_FIND_GLOBAL_SERVICE( face, service, OPENTYPE_VALIDATE );
57
58 if ( service )
59 error = service->validate( face,
60 validation_flags,
61 BASE_table,
62 GDEF_table,
63 GPOS_table,
64 GSUB_table,
65 JSTF_table );
66 else
67 error = FT_THROW( Unimplemented_Feature );
68
69 Exit:
70 return error;
71 }
#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