~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/freetype/src/winfonts/winfnt.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************/
 
2
/*                                                                         */
 
3
/*  winfnt.h                                                               */
 
4
/*                                                                         */
 
5
/*    FreeType font driver for Windows FNT/FON files                       */
 
6
/*                                                                         */
 
7
/*  Copyright 1996-2001, 2002, 2003, 2004 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
#ifndef __WINFNT_H__
 
20
#define __WINFNT_H__
 
21
 
 
22
 
 
23
#include <ft2build.h>
 
24
#include FT_WINFONTS_H
 
25
#include FT_INTERNAL_DRIVER_H
 
26
 
 
27
 
 
28
FT_BEGIN_HEADER
 
29
 
 
30
  typedef struct  WinMZ_HeaderRec_
 
31
  {
 
32
    FT_UShort  magic;
 
33
    /* skipped content */
 
34
    FT_UShort  lfanew;
 
35
 
 
36
  } WinMZ_HeaderRec;
 
37
 
 
38
 
 
39
  typedef struct  WinNE_HeaderRec_
 
40
  {
 
41
    FT_UShort  magic;
 
42
    /* skipped content */
 
43
    FT_UShort  resource_tab_offset;
 
44
    FT_UShort  rname_tab_offset;
 
45
 
 
46
  } WinNE_HeaderRec;
 
47
 
 
48
 
 
49
  typedef struct  WinNameInfoRec_
 
50
  {
 
51
    FT_UShort  offset;
 
52
    FT_UShort  length;
 
53
    FT_UShort  flags;
 
54
    FT_UShort  id;
 
55
    FT_UShort  handle;
 
56
    FT_UShort  usage;
 
57
 
 
58
  } WinNameInfoRec;
 
59
 
 
60
 
 
61
  typedef struct  WinResourceInfoRec_
 
62
  {
 
63
    FT_UShort  type_id;
 
64
    FT_UShort  count;
 
65
 
 
66
  } WinResourceInfoRec;
 
67
 
 
68
 
 
69
#define WINFNT_MZ_MAGIC  0x5A4D
 
70
#define WINFNT_NE_MAGIC  0x454E
 
71
 
 
72
 
 
73
  typedef struct  FNT_FontRec_
 
74
  {
 
75
    FT_ULong             offset;
 
76
    FT_Int               size_shift;
 
77
 
 
78
    FT_WinFNT_HeaderRec  header;
 
79
 
 
80
    FT_Byte*             fnt_frame;
 
81
    FT_ULong             fnt_size;
 
82
    FT_String*           family_name;
 
83
 
 
84
  } FNT_FontRec, *FNT_Font;
 
85
 
 
86
 
 
87
  typedef struct  FNT_FaceRec_
 
88
  {
 
89
    FT_FaceRec     root;
 
90
    FNT_Font       font;
 
91
 
 
92
    FT_CharMap     charmap_handle;
 
93
    FT_CharMapRec  charmap;  /* a single charmap per face */
 
94
 
 
95
  } FNT_FaceRec, *FNT_Face;
 
96
 
 
97
 
 
98
  FT_EXPORT_VAR( const FT_Driver_ClassRec )  winfnt_driver_class;
 
99
 
 
100
 
 
101
FT_END_HEADER
 
102
 
 
103
 
 
104
#endif /* __WINFNT_H__ */
 
105
 
 
106
 
 
107
/* END */