1 /***************************************************************************/
5 /* FreeType API for validating TrueTyepGX/AAT tables (body). */
7 /* Copyright 2004, 2005, 2006, 2010 by */
8 /* Masatake YAMATO, Redhat K.K, */
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
11 /* This file is part of the FreeType project, and may only be used, */
12 /* modified, and distributed under the terms of the FreeType project */
13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
14 /* this file you indicate that you have read the license and */
15 /* understand and accept it fully. */
17 /***************************************************************************/
19 /***************************************************************************/
21 /* gxvalid is derived from both gxlayout module and otvalid module. */
22 /* Development of gxlayout is supported by the Information-technology */
23 /* Promotion Agency(IPA), Japan. */
25 /***************************************************************************/
29 #include FT_INTERNAL_OBJECTS_H
30 #include FT_SERVICE_GX_VALIDATE_H
33 /* documentation is in ftgxval.h */
35 FT_EXPORT_DEF( FT_Error )
36 FT_TrueTypeGX_Validate( FT_Face face,
37 FT_UInt validation_flags,
38 FT_Bytes tables[FT_VALIDATE_GX_LENGTH],
39 FT_UInt table_length )
41 FT_Service_GXvalidate service;
47 error = FT_Err_Invalid_Face_Handle;
53 error = FT_Err_Invalid_Argument;
57 FT_FACE_FIND_GLOBAL_SERVICE( face, service, GX_VALIDATE );
60 error = service->validate( face,
65 error = FT_Err_Unimplemented_Feature;
73 FT_TrueTypeGX_Free( FT_Face face,
82 memory = FT_FACE_MEMORY( face );
88 FT_EXPORT_DEF( FT_Error )
89 FT_ClassicKern_Validate( FT_Face face,
90 FT_UInt validation_flags,
91 FT_Bytes *ckern_table )
93 FT_Service_CKERNvalidate service;
99 error = FT_Err_Invalid_Face_Handle;
103 if ( ckern_table == NULL )
105 error = FT_Err_Invalid_Argument;
109 FT_FACE_FIND_GLOBAL_SERVICE( face, service, CLASSICKERN_VALIDATE );
112 error = service->validate( face,
116 error = FT_Err_Unimplemented_Feature;
123 FT_EXPORT_DEF( void )
124 FT_ClassicKern_Free( FT_Face face,
133 memory = FT_FACE_MEMORY( face );