ReactOS 0.4.15-dev-7918-g2a2556c
ftwinfnt.c
Go to the documentation of this file.
1/***************************************************************************/
2/* */
3/* ftwinfnt.c */
4/* */
5/* FreeType API for accessing Windows FNT specific info (body). */
6/* */
7/* Copyright 2003-2018 by */
8/* David Turner, Robert Wilhelm, and Werner Lemberg. */
9/* */
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. */
15/* */
16/***************************************************************************/
17
18
19#include <ft2build.h>
20#include FT_INTERNAL_DEBUG_H
21#include FT_WINFONTS_H
22#include FT_INTERNAL_OBJECTS_H
23#include FT_SERVICE_WINFNT_H
24
25
26 /* documentation is in ftwinfnt.h */
27
31 {
32 FT_Service_WinFnt service;
34
35
36 if ( !face )
37 return FT_THROW( Invalid_Face_Handle );
38
39 if ( !header )
40 return FT_THROW( Invalid_Argument );
41
42 FT_FACE_LOOKUP_SERVICE( face, service, WINFNT );
43
44 if ( service )
45 error = service->get_header( face, header );
46 else
47 error = FT_THROW( Invalid_Argument );
48
49 return error;
50 }
51
52
53/* END */
#define FT_EXPORT_DEF(x)
Definition: ftconfig.h:483
#define FT_THROW(e)
Definition: ftdebug.h:213
#define FT_FACE_LOOKUP_SERVICE(face, ptr, id)
Definition: ftserv.h:950
int FT_Error
Definition: fttypes.h:300
FT_Get_WinFNT_Header(FT_Face face, FT_WinFNT_HeaderRec *header)
Definition: ftwinfnt.c:29
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
#define error(str)
Definition: mkdosfs.c:1605