ReactOS 0.4.15-dev-8349-g6f277e9
ftotval.h File Reference
#include <ft2build.h>
Include dependency graph for ftotval.h:

Go to the source code of this file.

Macros

#define FT_VALIDATE_BASE   0x0100
 
#define FT_VALIDATE_GDEF   0x0200
 
#define FT_VALIDATE_GPOS   0x0400
 
#define FT_VALIDATE_GSUB   0x0800
 
#define FT_VALIDATE_JSTF   0x1000
 
#define FT_VALIDATE_MATH   0x2000
 
#define FT_VALIDATE_OT
 

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)
 

Macro Definition Documentation

◆ FT_VALIDATE_BASE

#define FT_VALIDATE_BASE   0x0100

Definition at line 102 of file ftotval.h.

◆ FT_VALIDATE_GDEF

#define FT_VALIDATE_GDEF   0x0200

Definition at line 103 of file ftotval.h.

◆ FT_VALIDATE_GPOS

#define FT_VALIDATE_GPOS   0x0400

Definition at line 104 of file ftotval.h.

◆ FT_VALIDATE_GSUB

#define FT_VALIDATE_GSUB   0x0800

Definition at line 105 of file ftotval.h.

◆ FT_VALIDATE_JSTF

#define FT_VALIDATE_JSTF   0x1000

Definition at line 106 of file ftotval.h.

◆ FT_VALIDATE_MATH

#define FT_VALIDATE_MATH   0x2000

Definition at line 107 of file ftotval.h.

◆ FT_VALIDATE_OT

#define FT_VALIDATE_OT
Value:
#define FT_VALIDATE_MATH
Definition: ftotval.h:107
#define FT_VALIDATE_GSUB
Definition: ftotval.h:105
#define FT_VALIDATE_GDEF
Definition: ftotval.h:103
#define FT_VALIDATE_JSTF
Definition: ftotval.h:106
#define FT_VALIDATE_GPOS
Definition: ftotval.h:104
#define FT_VALIDATE_BASE
Definition: ftotval.h:102

Definition at line 109 of file ftotval.h.

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