misc/libfreetype/include/freetype/ftwinfnt.h
author nemo
Mon, 15 Oct 2012 22:30:20 -0400
changeset 7759 b64afd109cf7
parent 5172 88f2e05288ba
permissions -rw-r--r--
cut down on excessive checkins in some situations
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
/***************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
/*  ftwinfnt.h                                                             */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
/*    FreeType API for accessing Windows fnt-specific data.                */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
/*  Copyright 2003, 2004, 2008 by                                          */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
/*  This file is part of the FreeType project, and may only be used,       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
/*  modified, and distributed under the terms of the FreeType project      */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
/*  this file you indicate that you have read the license and              */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
/*  understand and accept it fully.                                        */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
/***************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
#ifndef __FTWINFNT_H__
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
#define __FTWINFNT_H__
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
#include <ft2build.h>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
#include FT_FREETYPE_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
#ifdef FREETYPE_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
#error "freetype.h of FreeType 1 has been loaded!"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
#error "Please fix the directory search order for header files"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
#error "so that freetype.h of FreeType 2 is found first."
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
FT_BEGIN_HEADER
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
  /* <Section>                                                             */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
  /*    winfnt_fonts                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
  /* <Title>                                                               */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
  /*    Window FNT Files                                                   */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    43
  /* <Abstract>                                                            */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    44
  /*    Windows FNT specific API.                                          */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    45
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
  /* <Description>                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    47
  /*    This section contains the declaration of Windows FNT specific      */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    48
  /*    functions.                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    49
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    50
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    51
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    52
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    53
  /*************************************************************************
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
   * @enum:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
   *   FT_WinFNT_ID_XXX
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
   * @description:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
   *   A list of valid values for the `charset' byte in
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
   *   @FT_WinFNT_HeaderRec.  Exact mapping tables for the various cpXXXX
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
   *   encodings (except for cp1361) can be found at ftp://ftp.unicode.org
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
   *   in the MAPPINGS/VENDORS/MICSFT/WINDOWS subdirectory.  cp1361 is
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
   *   roughly a superset of MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    64
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    65
   * @values:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    66
   *   FT_WinFNT_ID_DEFAULT ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    67
   *     This is used for font enumeration and font creation as a
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    68
   *     `don't care' value.  Valid font files don't contain this value.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    69
   *     When querying for information about the character set of the font
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    70
   *     that is currently selected into a specified device context, this
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    71
   *     return value (of the related Windows API) simply denotes failure.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    72
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    73
   *   FT_WinFNT_ID_SYMBOL ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    74
   *     There is no known mapping table available.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    75
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    76
   *   FT_WinFNT_ID_MAC ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    77
   *     Mac Roman encoding.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    78
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    79
   *   FT_WinFNT_ID_OEM ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    80
   *     From Michael Pöttgen <michael@poettgen.de>:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    81
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    82
   *       The `Windows Font Mapping' article says that FT_WinFNT_ID_OEM
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    83
   *       is used for the charset of vector fonts, like `modern.fon',
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    84
   *       `roman.fon', and `script.fon' on Windows.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    85
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    86
   *       The `CreateFont' documentation says: The FT_WinFNT_ID_OEM value
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    87
   *       specifies a character set that is operating-system dependent.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    88
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    89
   *       The `IFIMETRICS' documentation from the `Windows Driver
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    90
   *       Development Kit' says: This font supports an OEM-specific
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    91
   *       character set.  The OEM character set is system dependent.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    92
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    93
   *       In general OEM, as opposed to ANSI (i.e., cp1252), denotes the
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    94
   *       second default codepage that most international versions of
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    95
   *       Windows have.  It is one of the OEM codepages from
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    96
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    97
   *         http://www.microsoft.com/globaldev/reference/cphome.mspx,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    98
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    99
   *       and is used for the `DOS boxes', to support legacy applications.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   100
   *       A German Windows version for example usually uses ANSI codepage
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   101
   *       1252 and OEM codepage 850.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   102
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   103
   *   FT_WinFNT_ID_CP874 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   104
   *     A superset of Thai TIS 620 and ISO 8859-11.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   105
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   106
   *   FT_WinFNT_ID_CP932 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   107
   *     A superset of Japanese Shift-JIS (with minor deviations).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   108
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   109
   *   FT_WinFNT_ID_CP936 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   110
   *     A superset of simplified Chinese GB 2312-1980 (with different
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   111
   *     ordering and minor deviations).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   112
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   113
   *   FT_WinFNT_ID_CP949 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   114
   *     A superset of Korean Hangul KS~C 5601-1987 (with different
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   115
   *     ordering and minor deviations).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   116
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   117
   *   FT_WinFNT_ID_CP950 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   118
   *     A superset of traditional Chinese Big~5 ETen (with different
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   119
   *     ordering and minor deviations).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   120
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   121
   *   FT_WinFNT_ID_CP1250 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   122
   *     A superset of East European ISO 8859-2 (with slightly different
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   123
   *     ordering).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   124
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   125
   *   FT_WinFNT_ID_CP1251 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   126
   *     A superset of Russian ISO 8859-5 (with different ordering).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   127
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   128
   *   FT_WinFNT_ID_CP1252 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   129
   *     ANSI encoding.  A superset of ISO 8859-1.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   130
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   131
   *   FT_WinFNT_ID_CP1253 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   132
   *     A superset of Greek ISO 8859-7 (with minor modifications).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   133
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   134
   *   FT_WinFNT_ID_CP1254 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   135
   *     A superset of Turkish ISO 8859-9.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   136
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   137
   *   FT_WinFNT_ID_CP1255 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   138
   *     A superset of Hebrew ISO 8859-8 (with some modifications).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   139
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   140
   *   FT_WinFNT_ID_CP1256 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   141
   *     A superset of Arabic ISO 8859-6 (with different ordering).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   142
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   143
   *   FT_WinFNT_ID_CP1257 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   144
   *     A superset of Baltic ISO 8859-13 (with some deviations).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   145
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   146
   *   FT_WinFNT_ID_CP1258 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   147
   *     For Vietnamese.  This encoding doesn't cover all necessary
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   148
   *     characters.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   149
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   150
   *   FT_WinFNT_ID_CP1361 ::
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   151
   *     Korean (Johab).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   152
   */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   153
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   154
#define FT_WinFNT_ID_CP1252    0
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   155
#define FT_WinFNT_ID_DEFAULT   1
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   156
#define FT_WinFNT_ID_SYMBOL    2
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   157
#define FT_WinFNT_ID_MAC      77
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   158
#define FT_WinFNT_ID_CP932   128
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   159
#define FT_WinFNT_ID_CP949   129
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   160
#define FT_WinFNT_ID_CP1361  130
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   161
#define FT_WinFNT_ID_CP936   134
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   162
#define FT_WinFNT_ID_CP950   136
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   163
#define FT_WinFNT_ID_CP1253  161
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   164
#define FT_WinFNT_ID_CP1254  162
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   165
#define FT_WinFNT_ID_CP1258  163
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   166
#define FT_WinFNT_ID_CP1255  177
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   167
#define FT_WinFNT_ID_CP1256  178
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   168
#define FT_WinFNT_ID_CP1257  186
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   169
#define FT_WinFNT_ID_CP1251  204
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   170
#define FT_WinFNT_ID_CP874   222
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   171
#define FT_WinFNT_ID_CP1250  238
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   172
#define FT_WinFNT_ID_OEM     255
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   173
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   174
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   175
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   176
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   177
  /* <Struct>                                                              */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   178
  /*    FT_WinFNT_HeaderRec                                                */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   179
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   180
  /* <Description>                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   181
  /*    Windows FNT Header info.                                           */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   182
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   183
  typedef struct  FT_WinFNT_HeaderRec_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   184
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   185
    FT_UShort  version;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   186
    FT_ULong   file_size;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   187
    FT_Byte    copyright[60];
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   188
    FT_UShort  file_type;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   189
    FT_UShort  nominal_point_size;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   190
    FT_UShort  vertical_resolution;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   191
    FT_UShort  horizontal_resolution;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   192
    FT_UShort  ascent;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   193
    FT_UShort  internal_leading;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   194
    FT_UShort  external_leading;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   195
    FT_Byte    italic;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   196
    FT_Byte    underline;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   197
    FT_Byte    strike_out;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   198
    FT_UShort  weight;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   199
    FT_Byte    charset;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   200
    FT_UShort  pixel_width;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   201
    FT_UShort  pixel_height;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   202
    FT_Byte    pitch_and_family;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   203
    FT_UShort  avg_width;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   204
    FT_UShort  max_width;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   205
    FT_Byte    first_char;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   206
    FT_Byte    last_char;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   207
    FT_Byte    default_char;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   208
    FT_Byte    break_char;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   209
    FT_UShort  bytes_per_row;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   210
    FT_ULong   device_offset;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   211
    FT_ULong   face_name_offset;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   212
    FT_ULong   bits_pointer;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   213
    FT_ULong   bits_offset;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   214
    FT_Byte    reserved;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   215
    FT_ULong   flags;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   216
    FT_UShort  A_space;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   217
    FT_UShort  B_space;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   218
    FT_UShort  C_space;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   219
    FT_UShort  color_table_offset;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   220
    FT_ULong   reserved1[4];
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   221
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   222
  } FT_WinFNT_HeaderRec;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   223
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   224
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   225
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   226
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   227
  /* <Struct>                                                              */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   228
  /*    FT_WinFNT_Header                                                   */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   229
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   230
  /* <Description>                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   231
  /*    A handle to an @FT_WinFNT_HeaderRec structure.                     */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   232
  /*                                                                       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   233
  typedef struct FT_WinFNT_HeaderRec_*  FT_WinFNT_Header;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   234
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   235
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   236
  /**********************************************************************
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   237
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   238
   * @function:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   239
   *    FT_Get_WinFNT_Header
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   240
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   241
   * @description:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   242
   *    Retrieve a Windows FNT font info header.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   243
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   244
   * @input:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   245
   *    face    :: A handle to the input face.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   246
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   247
   * @output:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   248
   *    aheader :: The WinFNT header.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   249
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   250
   * @return:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   251
   *   FreeType error code.  0~means success.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   252
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   253
   * @note:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   254
   *   This function only works with Windows FNT faces, returning an error
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   255
   *   otherwise.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   256
   */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   257
  FT_EXPORT( FT_Error )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   258
  FT_Get_WinFNT_Header( FT_Face               face,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   259
                        FT_WinFNT_HeaderRec  *aheader );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   260
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   261
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   262
  /* */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   263
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   264
FT_END_HEADER
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   265
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   266
#endif /* __FTWINFNT_H__ */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   267
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   268
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   269
/* END */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   270
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   271
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   272
/* Local Variables: */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   273
/* coding: utf-8    */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   274
/* End:             */