1 /****************************************************************************
5 * FreeType API for validating OpenType tables (body).
7 * Copyright (C) 2004-2020 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.
18 #include <freetype/internal/ftdebug.h>
20 #include <freetype/internal/ftobjs.h>
21 #include <freetype/internal/services/svotval.h>
22 #include <freetype/ftotval.h>
25 /* documentation is in ftotval.h */
27 FT_EXPORT_DEF( FT_Error )
28 FT_OpenType_Validate( FT_Face face,
29 FT_UInt validation_flags,
34 FT_Bytes *JSTF_table )
36 FT_Service_OTvalidate service;
42 error = FT_THROW( Invalid_Face_Handle );
52 error = FT_THROW( Invalid_Argument );
56 FT_FACE_FIND_GLOBAL_SERVICE( face, service, OPENTYPE_VALIDATE );
59 error = service->validate( face,
67 error = FT_THROW( Unimplemented_Feature );
75 FT_OpenType_Free( FT_Face face,
84 memory = FT_FACE_MEMORY( face );