blob: b7eda1dc30332c8f11b2d57fe6466bd01d8b2597 [file] [log] [blame]
David Turner52e0a7e2003-01-17 08:40:32 +00001/***************************************************************************/
2/* */
3/* ftwinfnt.c */
4/* */
5/* FreeType API for accessing Windows FNT specific info (body). */
6/* */
Werner Lembergc8c6bf52003-04-23 05:38:13 +00007/* Copyright 2003 by */
David Turner52e0a7e2003-01-17 08:40:32 +00008/* 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_WINFONTS_H
David Turner52e0a7e2003-01-17 08:40:32 +000021#include FT_INTERNAL_OBJECTS_H
David Turnere2d12842003-09-21 17:15:55 +000022#include FT_SERVICE_WINFNT_H
David Turner52e0a7e2003-01-17 08:40:32 +000023
24
25 FT_EXPORT_DEF( FT_Error )
Werner Lembergc8c6bf52003-04-23 05:38:13 +000026 FT_Get_WinFNT_Header( FT_Face face,
27 FT_WinFNT_HeaderRec *header )
David Turner52e0a7e2003-01-17 08:40:32 +000028 {
David Turnere2d12842003-09-21 17:15:55 +000029 FT_Service_WinFnt service;
30 FT_Error error;
David Turner52e0a7e2003-01-17 08:40:32 +000031
32 error = FT_Err_Invalid_Argument;
33
David Turnere2d12842003-09-21 17:15:55 +000034 if ( face != NULL )
David Turner52e0a7e2003-01-17 08:40:32 +000035 {
David Turnere2d12842003-09-21 17:15:55 +000036 FT_FACE_LOOKUP_SERVICE( face, service, WINFNT );
David Turner52e0a7e2003-01-17 08:40:32 +000037
David Turnere2d12842003-09-21 17:15:55 +000038 if ( service != NULL )
David Turner52e0a7e2003-01-17 08:40:32 +000039 {
David Turnere2d12842003-09-21 17:15:55 +000040 error = service->get_header( face, header );
David Turner52e0a7e2003-01-17 08:40:32 +000041 }
42 }
David Turnere2d12842003-09-21 17:15:55 +000043 return error;
David Turner52e0a7e2003-01-17 08:40:32 +000044 }
45
David Turner52e0a7e2003-01-17 08:40:32 +000046/* END */