1
/***************************************************************************/
5
/* FreeType API for validating OpenType tables (body). */
7
/* Copyright 2004, 2006, 2008, 2010 by */
8
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
10
/* This file is part of the FreeType project, and may only be used, */
11
/* modified, and distributed under the terms of the FreeType project */
12
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13
/* this file you indicate that you have read the license and */
14
/* understand and accept it fully. */
16
/***************************************************************************/
19
#include FT_INTERNAL_OBJECTS_H
20
#include FT_SERVICE_OPENTYPE_VALIDATE_H
21
#include FT_OPENTYPE_VALIDATE_H
24
/* documentation is in ftotval.h */
26
FT_EXPORT_DEF( FT_Error )
27
FT_OpenType_Validate( FT_Face face,
28
FT_UInt validation_flags,
33
FT_Bytes *JSTF_table )
35
FT_Service_OTvalidate service;
41
error = FT_Err_Invalid_Face_Handle;
51
error = FT_Err_Invalid_Argument;
55
FT_FACE_FIND_GLOBAL_SERVICE( face, service, OPENTYPE_VALIDATE );
58
error = service->validate( face,
66
error = FT_Err_Unimplemented_Feature;
74
FT_OpenType_Free( FT_Face face,
83
memory = FT_FACE_MEMORY( face );