1 /***************************************************************************/
5 /* FreeType API for accessing Windows fnt-specific data. */
7 /* Copyright 2002 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 #ifndef __FTWINFNT_H__
20 #define __FTWINFNT_H__
23 #include FT_FREETYPE_H
29 /*************************************************************************/
35 /* Window FNT Fonts */
38 /* Windows FNT specific APIs */
41 /* This section contains the declaration of Windows FNT specific */
44 /*************************************************************************/
46 /*************************************************************************/
49 /* FT_WinFNT_HeaderRec_ */
52 /* Windows FNT Header info. */
54 typedef struct FT_WinFNT_HeaderRec_
58 FT_Byte copyright[60];
60 FT_UShort nominal_point_size;
61 FT_UShort vertical_resolution;
62 FT_UShort horizontal_resolution;
64 FT_UShort internal_leading;
65 FT_UShort external_leading;
71 FT_UShort pixel_width;
72 FT_UShort pixel_height;
73 FT_Byte pitch_and_family;
80 FT_UShort bytes_per_row;
81 FT_ULong device_offset;
82 FT_ULong face_name_offset;
83 FT_ULong bits_pointer;
90 FT_UShort color_table_offset;
91 FT_ULong reserved1[4];
93 } FT_WinFNT_HeaderRec, *FT_WinFNT_Header;
97 /**********************************************************************
100 * FT_Get_WinFNT_Header
103 * Retrieves a Windows FNT font info header.
106 * face :: handle to input face
109 * header :: WinFNT header.
112 * FreeType error code. 0 means success.
115 * This function only works with Windows FNT faces, returning an erro
118 FT_EXPORT( FT_Error )
119 FT_Get_WinFNT_Header( FT_Face face,
120 FT_WinFNT_HeaderRec *header );
126 #endif /* __FTWINFNT_H__ */