- Remove svn:needs-lock, svn:eol-type, and svn:eol-tyle properties.
[reactos.git] / reactos / lib / 3rdparty / freetype / include / freetype / internal / tttypes.h
index b307882..dfbb6a1 100644 (file)
-/***************************************************************************/\r
-/*                                                                         */\r
-/*  tttypes.h                                                              */\r
-/*                                                                         */\r
-/*    Basic SFNT/TrueType type definitions and interface (specification    */\r
-/*    only).                                                               */\r
-/*                                                                         */\r
-/*  Copyright 1996-2001, 2002, 2004, 2005, 2006, 2007 by                   */\r
-/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */\r
-/*                                                                         */\r
-/*  This file is part of the FreeType project, and may only be used,       */\r
-/*  modified, and distributed under the terms of the FreeType project      */\r
-/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */\r
-/*  this file you indicate that you have read the license and              */\r
-/*  understand and accept it fully.                                        */\r
-/*                                                                         */\r
-/***************************************************************************/\r
-\r
-\r
-#ifndef __TTTYPES_H__\r
-#define __TTTYPES_H__\r
-\r
-\r
-#include <ft2build.h>\r
-#include FT_TRUETYPE_TABLES_H\r
-#include FT_INTERNAL_OBJECTS_H\r
-\r
-#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT\r
-#include FT_MULTIPLE_MASTERS_H\r
-#endif\r
-\r
-\r
-FT_BEGIN_HEADER\r
-\r
-\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /***             REQUIRED TRUETYPE/OPENTYPE TABLES DEFINITIONS         ***/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TTC_HeaderRec                                                      */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    TrueType collection header.  This table contains the offsets of    */\r
-  /*    the font headers of each distinct TrueType face in the file.       */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    tag     :: Must be `ttc ' to indicate a TrueType collection.       */\r
-  /*                                                                       */\r
-  /*    version :: The version number.                                     */\r
-  /*                                                                       */\r
-  /*    count   :: The number of faces in the collection.  The             */\r
-  /*               specification says this should be an unsigned long, but */\r
-  /*               we use a signed long since we need the value -1 for     */\r
-  /*               specific purposes.                                      */\r
-  /*                                                                       */\r
-  /*    offsets :: The offsets of the font headers, one per face.          */\r
-  /*                                                                       */\r
-  typedef struct  TTC_HeaderRec_\r
-  {\r
-    FT_ULong   tag;\r
-    FT_Fixed   version;\r
-    FT_Long    count;\r
-    FT_ULong*  offsets;\r
-\r
-  } TTC_HeaderRec;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    SFNT_HeaderRec                                                     */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    SFNT file format header.                                           */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    format_tag     :: The font format tag.                             */\r
-  /*                                                                       */\r
-  /*    num_tables     :: The number of tables in file.                    */\r
-  /*                                                                       */\r
-  /*    search_range   :: Must be `16 * (max power of 2 <= num_tables)'.   */\r
-  /*                                                                       */\r
-  /*    entry_selector :: Must be log2 of `search_range / 16'.             */\r
-  /*                                                                       */\r
-  /*    range_shift    :: Must be `num_tables * 16 - search_range'.        */\r
-  /*                                                                       */\r
-  typedef struct  SFNT_HeaderRec_\r
-  {\r
-    FT_ULong   format_tag;\r
-    FT_UShort  num_tables;\r
-    FT_UShort  search_range;\r
-    FT_UShort  entry_selector;\r
-    FT_UShort  range_shift;\r
-\r
-    FT_ULong   offset;  /* not in file */\r
-\r
-  } SFNT_HeaderRec, *SFNT_Header;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_TableRec                                                        */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    This structure describes a given table of a TrueType font.         */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    Tag      :: A four-bytes tag describing the table.                 */\r
-  /*                                                                       */\r
-  /*    CheckSum :: The table checksum.  This value can be ignored.        */\r
-  /*                                                                       */\r
-  /*    Offset   :: The offset of the table from the start of the TrueType */\r
-  /*                font in its resource.                                  */\r
-  /*                                                                       */\r
-  /*    Length   :: The table length (in bytes).                           */\r
-  /*                                                                       */\r
-  typedef struct  TT_TableRec_\r
-  {\r
-    FT_ULong  Tag;        /*        table type */\r
-    FT_ULong  CheckSum;   /*    table checksum */\r
-    FT_ULong  Offset;     /* table file offset */\r
-    FT_ULong  Length;     /*      table length */\r
-\r
-  } TT_TableRec, *TT_Table;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_LongMetricsRec                                                  */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure modeling the long metrics of the `hmtx' and `vmtx'     */\r
-  /*    TrueType tables.  The values are expressed in font units.          */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    advance :: The advance width or height for the glyph.              */\r
-  /*                                                                       */\r
-  /*    bearing :: The left-side or top-side bearing for the glyph.        */\r
-  /*                                                                       */\r
-  typedef struct  TT_LongMetricsRec_\r
-  {\r
-    FT_UShort  advance;\r
-    FT_Short   bearing;\r
-\r
-  } TT_LongMetricsRec, *TT_LongMetrics;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Type>                                                                */\r
-  /*    TT_ShortMetrics                                                    */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A simple type to model the short metrics of the `hmtx' and `vmtx'  */\r
-  /*    tables.                                                            */\r
-  /*                                                                       */\r
-  typedef FT_Short  TT_ShortMetrics;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_NameEntryRec                                                    */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure modeling TrueType name records.  Name records are used */\r
-  /*    to store important strings like family name, style name,           */\r
-  /*    copyright, etc. in _localized_ versions (i.e., language, encoding, */\r
-  /*    etc).                                                              */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    platformID   :: The ID of the name's encoding platform.            */\r
-  /*                                                                       */\r
-  /*    encodingID   :: The platform-specific ID for the name's encoding.  */\r
-  /*                                                                       */\r
-  /*    languageID   :: The platform-specific ID for the name's language.  */\r
-  /*                                                                       */\r
-  /*    nameID       :: The ID specifying what kind of name this is.       */\r
-  /*                                                                       */\r
-  /*    stringLength :: The length of the string in bytes.                 */\r
-  /*                                                                       */\r
-  /*    stringOffset :: The offset to the string in the `name' table.      */\r
-  /*                                                                       */\r
-  /*    string       :: A pointer to the string's bytes.  Note that these  */\r
-  /*                    are usually UTF-16 encoded characters.             */\r
-  /*                                                                       */\r
-  typedef struct  TT_NameEntryRec_\r
-  {\r
-    FT_UShort  platformID;\r
-    FT_UShort  encodingID;\r
-    FT_UShort  languageID;\r
-    FT_UShort  nameID;\r
-    FT_UShort  stringLength;\r
-    FT_ULong   stringOffset;\r
-\r
-    /* this last field is not defined in the spec */\r
-    /* but used by the FreeType engine            */\r
-\r
-    FT_Byte*   string;\r
-\r
-  } TT_NameEntryRec, *TT_NameEntry;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_NameTableRec                                                    */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure modeling the TrueType name table.                      */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    format         :: The format of the name table.                    */\r
-  /*                                                                       */\r
-  /*    numNameRecords :: The number of names in table.                    */\r
-  /*                                                                       */\r
-  /*    storageOffset  :: The offset of the name table in the `name'       */\r
-  /*                      TrueType table.                                  */\r
-  /*                                                                       */\r
-  /*    names          :: An array of name records.                        */\r
-  /*                                                                       */\r
-  /*    stream         :: the file's input stream.                         */\r
-  /*                                                                       */\r
-  typedef struct  TT_NameTableRec_\r
-  {\r
-    FT_UShort         format;\r
-    FT_UInt           numNameRecords;\r
-    FT_UInt           storageOffset;\r
-    TT_NameEntryRec*  names;\r
-    FT_Stream         stream;\r
-\r
-  } TT_NameTableRec, *TT_NameTable;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /***             OPTIONAL TRUETYPE/OPENTYPE TABLES DEFINITIONS         ***/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_GaspRangeRec                                                    */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A tiny structure used to model a gasp range according to the       */\r
-  /*    TrueType specification.                                            */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    maxPPEM  :: The maximum ppem value to which `gaspFlag' applies.    */\r
-  /*                                                                       */\r
-  /*    gaspFlag :: A flag describing the grid-fitting and anti-aliasing   */\r
-  /*                modes to be used.                                      */\r
-  /*                                                                       */\r
-  typedef struct  TT_GaspRangeRec_\r
-  {\r
-    FT_UShort  maxPPEM;\r
-    FT_UShort  gaspFlag;\r
-\r
-  } TT_GaspRangeRec, *TT_GaspRange;\r
-\r
-\r
-#define TT_GASP_GRIDFIT  0x01\r
-#define TT_GASP_DOGRAY   0x02\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_GaspRec                                                         */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure modeling the TrueType `gasp' table used to specify     */\r
-  /*    grid-fitting and anti-aliasing behaviour.                          */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    version    :: The version number.                                  */\r
-  /*                                                                       */\r
-  /*    numRanges  :: The number of gasp ranges in table.                  */\r
-  /*                                                                       */\r
-  /*    gaspRanges :: An array of gasp ranges.                             */\r
-  /*                                                                       */\r
-  typedef struct  TT_Gasp_\r
-  {\r
-    FT_UShort     version;\r
-    FT_UShort     numRanges;\r
-    TT_GaspRange  gaspRanges;\r
-\r
-  } TT_GaspRec;\r
-\r
-\r
-#ifdef FT_CONFIG_OPTION_OLD_INTERNALS\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_HdmxEntryRec                                                    */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A small structure used to model the pre-computed widths of a given */\r
-  /*    size.  They are found in the `hdmx' table.                         */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    ppem      :: The pixels per EM value at which these metrics apply. */\r
-  /*                                                                       */\r
-  /*    max_width :: The maximum advance width for this metric.            */\r
-  /*                                                                       */\r
-  /*    widths    :: An array of widths.  Note: These are 8-bit bytes.     */\r
-  /*                                                                       */\r
-  typedef struct  TT_HdmxEntryRec_\r
-  {\r
-    FT_Byte   ppem;\r
-    FT_Byte   max_width;\r
-    FT_Byte*  widths;\r
-\r
-  } TT_HdmxEntryRec, *TT_HdmxEntry;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_HdmxRec                                                         */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure used to model the `hdmx' table, which contains         */\r
-  /*    pre-computed widths for a set of given sizes/dimensions.           */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    version     :: The version number.                                 */\r
-  /*                                                                       */\r
-  /*    num_records :: The number of hdmx records.                         */\r
-  /*                                                                       */\r
-  /*    records     :: An array of hdmx records.                           */\r
-  /*                                                                       */\r
-  typedef struct  TT_HdmxRec_\r
-  {\r
-    FT_UShort     version;\r
-    FT_Short      num_records;\r
-    TT_HdmxEntry  records;\r
-\r
-  } TT_HdmxRec, *TT_Hdmx;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_Kern0_PairRec                                                   */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure used to model a kerning pair for the kerning table     */\r
-  /*    format 0.  The engine now loads this table if it finds one in the  */\r
-  /*    font file.                                                         */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    left  :: The index of the left glyph in pair.                      */\r
-  /*                                                                       */\r
-  /*    right :: The index of the right glyph in pair.                     */\r
-  /*                                                                       */\r
-  /*    value :: The kerning distance.  A positive value spaces the        */\r
-  /*             glyphs, a negative one makes them closer.                 */\r
-  /*                                                                       */\r
-  typedef struct  TT_Kern0_PairRec_\r
-  {\r
-    FT_UShort  left;   /* index of left  glyph in pair */\r
-    FT_UShort  right;  /* index of right glyph in pair */\r
-    FT_FWord   value;  /* kerning value                */\r
-\r
-  } TT_Kern0_PairRec, *TT_Kern0_Pair;\r
-\r
-#endif /* FT_CONFIG_OPTION_OLD_INTERNALS */\r
-\r
-\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /***                    EMBEDDED BITMAPS SUPPORT                       ***/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_SBit_MetricsRec                                                 */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure used to hold the big metrics of a given glyph bitmap   */\r
-  /*    in a TrueType or OpenType font.  These are usually found in the    */\r
-  /*    `EBDT' (Microsoft) or `bloc' (Apple) table.                        */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    height       :: The glyph height in pixels.                        */\r
-  /*                                                                       */\r
-  /*    width        :: The glyph width in pixels.                         */\r
-  /*                                                                       */\r
-  /*    horiBearingX :: The horizontal left bearing.                       */\r
-  /*                                                                       */\r
-  /*    horiBearingY :: The horizontal top bearing.                        */\r
-  /*                                                                       */\r
-  /*    horiAdvance  :: The horizontal advance.                            */\r
-  /*                                                                       */\r
-  /*    vertBearingX :: The vertical left bearing.                         */\r
-  /*                                                                       */\r
-  /*    vertBearingY :: The vertical top bearing.                          */\r
-  /*                                                                       */\r
-  /*    vertAdvance  :: The vertical advance.                              */\r
-  /*                                                                       */\r
-  typedef struct  TT_SBit_MetricsRec_\r
-  {\r
-    FT_Byte  height;\r
-    FT_Byte  width;\r
-\r
-    FT_Char  horiBearingX;\r
-    FT_Char  horiBearingY;\r
-    FT_Byte  horiAdvance;\r
-\r
-    FT_Char  vertBearingX;\r
-    FT_Char  vertBearingY;\r
-    FT_Byte  vertAdvance;\r
-\r
-  } TT_SBit_MetricsRec, *TT_SBit_Metrics;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_SBit_SmallMetricsRec                                            */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure used to hold the small metrics of a given glyph bitmap */\r
-  /*    in a TrueType or OpenType font.  These are usually found in the    */\r
-  /*    `EBDT' (Microsoft) or the `bdat' (Apple) table.                    */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    height   :: The glyph height in pixels.                            */\r
-  /*                                                                       */\r
-  /*    width    :: The glyph width in pixels.                             */\r
-  /*                                                                       */\r
-  /*    bearingX :: The left-side bearing.                                 */\r
-  /*                                                                       */\r
-  /*    bearingY :: The top-side bearing.                                  */\r
-  /*                                                                       */\r
-  /*    advance  :: The advance width or height.                           */\r
-  /*                                                                       */\r
-  typedef struct  TT_SBit_Small_Metrics_\r
-  {\r
-    FT_Byte  height;\r
-    FT_Byte  width;\r
-\r
-    FT_Char  bearingX;\r
-    FT_Char  bearingY;\r
-    FT_Byte  advance;\r
-\r
-  } TT_SBit_SmallMetricsRec, *TT_SBit_SmallMetrics;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_SBit_LineMetricsRec                                             */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure used to describe the text line metrics of a given      */\r
-  /*    bitmap strike, for either a horizontal or vertical layout.         */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    ascender                :: The ascender in pixels.                 */\r
-  /*                                                                       */\r
-  /*    descender               :: The descender in pixels.                */\r
-  /*                                                                       */\r
-  /*    max_width               :: The maximum glyph width in pixels.      */\r
-  /*                                                                       */\r
-  /*    caret_slope_enumerator  :: Rise of the caret slope, typically set  */\r
-  /*                               to 1 for non-italic fonts.              */\r
-  /*                                                                       */\r
-  /*    caret_slope_denominator :: Rise of the caret slope, typically set  */\r
-  /*                               to 0 for non-italic fonts.              */\r
-  /*                                                                       */\r
-  /*    caret_offset            :: Offset in pixels to move the caret for  */\r
-  /*                               proper positioning.                     */\r
-  /*                                                                       */\r
-  /*    min_origin_SB           :: Minimum of horiBearingX (resp.          */\r
-  /*                               vertBearingY).                          */\r
-  /*    min_advance_SB          :: Minimum of                              */\r
-  /*                                                                       */\r
-  /*                                 horizontal advance -                  */\r
-  /*                                   ( horiBearingX + width )            */\r
-  /*                                                                       */\r
-  /*                               resp.                                   */\r
-  /*                                                                       */\r
-  /*                                 vertical advance -                    */\r
-  /*                                   ( vertBearingY + height )           */\r
-  /*                                                                       */\r
-  /*    max_before_BL           :: Maximum of horiBearingY (resp.          */\r
-  /*                               vertBearingY).                          */\r
-  /*                                                                       */\r
-  /*    min_after_BL            :: Minimum of                              */\r
-  /*                                                                       */\r
-  /*                                 horiBearingY - height                 */\r
-  /*                                                                       */\r
-  /*                               resp.                                   */\r
-  /*                                                                       */\r
-  /*                                 vertBearingX - width                  */\r
-  /*                                                                       */\r
-  /*    pads                    :: Unused (to make the size of the record  */\r
-  /*                               a multiple of 32 bits.                  */\r
-  /*                                                                       */\r
-  typedef struct  TT_SBit_LineMetricsRec_\r
-  {\r
-    FT_Char  ascender;\r
-    FT_Char  descender;\r
-    FT_Byte  max_width;\r
-    FT_Char  caret_slope_numerator;\r
-    FT_Char  caret_slope_denominator;\r
-    FT_Char  caret_offset;\r
-    FT_Char  min_origin_SB;\r
-    FT_Char  min_advance_SB;\r
-    FT_Char  max_before_BL;\r
-    FT_Char  min_after_BL;\r
-    FT_Char  pads[2];\r
-\r
-  } TT_SBit_LineMetricsRec, *TT_SBit_LineMetrics;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_SBit_RangeRec                                                   */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A TrueType/OpenType subIndexTable as defined in the `EBLC'         */\r
-  /*    (Microsoft) or `bloc' (Apple) tables.                              */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    first_glyph   :: The first glyph index in the range.               */\r
-  /*                                                                       */\r
-  /*    last_glyph    :: The last glyph index in the range.                */\r
-  /*                                                                       */\r
-  /*    index_format  :: The format of index table.  Valid values are 1    */\r
-  /*                     to 5.                                             */\r
-  /*                                                                       */\r
-  /*    image_format  :: The format of `EBDT' image data.                  */\r
-  /*                                                                       */\r
-  /*    image_offset  :: The offset to image data in `EBDT'.               */\r
-  /*                                                                       */\r
-  /*    image_size    :: For index formats 2 and 5.  This is the size in   */\r
-  /*                     bytes of each glyph bitmap.                       */\r
-  /*                                                                       */\r
-  /*    big_metrics   :: For index formats 2 and 5.  This is the big       */\r
-  /*                     metrics for each glyph bitmap.                    */\r
-  /*                                                                       */\r
-  /*    num_glyphs    :: For index formats 4 and 5.  This is the number of */\r
-  /*                     glyphs in the code array.                         */\r
-  /*                                                                       */\r
-  /*    glyph_offsets :: For index formats 1 and 3.                        */\r
-  /*                                                                       */\r
-  /*    glyph_codes   :: For index formats 4 and 5.                        */\r
-  /*                                                                       */\r
-  /*    table_offset  :: The offset of the index table in the `EBLC'       */\r
-  /*                     table.  Only used during strike loading.          */\r
-  /*                                                                       */\r
-  typedef struct  TT_SBit_RangeRec\r
-  {\r
-    FT_UShort           first_glyph;\r
-    FT_UShort           last_glyph;\r
-\r
-    FT_UShort           index_format;\r
-    FT_UShort           image_format;\r
-    FT_ULong            image_offset;\r
-\r
-    FT_ULong            image_size;\r
-    TT_SBit_MetricsRec  metrics;\r
-    FT_ULong            num_glyphs;\r
-\r
-    FT_ULong*           glyph_offsets;\r
-    FT_UShort*          glyph_codes;\r
-\r
-    FT_ULong            table_offset;\r
-\r
-  } TT_SBit_RangeRec, *TT_SBit_Range;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_SBit_StrikeRec                                                  */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure used describe a given bitmap strike in the `EBLC'      */\r
-  /*    (Microsoft) or `bloc' (Apple) tables.                              */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*   num_index_ranges :: The number of index ranges.                     */\r
-  /*                                                                       */\r
-  /*   index_ranges     :: An array of glyph index ranges.                 */\r
-  /*                                                                       */\r
-  /*   color_ref        :: Unused.  `color_ref' is put in for future       */\r
-  /*                       enhancements, but these fields are already      */\r
-  /*                       in use by other platforms (e.g. Newton).        */\r
-  /*                       For details, please see                         */\r
-  /*                                                                       */\r
-  /*                         http://fonts.apple.com/                       */\r
-  /*                                TTRefMan/RM06/Chap6bloc.html           */\r
-  /*                                                                       */\r
-  /*   hori             :: The line metrics for horizontal layouts.        */\r
-  /*                                                                       */\r
-  /*   vert             :: The line metrics for vertical layouts.          */\r
-  /*                                                                       */\r
-  /*   start_glyph      :: The lowest glyph index for this strike.         */\r
-  /*                                                                       */\r
-  /*   end_glyph        :: The highest glyph index for this strike.        */\r
-  /*                                                                       */\r
-  /*   x_ppem           :: The number of horizontal pixels per EM.         */\r
-  /*                                                                       */\r
-  /*   y_ppem           :: The number of vertical pixels per EM.           */\r
-  /*                                                                       */\r
-  /*   bit_depth        :: The bit depth.  Valid values are 1, 2, 4,       */\r
-  /*                       and 8.                                          */\r
-  /*                                                                       */\r
-  /*   flags            :: Is this a vertical or horizontal strike?  For   */\r
-  /*                       details, please see                             */\r
-  /*                                                                       */\r
-  /*                         http://fonts.apple.com/                       */\r
-  /*                                TTRefMan/RM06/Chap6bloc.html           */\r
-  /*                                                                       */\r
-  typedef struct  TT_SBit_StrikeRec_\r
-  {\r
-    FT_Int                  num_ranges;\r
-    TT_SBit_Range           sbit_ranges;\r
-    FT_ULong                ranges_offset;\r
-\r
-    FT_ULong                color_ref;\r
-\r
-    TT_SBit_LineMetricsRec  hori;\r
-    TT_SBit_LineMetricsRec  vert;\r
-\r
-    FT_UShort               start_glyph;\r
-    FT_UShort               end_glyph;\r
-\r
-    FT_Byte                 x_ppem;\r
-    FT_Byte                 y_ppem;\r
-\r
-    FT_Byte                 bit_depth;\r
-    FT_Char                 flags;\r
-\r
-  } TT_SBit_StrikeRec, *TT_SBit_Strike;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_SBit_ComponentRec                                               */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A simple structure to describe a compound sbit element.            */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    glyph_code :: The element's glyph index.                           */\r
-  /*                                                                       */\r
-  /*    x_offset   :: The element's left bearing.                          */\r
-  /*                                                                       */\r
-  /*    y_offset   :: The element's top bearing.                           */\r
-  /*                                                                       */\r
-  typedef struct  TT_SBit_ComponentRec_\r
-  {\r
-    FT_UShort  glyph_code;\r
-    FT_Char    x_offset;\r
-    FT_Char    y_offset;\r
-\r
-  } TT_SBit_ComponentRec, *TT_SBit_Component;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_SBit_ScaleRec                                                   */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A structure used describe a given bitmap scaling table, as defined */\r
-  /*    in the `EBSC' table.                                               */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    hori              :: The horizontal line metrics.                  */\r
-  /*                                                                       */\r
-  /*    vert              :: The vertical line metrics.                    */\r
-  /*                                                                       */\r
-  /*    x_ppem            :: The number of horizontal pixels per EM.       */\r
-  /*                                                                       */\r
-  /*    y_ppem            :: The number of vertical pixels per EM.         */\r
-  /*                                                                       */\r
-  /*    x_ppem_substitute :: Substitution x_ppem value.                    */\r
-  /*                                                                       */\r
-  /*    y_ppem_substitute :: Substitution y_ppem value.                    */\r
-  /*                                                                       */\r
-  typedef struct  TT_SBit_ScaleRec_\r
-  {\r
-    TT_SBit_LineMetricsRec  hori;\r
-    TT_SBit_LineMetricsRec  vert;\r
-\r
-    FT_Byte                 x_ppem;\r
-    FT_Byte                 y_ppem;\r
-\r
-    FT_Byte                 x_ppem_substitute;\r
-    FT_Byte                 y_ppem_substitute;\r
-\r
-  } TT_SBit_ScaleRec, *TT_SBit_Scale;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /***                  POSTSCRIPT GLYPH NAMES SUPPORT                   ***/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_Post_20Rec                                                      */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    Postscript names sub-table, format 2.0.  Stores the PS name of     */\r
-  /*    each glyph in the font face.                                       */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    num_glyphs    :: The number of named glyphs in the table.          */\r
-  /*                                                                       */\r
-  /*    num_names     :: The number of PS names stored in the table.       */\r
-  /*                                                                       */\r
-  /*    glyph_indices :: The indices of the glyphs in the names arrays.    */\r
-  /*                                                                       */\r
-  /*    glyph_names   :: The PS names not in Mac Encoding.                 */\r
-  /*                                                                       */\r
-  typedef struct  TT_Post_20Rec_\r
-  {\r
-    FT_UShort   num_glyphs;\r
-    FT_UShort   num_names;\r
-    FT_UShort*  glyph_indices;\r
-    FT_Char**   glyph_names;\r
-\r
-  } TT_Post_20Rec, *TT_Post_20;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_Post_25Rec                                                      */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    Postscript names sub-table, format 2.5.  Stores the PS name of     */\r
-  /*    each glyph in the font face.                                       */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    num_glyphs :: The number of glyphs in the table.                   */\r
-  /*                                                                       */\r
-  /*    offsets    :: An array of signed offsets in a normal Mac           */\r
-  /*                  Postscript name encoding.                            */\r
-  /*                                                                       */\r
-  typedef struct  TT_Post_25_\r
-  {\r
-    FT_UShort  num_glyphs;\r
-    FT_Char*   offsets;\r
-\r
-  } TT_Post_25Rec, *TT_Post_25;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_Post_NamesRec                                                   */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    Postscript names table, either format 2.0 or 2.5.                  */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    loaded    :: A flag to indicate whether the PS names are loaded.   */\r
-  /*                                                                       */\r
-  /*    format_20 :: The sub-table used for format 2.0.                    */\r
-  /*                                                                       */\r
-  /*    format_25 :: The sub-table used for format 2.5.                    */\r
-  /*                                                                       */\r
-  typedef struct  TT_Post_NamesRec_\r
-  {\r
-    FT_Bool  loaded;\r
-\r
-    union\r
-    {\r
-      TT_Post_20Rec  format_20;\r
-      TT_Post_25Rec  format_25;\r
-\r
-    } names;\r
-\r
-  } TT_Post_NamesRec, *TT_Post_Names;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /***                    GX VARIATION TABLE SUPPORT                     ***/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-\r
-\r
-#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT\r
-  typedef struct GX_BlendRec_  *GX_Blend;\r
-#endif\r
-\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /***              EMBEDDED BDF PROPERTIES TABLE SUPPORT                ***/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-\r
-  /*\r
-   * These types are used to support a `BDF ' table that isn't part of the\r
-   * official TrueType specification.  It is mainly used in SFNT-based\r
-   * bitmap fonts that were generated from a set of BDF fonts.\r
-   *\r
-   * The format of the table is as follows.\r
-   *\r
-   *   USHORT   version      `BDF ' table version number, should be 0x0001.\r
-   *   USHORT   strikeCount  Number of strikes (bitmap sizes) in this table.\r
-   *   ULONG    stringTable  Offset (from start of BDF table) to string\r
-   *                         table.\r
-   *\r
-   * This is followed by an array of `strikeCount' descriptors, having the\r
-   * following format.\r
-   *\r
-   *   USHORT   ppem         Vertical pixels per EM for this strike.\r
-   *   USHORT   numItems     Number of items for this strike (properties and\r
-   *                         atoms).  Maximum is 255.\r
-   *\r
-   * This array in turn is followed by `strikeCount' value sets.  Each\r
-   * `value set' is an array of `numItems' items with the following format.\r
-   *\r
-   *   ULONG    item_name    Offset in string table to item name.\r
-   *   USHORT   item_type    The item type.  Possible values are\r
-   *                            0 => string (e.g., COMMENT)\r
-   *                            1 => atom   (e.g., FONT or even SIZE)\r
-   *                            2 => int32\r
-   *                            3 => uint32\r
-   *                         0x10 => A flag to indicate a properties.  This\r
-   *                                 is ORed with the above values.\r
-   *   ULONG    item_value   For strings  => Offset into string table without\r
-   *                                         the corresponding double quotes.\r
-   *                         For atoms    => Offset into string table.\r
-   *                         For integers => Direct value.\r
-   *\r
-   * All strings in the string table consist of bytes and are\r
-   * zero-terminated.\r
-   *\r
-   */\r
-\r
-#ifdef TT_CONFIG_OPTION_BDF\r
-\r
-  typedef struct  TT_BDFRec_\r
-  {\r
-    FT_Byte*   table;\r
-    FT_Byte*   table_end;\r
-    FT_Byte*   strings;\r
-    FT_UInt32  strings_size;\r
-    FT_UInt    num_strikes;\r
-    FT_Bool    loaded;\r
-\r
-  } TT_BDFRec, *TT_BDF;\r
-\r
-#endif /* TT_CONFIG_OPTION_BDF */\r
-\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /***                  ORIGINAL TT_FACE CLASS DEFINITION                ***/\r
-  /***                                                                   ***/\r
-  /***                                                                   ***/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-  /*************************************************************************/\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* This structure/class is defined here because it is common to the      */\r
-  /* following formats: TTF, OpenType-TT, and OpenType-CFF.                */\r
-  /*                                                                       */\r
-  /* Note, however, that the classes TT_Size and TT_GlyphSlot are not      */\r
-  /* shared between font drivers, and are thus defined in `ttobjs.h'.      */\r
-  /*                                                                       */\r
-  /*************************************************************************/\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <Type>                                                                */\r
-  /*    TT_Face                                                            */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    A handle to a TrueType face/font object.  A TT_Face encapsulates   */\r
-  /*    the resolution and scaling independent parts of a TrueType font    */\r
-  /*    resource.                                                          */\r
-  /*                                                                       */\r
-  /* <Note>                                                                */\r
-  /*    The TT_Face structure is also used as a `parent class' for the     */\r
-  /*    OpenType-CFF class (T2_Face).                                      */\r
-  /*                                                                       */\r
-  typedef struct TT_FaceRec_*  TT_Face;\r
-\r
-\r
-  /* a function type used for the truetype bytecode interpreter hooks */\r
-  typedef FT_Error\r
-  (*TT_Interpreter)( void*  exec_context );\r
-\r
-  /* forward declaration */\r
-  typedef struct TT_LoaderRec_*  TT_Loader;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <FuncType>                                                            */\r
-  /*    TT_Loader_GotoTableFunc                                            */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    Seeks a stream to the start of a given TrueType table.             */\r
-  /*                                                                       */\r
-  /* <Input>                                                               */\r
-  /*    face   :: A handle to the target face object.                      */\r
-  /*                                                                       */\r
-  /*    tag    :: A 4-byte tag used to name the table.                     */\r
-  /*                                                                       */\r
-  /*    stream :: The input stream.                                        */\r
-  /*                                                                       */\r
-  /* <Output>                                                              */\r
-  /*    length :: The length of the table in bytes.  Set to 0 if not       */\r
-  /*              needed.                                                  */\r
-  /*                                                                       */\r
-  /* <Return>                                                              */\r
-  /*    FreeType error code.  0 means success.                             */\r
-  /*                                                                       */\r
-  /* <Note>                                                                */\r
-  /*    The stream cursor must be at the font file's origin.               */\r
-  /*                                                                       */\r
-  typedef FT_Error\r
-  (*TT_Loader_GotoTableFunc)( TT_Face    face,\r
-                              FT_ULong   tag,\r
-                              FT_Stream  stream,\r
-                              FT_ULong*  length );\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <FuncType>                                                            */\r
-  /*    TT_Loader_StartGlyphFunc                                           */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    Seeks a stream to the start of a given glyph element, and opens a  */\r
-  /*    frame for it.                                                      */\r
-  /*                                                                       */\r
-  /* <Input>                                                               */\r
-  /*    loader      :: The current TrueType glyph loader object.           */\r
-  /*                                                                       */\r
-  /*    glyph index :: The index of the glyph to access.                   */\r
-  /*                                                                       */\r
-  /*    offset      :: The offset of the glyph according to the            */\r
-  /*                   `locations' table.                                  */\r
-  /*                                                                       */\r
-  /*    byte_count  :: The size of the frame in bytes.                     */\r
-  /*                                                                       */\r
-  /* <Return>                                                              */\r
-  /*    FreeType error code.  0 means success.                             */\r
-  /*                                                                       */\r
-  /* <Note>                                                                */\r
-  /*    This function is normally equivalent to FT_STREAM_SEEK(offset)     */\r
-  /*    followed by FT_FRAME_ENTER(byte_count) with the loader's stream,   */\r
-  /*    but alternative formats (e.g. compressed ones) might use something */\r
-  /*    different.                                                         */\r
-  /*                                                                       */\r
-  typedef FT_Error\r
-  (*TT_Loader_StartGlyphFunc)( TT_Loader  loader,\r
-                               FT_UInt    glyph_index,\r
-                               FT_ULong   offset,\r
-                               FT_UInt    byte_count );\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <FuncType>                                                            */\r
-  /*    TT_Loader_ReadGlyphFunc                                            */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    Reads one glyph element (its header, a simple glyph, or a          */\r
-  /*    composite) from the loader's current stream frame.                 */\r
-  /*                                                                       */\r
-  /* <Input>                                                               */\r
-  /*    loader :: The current TrueType glyph loader object.                */\r
-  /*                                                                       */\r
-  /* <Return>                                                              */\r
-  /*    FreeType error code.  0 means success.                             */\r
-  /*                                                                       */\r
-  typedef FT_Error\r
-  (*TT_Loader_ReadGlyphFunc)( TT_Loader  loader );\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /* <FuncType>                                                            */\r
-  /*    TT_Loader_EndGlyphFunc                                             */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    Closes the current loader stream frame for the glyph.              */\r
-  /*                                                                       */\r
-  /* <Input>                                                               */\r
-  /*    loader :: The current TrueType glyph loader object.                */\r
-  /*                                                                       */\r
-  typedef void\r
-  (*TT_Loader_EndGlyphFunc)( TT_Loader  loader );\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /*                         TrueType Face Type                            */\r
-  /*                                                                       */\r
-  /* <Struct>                                                              */\r
-  /*    TT_Face                                                            */\r
-  /*                                                                       */\r
-  /* <Description>                                                         */\r
-  /*    The TrueType face class.  These objects model the resolution and   */\r
-  /*    point-size independent data found in a TrueType font file.         */\r
-  /*                                                                       */\r
-  /* <Fields>                                                              */\r
-  /*    root                 :: The base FT_Face structure, managed by the */\r
-  /*                            base layer.                                */\r
-  /*                                                                       */\r
-  /*    ttc_header           :: The TrueType collection header, used when  */\r
-  /*                            the file is a `ttc' rather than a `ttf'.   */\r
-  /*                            For ordinary font files, the field         */\r
-  /*                            `ttc_header.count' is set to 0.            */\r
-  /*                                                                       */\r
-  /*    format_tag           :: The font format tag.                       */\r
-  /*                                                                       */\r
-  /*    num_tables           :: The number of TrueType tables in this font */\r
-  /*                            file.                                      */\r
-  /*                                                                       */\r
-  /*    dir_tables           :: The directory of TrueType tables for this  */\r
-  /*                            font file.                                 */\r
-  /*                                                                       */\r
-  /*    header               :: The font's font header (`head' table).     */\r
-  /*                            Read on font opening.                      */\r
-  /*                                                                       */\r
-  /*    horizontal           :: The font's horizontal header (`hhea'       */\r
-  /*                            table).  This field also contains the      */\r
-  /*                            associated horizontal metrics table        */\r
-  /*                            (`hmtx').                                  */\r
-  /*                                                                       */\r
-  /*    max_profile          :: The font's maximum profile table.  Read on */\r
-  /*                            font opening.  Note that some maximum      */\r
-  /*                            values cannot be taken directly from this  */\r
-  /*                            table.  We thus define additional fields   */\r
-  /*                            below to hold the computed maxima.         */\r
-  /*                                                                       */\r
-  /*    vertical_info        :: A boolean which is set when the font file  */\r
-  /*                            contains vertical metrics.  If not, the    */\r
-  /*                            value of the `vertical' field is           */\r
-  /*                            undefined.                                 */\r
-  /*                                                                       */\r
-  /*    vertical             :: The font's vertical header (`vhea' table). */\r
-  /*                            This field also contains the associated    */\r
-  /*                            vertical metrics table (`vmtx'), if found. */\r
-  /*                            IMPORTANT: The contents of this field is   */\r
-  /*                            undefined if the `verticalInfo' field is   */\r
-  /*                            unset.                                     */\r
-  /*                                                                       */\r
-  /*    num_names            :: The number of name records within this     */\r
-  /*                            TrueType font.                             */\r
-  /*                                                                       */\r
-  /*    name_table           :: The table of name records (`name').        */\r
-  /*                                                                       */\r
-  /*    os2                  :: The font's OS/2 table (`OS/2').            */\r
-  /*                                                                       */\r
-  /*    postscript           :: The font's PostScript table (`post'        */\r
-  /*                            table).  The PostScript glyph names are    */\r
-  /*                            not loaded by the driver on face opening.  */\r
-  /*                            See the `ttpost' module for more details.  */\r
-  /*                                                                       */\r
-  /*    cmap_table           :: Address of the face's `cmap' SFNT table    */\r
-  /*                            in memory (it's an extracted frame).       */\r
-  /*                                                                       */\r
-  /*    cmap_size            :: The size in bytes of the `cmap_table'      */\r
-  /*                            described above.                           */\r
-  /*                                                                       */\r
-  /*    goto_table           :: A function called by each TrueType table   */\r
-  /*                            loader to position a stream's cursor to    */\r
-  /*                            the start of a given table according to    */\r
-  /*                            its tag.  It defaults to TT_Goto_Face but  */\r
-  /*                            can be different for strange formats (e.g. */\r
-  /*                            Type 42).                                  */\r
-  /*                                                                       */\r
-  /*    access_glyph_frame   :: A function used to access the frame of a   */\r
-  /*                            given glyph within the face's font file.   */\r
-  /*                                                                       */\r
-  /*    forget_glyph_frame   :: A function used to forget the frame of a   */\r
-  /*                            given glyph when all data has been loaded. */\r
-  /*                                                                       */\r
-  /*    read_glyph_header    :: A function used to read a glyph header.    */\r
-  /*                            It must be called between an `access' and  */\r
-  /*                            `forget'.                                  */\r
-  /*                                                                       */\r
-  /*    read_simple_glyph    :: A function used to read a simple glyph.    */\r
-  /*                            It must be called after the header was     */\r
-  /*                            read, and before the `forget'.             */\r
-  /*                                                                       */\r
-  /*    read_composite_glyph :: A function used to read a composite glyph. */\r
-  /*                            It must be called after the header was     */\r
-  /*                            read, and before the `forget'.             */\r
-  /*                                                                       */\r
-  /*    sfnt                 :: A pointer to the SFNT service.             */\r
-  /*                                                                       */\r
-  /*    psnames              :: A pointer to the PostScript names service. */\r
-  /*                                                                       */\r
-  /*    hdmx                 :: The face's horizontal device metrics       */\r
-  /*                            (`hdmx' table).  This table is optional in */\r
-  /*                            TrueType/OpenType fonts.                   */\r
-  /*                                                                       */\r
-  /*    gasp                 :: The grid-fitting and scaling properties    */\r
-  /*                            table (`gasp').  This table is optional in */\r
-  /*                            TrueType/OpenType fonts.                   */\r
-  /*                                                                       */\r
-  /*    pclt                 :: The `pclt' SFNT table.                     */\r
-  /*                                                                       */\r
-  /*    num_sbit_strikes     :: The number of sbit strikes, i.e., bitmap   */\r
-  /*                            sizes, embedded in this font.              */\r
-  /*                                                                       */\r
-  /*    sbit_strikes         :: An array of sbit strikes embedded in this  */\r
-  /*                            font.  This table is optional in a         */\r
-  /*                            TrueType/OpenType font.                    */\r
-  /*                                                                       */\r
-  /*    num_sbit_scales      :: The number of sbit scales for this font.   */\r
-  /*                                                                       */\r
-  /*    sbit_scales          :: Array of sbit scales embedded in this      */\r
-  /*                            font.  This table is optional in a         */\r
-  /*                            TrueType/OpenType font.                    */\r
-  /*                                                                       */\r
-  /*    postscript_names     :: A table used to store the Postscript names */\r
-  /*                            of  the glyphs for this font.  See the     */\r
-  /*                            file  `ttconfig.h' for comments on the     */\r
-  /*                            TT_CONFIG_OPTION_POSTSCRIPT_NAMES option.  */\r
-  /*                                                                       */\r
-  /*    num_locations        :: The number of glyph locations in this      */\r
-  /*                            TrueType file.  This should be             */\r
-  /*                            identical to the number of glyphs.         */\r
-  /*                            Ignored for Type 2 fonts.                  */\r
-  /*                                                                       */\r
-  /*    glyph_locations      :: An array of longs.  These are offsets to   */\r
-  /*                            glyph data within the `glyf' table.        */\r
-  /*                            Ignored for Type 2 font faces.             */\r
-  /*                                                                       */\r
-  /*    glyf_len             :: The length of the `glyf' table.  Needed    */\r
-  /*                            for malformed `loca' tables.               */\r
-  /*                                                                       */\r
-  /*    font_program_size    :: Size in bytecodes of the face's font       */\r
-  /*                            program.  0 if none defined.  Ignored for  */\r
-  /*                            Type 2 fonts.                              */\r
-  /*                                                                       */\r
-  /*    font_program         :: The face's font program (bytecode stream)  */\r
-  /*                            executed at load time, also used during    */\r
-  /*                            glyph rendering.  Comes from the `fpgm'    */\r
-  /*                            table.  Ignored for Type 2 font fonts.     */\r
-  /*                                                                       */\r
-  /*    cvt_program_size     :: The size in bytecodes of the face's cvt    */\r
-  /*                            program.  Ignored for Type 2 fonts.        */\r
-  /*                                                                       */\r
-  /*    cvt_program          :: The face's cvt program (bytecode stream)   */\r
-  /*                            executed each time an instance/size is     */\r
-  /*                            changed/reset.  Comes from the `prep'      */\r
-  /*                            table.  Ignored for Type 2 fonts.          */\r
-  /*                                                                       */\r
-  /*    cvt_size             :: Size of the control value table (in        */\r
-  /*                            entries).   Ignored for Type 2 fonts.      */\r
-  /*                                                                       */\r
-  /*    cvt                  :: The face's original control value table.   */\r
-  /*                            Coordinates are expressed in unscaled font */\r
-  /*                            units.  Comes from the `cvt ' table.       */\r
-  /*                            Ignored for Type 2 fonts.                  */\r
-  /*                                                                       */\r
-  /*    num_kern_pairs       :: The number of kerning pairs present in the */\r
-  /*                            font file.  The engine only loads the      */\r
-  /*                            first horizontal format 0 kern table it    */\r
-  /*                            finds in the font file.  Ignored for       */\r
-  /*                            Type 2 fonts.                              */\r
-  /*                                                                       */\r
-  /*    kern_table_index     :: The index of the kerning table in the font */\r
-  /*                            kerning directory.  Ignored for Type 2     */\r
-  /*                            fonts.                                     */\r
-  /*                                                                       */\r
-  /*    interpreter          :: A pointer to the TrueType bytecode         */\r
-  /*                            interpreters field is also used to hook    */\r
-  /*                            the debugger in `ttdebug'.                 */\r
-  /*                                                                       */\r
-  /*    unpatented_hinting   :: If true, use only unpatented methods in    */\r
-  /*                            the bytecode interpreter.                  */\r
-  /*                                                                       */\r
-  /*    doblend              :: A boolean which is set if the font should  */\r
-  /*                            be blended (this is for GX var).           */\r
-  /*                                                                       */\r
-  /*    blend                :: Contains the data needed to control GX     */\r
-  /*                            variation tables (rather like Multiple     */\r
-  /*                            Master data).                              */\r
-  /*                                                                       */\r
-  /*    extra                :: Reserved for third-party font drivers.     */\r
-  /*                                                                       */\r
-  /*    postscript_name      :: The PS name of the font.  Used by the      */\r
-  /*                            postscript name service.                   */\r
-  /*                                                                       */\r
-  typedef struct  TT_FaceRec_\r
-  {\r
-    FT_FaceRec            root;\r
-\r
-    TTC_HeaderRec         ttc_header;\r
-\r
-    FT_ULong              format_tag;\r
-    FT_UShort             num_tables;\r
-    TT_Table              dir_tables;\r
-\r
-    TT_Header             header;       /* TrueType header table          */\r
-    TT_HoriHeader         horizontal;   /* TrueType horizontal header     */\r
-\r
-    TT_MaxProfile         max_profile;\r
-#ifdef FT_CONFIG_OPTION_OLD_INTERNALS\r
-    FT_ULong              max_components;  /* stubbed to 0 */\r
-#endif\r
-\r
-    FT_Bool               vertical_info;\r
-    TT_VertHeader         vertical;     /* TT Vertical header, if present */\r
-\r
-    FT_UShort             num_names;    /* number of name records  */\r
-    TT_NameTableRec       name_table;   /* name table              */\r
-\r
-    TT_OS2                os2;          /* TrueType OS/2 table            */\r
-    TT_Postscript         postscript;   /* TrueType Postscript table      */\r
-\r
-    FT_Byte*              cmap_table;   /* extracted `cmap' table */\r
-    FT_ULong              cmap_size;\r
-\r
-    TT_Loader_GotoTableFunc   goto_table;\r
-\r
-    TT_Loader_StartGlyphFunc  access_glyph_frame;\r
-    TT_Loader_EndGlyphFunc    forget_glyph_frame;\r
-    TT_Loader_ReadGlyphFunc   read_glyph_header;\r
-    TT_Loader_ReadGlyphFunc   read_simple_glyph;\r
-    TT_Loader_ReadGlyphFunc   read_composite_glyph;\r
-\r
-    /* a typeless pointer to the SFNT_Interface table used to load */\r
-    /* the basic TrueType tables in the face object                */\r
-    void*                 sfnt;\r
-\r
-    /* a typeless pointer to the FT_Service_PsCMapsRec table used to */\r
-    /* handle glyph names <-> unicode & Mac values                   */\r
-    void*                 psnames;\r
-\r
-\r
-    /***********************************************************************/\r
-    /*                                                                     */\r
-    /* Optional TrueType/OpenType tables                                   */\r
-    /*                                                                     */\r
-    /***********************************************************************/\r
-\r
-    /* horizontal device metrics */\r
-#ifdef FT_CONFIG_OPTION_OLD_INTERNALS\r
-    TT_HdmxRec            hdmx;\r
-#endif\r
-\r
-    /* grid-fitting and scaling table */\r
-    TT_GaspRec            gasp;                 /* the `gasp' table */\r
-\r
-    /* PCL 5 table */\r
-    TT_PCLT               pclt;\r
-\r
-    /* embedded bitmaps support */\r
-#ifdef FT_CONFIG_OPTION_OLD_INTERNALS\r
-    FT_ULong              num_sbit_strikes;\r
-    TT_SBit_Strike        sbit_strikes;\r
-#endif\r
-\r
-    FT_ULong              num_sbit_scales;\r
-    TT_SBit_Scale         sbit_scales;\r
-\r
-    /* postscript names table */\r
-    TT_Post_NamesRec      postscript_names;\r
-\r
-\r
-    /***********************************************************************/\r
-    /*                                                                     */\r
-    /* TrueType-specific fields (ignored by the OTF-Type2 driver)          */\r
-    /*                                                                     */\r
-    /***********************************************************************/\r
-\r
-    /* the glyph locations */\r
-#ifdef FT_CONFIG_OPTION_OLD_INTERNALS\r
-    FT_UShort             num_locations_stub;\r
-    FT_Long*              glyph_locations_stub;\r
-#endif\r
-\r
-    /* the font program, if any */\r
-    FT_ULong              font_program_size;\r
-    FT_Byte*              font_program;\r
-\r
-    /* the cvt program, if any */\r
-    FT_ULong              cvt_program_size;\r
-    FT_Byte*              cvt_program;\r
-\r
-    /* the original, unscaled, control value table */\r
-    FT_ULong              cvt_size;\r
-    FT_Short*             cvt;\r
-\r
-#ifdef FT_CONFIG_OPTION_OLD_INTERNALS\r
-    /* the format 0 kerning table, if any */\r
-    FT_Int                num_kern_pairs;\r
-    FT_Int                kern_table_index;\r
-    TT_Kern0_Pair         kern_pairs;\r
-#endif\r
-\r
-    /* A pointer to the bytecode interpreter to use.  This is also */\r
-    /* used to hook the debugger for the `ttdebug' utility.        */\r
-    TT_Interpreter        interpreter;\r
-\r
-#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING\r
-    /* Use unpatented hinting only. */\r
-    FT_Bool               unpatented_hinting;\r
-#endif\r
-\r
-    /***********************************************************************/\r
-    /*                                                                     */\r
-    /* Other tables or fields. This is used by derivative formats like     */\r
-    /* OpenType.                                                           */\r
-    /*                                                                     */\r
-    /***********************************************************************/\r
-\r
-    FT_Generic            extra;\r
-\r
-    const char*           postscript_name;\r
-\r
-    /* since version 2.1.8, but was originally placed after */\r
-    /* `glyph_locations_stub'                               */\r
-    FT_ULong              glyf_len;\r
-\r
-    /* since version 2.1.8, but was originally placed before `extra' */\r
-#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT\r
-    FT_Bool               doblend;\r
-    GX_Blend              blend;\r
-#endif\r
-\r
-    /* since version 2.2 */\r
-\r
-    FT_Byte*              horz_metrics;\r
-    FT_ULong              horz_metrics_size;\r
-\r
-    FT_Byte*              vert_metrics;\r
-    FT_ULong              vert_metrics_size;\r
-\r
-    FT_UInt               num_locations;\r
-    FT_Byte*              glyph_locations;\r
-\r
-    FT_Byte*              hdmx_table;\r
-    FT_ULong              hdmx_table_size;\r
-    FT_UInt               hdmx_record_count;\r
-    FT_ULong              hdmx_record_size;\r
-    FT_Byte*              hdmx_record_sizes;\r
-\r
-    FT_Byte*              sbit_table;\r
-    FT_ULong              sbit_table_size;\r
-    FT_UInt               sbit_num_strikes;\r
-\r
-    FT_Byte*              kern_table;\r
-    FT_ULong              kern_table_size;\r
-    FT_UInt               num_kern_tables;\r
-    FT_UInt32             kern_avail_bits;\r
-    FT_UInt32             kern_order_bits;\r
-\r
-#ifdef TT_CONFIG_OPTION_BDF\r
-    TT_BDFRec             bdf;\r
-#endif /* TT_CONFIG_OPTION_BDF */\r
-\r
-    /* since 2.3.0 */\r
-    FT_ULong              horz_metrics_offset;\r
-    FT_ULong              vert_metrics_offset;\r
-\r
-  } TT_FaceRec;\r
-\r
-\r
-  /*************************************************************************/\r
-  /*                                                                       */\r
-  /*  <Struct>                                                             */\r
-  /*     TT_GlyphZoneRec                                                   */\r
-  /*                                                                       */\r
-  /*  <Description>                                                        */\r
-  /*     A glyph zone is used to load, scale and hint glyph outline        */\r
-  /*     coordinates.                                                      */\r
-  /*                                                                       */\r
-  /*  <Fields>                                                             */\r
-  /*     memory       :: A handle to the memory manager.                   */\r
-  /*                                                                       */\r
-  /*     max_points   :: The maximal size in points of the zone.           */\r
-  /*                                                                       */\r
-  /*     max_contours :: Max size in links contours of the zone.           */\r
-  /*                                                                       */\r
-  /*     n_points     :: The current number of points in the zone.         */\r
-  /*                                                                       */\r
-  /*     n_contours   :: The current number of contours in the zone.       */\r
-  /*                                                                       */\r
-  /*     org          :: The original glyph coordinates (font              */\r
-  /*                     units/scaled).                                    */\r
-  /*                                                                       */\r
-  /*     cur          :: The current glyph coordinates (scaled/hinted).    */\r
-  /*                                                                       */\r
-  /*     tags         :: The point control tags.                           */\r
-  /*                                                                       */\r
-  /*     contours     :: The contours end points.                          */\r
-  /*                                                                       */\r
-  /*     first_point  :: Offset of the current subglyph's first point.     */\r
-  /*                                                                       */\r
-  typedef struct  TT_GlyphZoneRec_\r
-  {\r
-    FT_Memory   memory;\r
-    FT_UShort   max_points;\r
-    FT_UShort   max_contours;\r
-    FT_UShort   n_points;    /* number of points in zone    */\r
-    FT_Short    n_contours;  /* number of contours          */\r
-\r
-    FT_Vector*  org;         /* original point coordinates  */\r
-    FT_Vector*  cur;         /* current point coordinates   */\r
-    FT_Vector*  orus;        /* original (unscaled) point coordinates */\r
-\r
-    FT_Byte*    tags;        /* current touch flags         */\r
-    FT_UShort*  contours;    /* contour end points          */\r
-\r
-    FT_UShort   first_point; /* offset of first (#0) point  */\r
-\r
-  } TT_GlyphZoneRec, *TT_GlyphZone;\r
-\r
-\r
-  /* handle to execution context */\r
-  typedef struct TT_ExecContextRec_*  TT_ExecContext;\r
-\r
-  /* glyph loader structure */\r
-  typedef struct  TT_LoaderRec_\r
-  {\r
-    FT_Face          face;\r
-    FT_Size          size;\r
-    FT_GlyphSlot     glyph;\r
-    FT_GlyphLoader   gloader;\r
-\r
-    FT_ULong         load_flags;\r
-    FT_UInt          glyph_index;\r
-\r
-    FT_Stream        stream;\r
-    FT_Int           byte_len;\r
-\r
-    FT_Short         n_contours;\r
-    FT_BBox          bbox;\r
-    FT_Int           left_bearing;\r
-    FT_Int           advance;\r
-    FT_Int           linear;\r
-    FT_Bool          linear_def;\r
-    FT_Bool          preserve_pps;\r
-    FT_Vector        pp1;\r
-    FT_Vector        pp2;\r
-\r
-    FT_ULong         glyf_offset;\r
-\r
-    /* the zone where we load our glyphs */\r
-    TT_GlyphZoneRec  base;\r
-    TT_GlyphZoneRec  zone;\r
-\r
-    TT_ExecContext   exec;\r
-    FT_Byte*         instructions;\r
-    FT_ULong         ins_pos;\r
-\r
-    /* for possible extensibility in other formats */\r
-    void*            other;\r
-\r
-    /* since version 2.1.8 */\r
-    FT_Int           top_bearing;\r
-    FT_Int           vadvance;\r
-    FT_Vector        pp3;\r
-    FT_Vector        pp4;\r
-\r
-    /* since version 2.2.1 */\r
-    FT_Byte*         cursor;\r
-    FT_Byte*         limit;\r
-\r
-  } TT_LoaderRec;\r
-\r
-\r
-FT_END_HEADER\r
-\r
-#endif /* __TTTYPES_H__ */\r
-\r
-\r
-/* END */\r
+/***************************************************************************/
+/*                                                                         */
+/*  tttypes.h                                                              */
+/*                                                                         */
+/*    Basic SFNT/TrueType type definitions and interface (specification    */
+/*    only).                                                               */
+/*                                                                         */
+/*  Copyright 1996-2001, 2002, 2004, 2005, 2006, 2007 by                   */
+/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
+/*                                                                         */
+/*  This file is part of the FreeType project, and may only be used,       */
+/*  modified, and distributed under the terms of the FreeType project      */
+/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
+/*  this file you indicate that you have read the license and              */
+/*  understand and accept it fully.                                        */
+/*                                                                         */
+/***************************************************************************/
+
+
+#ifndef __TTTYPES_H__
+#define __TTTYPES_H__
+
+
+#include <ft2build.h>
+#include FT_TRUETYPE_TABLES_H
+#include FT_INTERNAL_OBJECTS_H
+
+#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
+#include FT_MULTIPLE_MASTERS_H
+#endif
+
+
+FT_BEGIN_HEADER
+
+
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /***             REQUIRED TRUETYPE/OPENTYPE TABLES DEFINITIONS         ***/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TTC_HeaderRec                                                      */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    TrueType collection header.  This table contains the offsets of    */
+  /*    the font headers of each distinct TrueType face in the file.       */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    tag     :: Must be `ttc ' to indicate a TrueType collection.       */
+  /*                                                                       */
+  /*    version :: The version number.                                     */
+  /*                                                                       */
+  /*    count   :: The number of faces in the collection.  The             */
+  /*               specification says this should be an unsigned long, but */
+  /*               we use a signed long since we need the value -1 for     */
+  /*               specific purposes.                                      */
+  /*                                                                       */
+  /*    offsets :: The offsets of the font headers, one per face.          */
+  /*                                                                       */
+  typedef struct  TTC_HeaderRec_
+  {
+    FT_ULong   tag;
+    FT_Fixed   version;
+    FT_Long    count;
+    FT_ULong*  offsets;
+
+  } TTC_HeaderRec;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    SFNT_HeaderRec                                                     */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    SFNT file format header.                                           */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    format_tag     :: The font format tag.                             */
+  /*                                                                       */
+  /*    num_tables     :: The number of tables in file.                    */
+  /*                                                                       */
+  /*    search_range   :: Must be `16 * (max power of 2 <= num_tables)'.   */
+  /*                                                                       */
+  /*    entry_selector :: Must be log2 of `search_range / 16'.             */
+  /*                                                                       */
+  /*    range_shift    :: Must be `num_tables * 16 - search_range'.        */
+  /*                                                                       */
+  typedef struct  SFNT_HeaderRec_
+  {
+    FT_ULong   format_tag;
+    FT_UShort  num_tables;
+    FT_UShort  search_range;
+    FT_UShort  entry_selector;
+    FT_UShort  range_shift;
+
+    FT_ULong   offset;  /* not in file */
+
+  } SFNT_HeaderRec, *SFNT_Header;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_TableRec                                                        */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    This structure describes a given table of a TrueType font.         */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    Tag      :: A four-bytes tag describing the table.                 */
+  /*                                                                       */
+  /*    CheckSum :: The table checksum.  This value can be ignored.        */
+  /*                                                                       */
+  /*    Offset   :: The offset of the table from the start of the TrueType */
+  /*                font in its resource.                                  */
+  /*                                                                       */
+  /*    Length   :: The table length (in bytes).                           */
+  /*                                                                       */
+  typedef struct  TT_TableRec_
+  {
+    FT_ULong  Tag;        /*        table type */
+    FT_ULong  CheckSum;   /*    table checksum */
+    FT_ULong  Offset;     /* table file offset */
+    FT_ULong  Length;     /*      table length */
+
+  } TT_TableRec, *TT_Table;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_LongMetricsRec                                                  */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure modeling the long metrics of the `hmtx' and `vmtx'     */
+  /*    TrueType tables.  The values are expressed in font units.          */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    advance :: The advance width or height for the glyph.              */
+  /*                                                                       */
+  /*    bearing :: The left-side or top-side bearing for the glyph.        */
+  /*                                                                       */
+  typedef struct  TT_LongMetricsRec_
+  {
+    FT_UShort  advance;
+    FT_Short   bearing;
+
+  } TT_LongMetricsRec, *TT_LongMetrics;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Type>                                                                */
+  /*    TT_ShortMetrics                                                    */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A simple type to model the short metrics of the `hmtx' and `vmtx'  */
+  /*    tables.                                                            */
+  /*                                                                       */
+  typedef FT_Short  TT_ShortMetrics;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_NameEntryRec                                                    */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure modeling TrueType name records.  Name records are used */
+  /*    to store important strings like family name, style name,           */
+  /*    copyright, etc. in _localized_ versions (i.e., language, encoding, */
+  /*    etc).                                                              */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    platformID   :: The ID of the name's encoding platform.            */
+  /*                                                                       */
+  /*    encodingID   :: The platform-specific ID for the name's encoding.  */
+  /*                                                                       */
+  /*    languageID   :: The platform-specific ID for the name's language.  */
+  /*                                                                       */
+  /*    nameID       :: The ID specifying what kind of name this is.       */
+  /*                                                                       */
+  /*    stringLength :: The length of the string in bytes.                 */
+  /*                                                                       */
+  /*    stringOffset :: The offset to the string in the `name' table.      */
+  /*                                                                       */
+  /*    string       :: A pointer to the string's bytes.  Note that these  */
+  /*                    are usually UTF-16 encoded characters.             */
+  /*                                                                       */
+  typedef struct  TT_NameEntryRec_
+  {
+    FT_UShort  platformID;
+    FT_UShort  encodingID;
+    FT_UShort  languageID;
+    FT_UShort  nameID;
+    FT_UShort  stringLength;
+    FT_ULong   stringOffset;
+
+    /* this last field is not defined in the spec */
+    /* but used by the FreeType engine            */
+
+    FT_Byte*   string;
+
+  } TT_NameEntryRec, *TT_NameEntry;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_NameTableRec                                                    */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure modeling the TrueType name table.                      */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    format         :: The format of the name table.                    */
+  /*                                                                       */
+  /*    numNameRecords :: The number of names in table.                    */
+  /*                                                                       */
+  /*    storageOffset  :: The offset of the name table in the `name'       */
+  /*                      TrueType table.                                  */
+  /*                                                                       */
+  /*    names          :: An array of name records.                        */
+  /*                                                                       */
+  /*    stream         :: the file's input stream.                         */
+  /*                                                                       */
+  typedef struct  TT_NameTableRec_
+  {
+    FT_UShort         format;
+    FT_UInt           numNameRecords;
+    FT_UInt           storageOffset;
+    TT_NameEntryRec*  names;
+    FT_Stream         stream;
+
+  } TT_NameTableRec, *TT_NameTable;
+
+
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /***             OPTIONAL TRUETYPE/OPENTYPE TABLES DEFINITIONS         ***/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_GaspRangeRec                                                    */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A tiny structure used to model a gasp range according to the       */
+  /*    TrueType specification.                                            */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    maxPPEM  :: The maximum ppem value to which `gaspFlag' applies.    */
+  /*                                                                       */
+  /*    gaspFlag :: A flag describing the grid-fitting and anti-aliasing   */
+  /*                modes to be used.                                      */
+  /*                                                                       */
+  typedef struct  TT_GaspRangeRec_
+  {
+    FT_UShort  maxPPEM;
+    FT_UShort  gaspFlag;
+
+  } TT_GaspRangeRec, *TT_GaspRange;
+
+
+#define TT_GASP_GRIDFIT  0x01
+#define TT_GASP_DOGRAY   0x02
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_GaspRec                                                         */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure modeling the TrueType `gasp' table used to specify     */
+  /*    grid-fitting and anti-aliasing behaviour.                          */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    version    :: The version number.                                  */
+  /*                                                                       */
+  /*    numRanges  :: The number of gasp ranges in table.                  */
+  /*                                                                       */
+  /*    gaspRanges :: An array of gasp ranges.                             */
+  /*                                                                       */
+  typedef struct  TT_Gasp_
+  {
+    FT_UShort     version;
+    FT_UShort     numRanges;
+    TT_GaspRange  gaspRanges;
+
+  } TT_GaspRec;
+
+
+#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_HdmxEntryRec                                                    */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A small structure used to model the pre-computed widths of a given */
+  /*    size.  They are found in the `hdmx' table.                         */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    ppem      :: The pixels per EM value at which these metrics apply. */
+  /*                                                                       */
+  /*    max_width :: The maximum advance width for this metric.            */
+  /*                                                                       */
+  /*    widths    :: An array of widths.  Note: These are 8-bit bytes.     */
+  /*                                                                       */
+  typedef struct  TT_HdmxEntryRec_
+  {
+    FT_Byte   ppem;
+    FT_Byte   max_width;
+    FT_Byte*  widths;
+
+  } TT_HdmxEntryRec, *TT_HdmxEntry;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_HdmxRec                                                         */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used to model the `hdmx' table, which contains         */
+  /*    pre-computed widths for a set of given sizes/dimensions.           */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    version     :: The version number.                                 */
+  /*                                                                       */
+  /*    num_records :: The number of hdmx records.                         */
+  /*                                                                       */
+  /*    records     :: An array of hdmx records.                           */
+  /*                                                                       */
+  typedef struct  TT_HdmxRec_
+  {
+    FT_UShort     version;
+    FT_Short      num_records;
+    TT_HdmxEntry  records;
+
+  } TT_HdmxRec, *TT_Hdmx;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_Kern0_PairRec                                                   */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used to model a kerning pair for the kerning table     */
+  /*    format 0.  The engine now loads this table if it finds one in the  */
+  /*    font file.                                                         */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    left  :: The index of the left glyph in pair.                      */
+  /*                                                                       */
+  /*    right :: The index of the right glyph in pair.                     */
+  /*                                                                       */
+  /*    value :: The kerning distance.  A positive value spaces the        */
+  /*             glyphs, a negative one makes them closer.                 */
+  /*                                                                       */
+  typedef struct  TT_Kern0_PairRec_
+  {
+    FT_UShort  left;   /* index of left  glyph in pair */
+    FT_UShort  right;  /* index of right glyph in pair */
+    FT_FWord   value;  /* kerning value                */
+
+  } TT_Kern0_PairRec, *TT_Kern0_Pair;
+
+#endif /* FT_CONFIG_OPTION_OLD_INTERNALS */
+
+
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /***                    EMBEDDED BITMAPS SUPPORT                       ***/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_SBit_MetricsRec                                                 */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used to hold the big metrics of a given glyph bitmap   */
+  /*    in a TrueType or OpenType font.  These are usually found in the    */
+  /*    `EBDT' (Microsoft) or `bloc' (Apple) table.                        */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    height       :: The glyph height in pixels.                        */
+  /*                                                                       */
+  /*    width        :: The glyph width in pixels.                         */
+  /*                                                                       */
+  /*    horiBearingX :: The horizontal left bearing.                       */
+  /*                                                                       */
+  /*    horiBearingY :: The horizontal top bearing.                        */
+  /*                                                                       */
+  /*    horiAdvance  :: The horizontal advance.                            */
+  /*                                                                       */
+  /*    vertBearingX :: The vertical left bearing.                         */
+  /*                                                                       */
+  /*    vertBearingY :: The vertical top bearing.                          */
+  /*                                                                       */
+  /*    vertAdvance  :: The vertical advance.                              */
+  /*                                                                       */
+  typedef struct  TT_SBit_MetricsRec_
+  {
+    FT_Byte  height;
+    FT_Byte  width;
+
+    FT_Char  horiBearingX;
+    FT_Char  horiBearingY;
+    FT_Byte  horiAdvance;
+
+    FT_Char  vertBearingX;
+    FT_Char  vertBearingY;
+    FT_Byte  vertAdvance;
+
+  } TT_SBit_MetricsRec, *TT_SBit_Metrics;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_SBit_SmallMetricsRec                                            */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used to hold the small metrics of a given glyph bitmap */
+  /*    in a TrueType or OpenType font.  These are usually found in the    */
+  /*    `EBDT' (Microsoft) or the `bdat' (Apple) table.                    */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    height   :: The glyph height in pixels.                            */
+  /*                                                                       */
+  /*    width    :: The glyph width in pixels.                             */
+  /*                                                                       */
+  /*    bearingX :: The left-side bearing.                                 */
+  /*                                                                       */
+  /*    bearingY :: The top-side bearing.                                  */
+  /*                                                                       */
+  /*    advance  :: The advance width or height.                           */
+  /*                                                                       */
+  typedef struct  TT_SBit_Small_Metrics_
+  {
+    FT_Byte  height;
+    FT_Byte  width;
+
+    FT_Char  bearingX;
+    FT_Char  bearingY;
+    FT_Byte  advance;
+
+  } TT_SBit_SmallMetricsRec, *TT_SBit_SmallMetrics;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_SBit_LineMetricsRec                                             */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used to describe the text line metrics of a given      */
+  /*    bitmap strike, for either a horizontal or vertical layout.         */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    ascender                :: The ascender in pixels.                 */
+  /*                                                                       */
+  /*    descender               :: The descender in pixels.                */
+  /*                                                                       */
+  /*    max_width               :: The maximum glyph width in pixels.      */
+  /*                                                                       */
+  /*    caret_slope_enumerator  :: Rise of the caret slope, typically set  */
+  /*                               to 1 for non-italic fonts.              */
+  /*                                                                       */
+  /*    caret_slope_denominator :: Rise of the caret slope, typically set  */
+  /*                               to 0 for non-italic fonts.              */
+  /*                                                                       */
+  /*    caret_offset            :: Offset in pixels to move the caret for  */
+  /*                               proper positioning.                     */
+  /*                                                                       */
+  /*    min_origin_SB           :: Minimum of horiBearingX (resp.          */
+  /*                               vertBearingY).                          */
+  /*    min_advance_SB          :: Minimum of                              */
+  /*                                                                       */
+  /*                                 horizontal advance -                  */
+  /*                                   ( horiBearingX + width )            */
+  /*                                                                       */
+  /*                               resp.                                   */
+  /*                                                                       */
+  /*                                 vertical advance -                    */
+  /*                                   ( vertBearingY + height )           */
+  /*                                                                       */
+  /*    max_before_BL           :: Maximum of horiBearingY (resp.          */
+  /*                               vertBearingY).                          */
+  /*                                                                       */
+  /*    min_after_BL            :: Minimum of                              */
+  /*                                                                       */
+  /*                                 horiBearingY - height                 */
+  /*                                                                       */
+  /*                               resp.                                   */
+  /*                                                                       */
+  /*                                 vertBearingX - width                  */
+  /*                                                                       */
+  /*    pads                    :: Unused (to make the size of the record  */
+  /*                               a multiple of 32 bits.                  */
+  /*                                                                       */
+  typedef struct  TT_SBit_LineMetricsRec_
+  {
+    FT_Char  ascender;
+    FT_Char  descender;
+    FT_Byte  max_width;
+    FT_Char  caret_slope_numerator;
+    FT_Char  caret_slope_denominator;
+    FT_Char  caret_offset;
+    FT_Char  min_origin_SB;
+    FT_Char  min_advance_SB;
+    FT_Char  max_before_BL;
+    FT_Char  min_after_BL;
+    FT_Char  pads[2];
+
+  } TT_SBit_LineMetricsRec, *TT_SBit_LineMetrics;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_SBit_RangeRec                                                   */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A TrueType/OpenType subIndexTable as defined in the `EBLC'         */
+  /*    (Microsoft) or `bloc' (Apple) tables.                              */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    first_glyph   :: The first glyph index in the range.               */
+  /*                                                                       */
+  /*    last_glyph    :: The last glyph index in the range.                */
+  /*                                                                       */
+  /*    index_format  :: The format of index table.  Valid values are 1    */
+  /*                     to 5.                                             */
+  /*                                                                       */
+  /*    image_format  :: The format of `EBDT' image data.                  */
+  /*                                                                       */
+  /*    image_offset  :: The offset to image data in `EBDT'.               */
+  /*                                                                       */
+  /*    image_size    :: For index formats 2 and 5.  This is the size in   */
+  /*                     bytes of each glyph bitmap.                       */
+  /*                                                                       */
+  /*    big_metrics   :: For index formats 2 and 5.  This is the big       */
+  /*                     metrics for each glyph bitmap.                    */
+  /*                                                                       */
+  /*    num_glyphs    :: For index formats 4 and 5.  This is the number of */
+  /*                     glyphs in the code array.                         */
+  /*                                                                       */
+  /*    glyph_offsets :: For index formats 1 and 3.                        */
+  /*                                                                       */
+  /*    glyph_codes   :: For index formats 4 and 5.                        */
+  /*                                                                       */
+  /*    table_offset  :: The offset of the index table in the `EBLC'       */
+  /*                     table.  Only used during strike loading.          */
+  /*                                                                       */
+  typedef struct  TT_SBit_RangeRec
+  {
+    FT_UShort           first_glyph;
+    FT_UShort           last_glyph;
+
+    FT_UShort           index_format;
+    FT_UShort           image_format;
+    FT_ULong            image_offset;
+
+    FT_ULong            image_size;
+    TT_SBit_MetricsRec  metrics;
+    FT_ULong            num_glyphs;
+
+    FT_ULong*           glyph_offsets;
+    FT_UShort*          glyph_codes;
+
+    FT_ULong            table_offset;
+
+  } TT_SBit_RangeRec, *TT_SBit_Range;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_SBit_StrikeRec                                                  */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used describe a given bitmap strike in the `EBLC'      */
+  /*    (Microsoft) or `bloc' (Apple) tables.                              */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*   num_index_ranges :: The number of index ranges.                     */
+  /*                                                                       */
+  /*   index_ranges     :: An array of glyph index ranges.                 */
+  /*                                                                       */
+  /*   color_ref        :: Unused.  `color_ref' is put in for future       */
+  /*                       enhancements, but these fields are already      */
+  /*                       in use by other platforms (e.g. Newton).        */
+  /*                       For details, please see                         */
+  /*                                                                       */
+  /*                         http://fonts.apple.com/                       */
+  /*                                TTRefMan/RM06/Chap6bloc.html           */
+  /*                                                                       */
+  /*   hori             :: The line metrics for horizontal layouts.        */
+  /*                                                                       */
+  /*   vert             :: The line metrics for vertical layouts.          */
+  /*                                                                       */
+  /*   start_glyph      :: The lowest glyph index for this strike.         */
+  /*                                                                       */
+  /*   end_glyph        :: The highest glyph index for this strike.        */
+  /*                                                                       */
+  /*   x_ppem           :: The number of horizontal pixels per EM.         */
+  /*                                                                       */
+  /*   y_ppem           :: The number of vertical pixels per EM.           */
+  /*                                                                       */
+  /*   bit_depth        :: The bit depth.  Valid values are 1, 2, 4,       */
+  /*                       and 8.                                          */
+  /*                                                                       */
+  /*   flags            :: Is this a vertical or horizontal strike?  For   */
+  /*                       details, please see                             */
+  /*                                                                       */
+  /*                         http://fonts.apple.com/                       */
+  /*                                TTRefMan/RM06/Chap6bloc.html           */
+  /*                                                                       */
+  typedef struct  TT_SBit_StrikeRec_
+  {
+    FT_Int                  num_ranges;
+    TT_SBit_Range           sbit_ranges;
+    FT_ULong                ranges_offset;
+
+    FT_ULong                color_ref;
+
+    TT_SBit_LineMetricsRec  hori;
+    TT_SBit_LineMetricsRec  vert;
+
+    FT_UShort               start_glyph;
+    FT_UShort               end_glyph;
+
+    FT_Byte                 x_ppem;
+    FT_Byte                 y_ppem;
+
+    FT_Byte                 bit_depth;
+    FT_Char                 flags;
+
+  } TT_SBit_StrikeRec, *TT_SBit_Strike;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_SBit_ComponentRec                                               */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A simple structure to describe a compound sbit element.            */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    glyph_code :: The element's glyph index.                           */
+  /*                                                                       */
+  /*    x_offset   :: The element's left bearing.                          */
+  /*                                                                       */
+  /*    y_offset   :: The element's top bearing.                           */
+  /*                                                                       */
+  typedef struct  TT_SBit_ComponentRec_
+  {
+    FT_UShort  glyph_code;
+    FT_Char    x_offset;
+    FT_Char    y_offset;
+
+  } TT_SBit_ComponentRec, *TT_SBit_Component;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_SBit_ScaleRec                                                   */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used describe a given bitmap scaling table, as defined */
+  /*    in the `EBSC' table.                                               */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    hori              :: The horizontal line metrics.                  */
+  /*                                                                       */
+  /*    vert              :: The vertical line metrics.                    */
+  /*                                                                       */
+  /*    x_ppem            :: The number of horizontal pixels per EM.       */
+  /*                                                                       */
+  /*    y_ppem            :: The number of vertical pixels per EM.         */
+  /*                                                                       */
+  /*    x_ppem_substitute :: Substitution x_ppem value.                    */
+  /*                                                                       */
+  /*    y_ppem_substitute :: Substitution y_ppem value.                    */
+  /*                                                                       */
+  typedef struct  TT_SBit_ScaleRec_
+  {
+    TT_SBit_LineMetricsRec  hori;
+    TT_SBit_LineMetricsRec  vert;
+
+    FT_Byte                 x_ppem;
+    FT_Byte                 y_ppem;
+
+    FT_Byte                 x_ppem_substitute;
+    FT_Byte                 y_ppem_substitute;
+
+  } TT_SBit_ScaleRec, *TT_SBit_Scale;
+
+
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /***                  POSTSCRIPT GLYPH NAMES SUPPORT                   ***/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_Post_20Rec                                                      */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Postscript names sub-table, format 2.0.  Stores the PS name of     */
+  /*    each glyph in the font face.                                       */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    num_glyphs    :: The number of named glyphs in the table.          */
+  /*                                                                       */
+  /*    num_names     :: The number of PS names stored in the table.       */
+  /*                                                                       */
+  /*    glyph_indices :: The indices of the glyphs in the names arrays.    */
+  /*                                                                       */
+  /*    glyph_names   :: The PS names not in Mac Encoding.                 */
+  /*                                                                       */
+  typedef struct  TT_Post_20Rec_
+  {
+    FT_UShort   num_glyphs;
+    FT_UShort   num_names;
+    FT_UShort*  glyph_indices;
+    FT_Char**   glyph_names;
+
+  } TT_Post_20Rec, *TT_Post_20;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_Post_25Rec                                                      */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Postscript names sub-table, format 2.5.  Stores the PS name of     */
+  /*    each glyph in the font face.                                       */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    num_glyphs :: The number of glyphs in the table.                   */
+  /*                                                                       */
+  /*    offsets    :: An array of signed offsets in a normal Mac           */
+  /*                  Postscript name encoding.                            */
+  /*                                                                       */
+  typedef struct  TT_Post_25_
+  {
+    FT_UShort  num_glyphs;
+    FT_Char*   offsets;
+
+  } TT_Post_25Rec, *TT_Post_25;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_Post_NamesRec                                                   */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Postscript names table, either format 2.0 or 2.5.                  */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    loaded    :: A flag to indicate whether the PS names are loaded.   */
+  /*                                                                       */
+  /*    format_20 :: The sub-table used for format 2.0.                    */
+  /*                                                                       */
+  /*    format_25 :: The sub-table used for format 2.5.                    */
+  /*                                                                       */
+  typedef struct  TT_Post_NamesRec_
+  {
+    FT_Bool  loaded;
+
+    union
+    {
+      TT_Post_20Rec  format_20;
+      TT_Post_25Rec  format_25;
+
+    } names;
+
+  } TT_Post_NamesRec, *TT_Post_Names;
+
+
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /***                    GX VARIATION TABLE SUPPORT                     ***/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+
+
+#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
+  typedef struct GX_BlendRec_  *GX_Blend;
+#endif
+
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /***              EMBEDDED BDF PROPERTIES TABLE SUPPORT                ***/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+
+  /*
+   * These types are used to support a `BDF ' table that isn't part of the
+   * official TrueType specification.  It is mainly used in SFNT-based
+   * bitmap fonts that were generated from a set of BDF fonts.
+   *
+   * The format of the table is as follows.
+   *
+   *   USHORT   version      `BDF ' table version number, should be 0x0001.
+   *   USHORT   strikeCount  Number of strikes (bitmap sizes) in this table.
+   *   ULONG    stringTable  Offset (from start of BDF table) to string
+   *                         table.
+   *
+   * This is followed by an array of `strikeCount' descriptors, having the
+   * following format.
+   *
+   *   USHORT   ppem         Vertical pixels per EM for this strike.
+   *   USHORT   numItems     Number of items for this strike (properties and
+   *                         atoms).  Maximum is 255.
+   *
+   * This array in turn is followed by `strikeCount' value sets.  Each
+   * `value set' is an array of `numItems' items with the following format.
+   *
+   *   ULONG    item_name    Offset in string table to item name.
+   *   USHORT   item_type    The item type.  Possible values are
+   *                            0 => string (e.g., COMMENT)
+   *                            1 => atom   (e.g., FONT or even SIZE)
+   *                            2 => int32
+   *                            3 => uint32
+   *                         0x10 => A flag to indicate a properties.  This
+   *                                 is ORed with the above values.
+   *   ULONG    item_value   For strings  => Offset into string table without
+   *                                         the corresponding double quotes.
+   *                         For atoms    => Offset into string table.
+   *                         For integers => Direct value.
+   *
+   * All strings in the string table consist of bytes and are
+   * zero-terminated.
+   *
+   */
+
+#ifdef TT_CONFIG_OPTION_BDF
+
+  typedef struct  TT_BDFRec_
+  {
+    FT_Byte*   table;
+    FT_Byte*   table_end;
+    FT_Byte*   strings;
+    FT_UInt32  strings_size;
+    FT_UInt    num_strikes;
+    FT_Bool    loaded;
+
+  } TT_BDFRec, *TT_BDF;
+
+#endif /* TT_CONFIG_OPTION_BDF */
+
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /***                  ORIGINAL TT_FACE CLASS DEFINITION                ***/
+  /***                                                                   ***/
+  /***                                                                   ***/
+  /*************************************************************************/
+  /*************************************************************************/
+  /*************************************************************************/
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* This structure/class is defined here because it is common to the      */
+  /* following formats: TTF, OpenType-TT, and OpenType-CFF.                */
+  /*                                                                       */
+  /* Note, however, that the classes TT_Size and TT_GlyphSlot are not      */
+  /* shared between font drivers, and are thus defined in `ttobjs.h'.      */
+  /*                                                                       */
+  /*************************************************************************/
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Type>                                                                */
+  /*    TT_Face                                                            */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A handle to a TrueType face/font object.  A TT_Face encapsulates   */
+  /*    the resolution and scaling independent parts of a TrueType font    */
+  /*    resource.                                                          */
+  /*                                                                       */
+  /* <Note>                                                                */
+  /*    The TT_Face structure is also used as a `parent class' for the     */
+  /*    OpenType-CFF class (T2_Face).                                      */
+  /*                                                                       */
+  typedef struct TT_FaceRec_*  TT_Face;
+
+
+  /* a function type used for the truetype bytecode interpreter hooks */
+  typedef FT_Error
+  (*TT_Interpreter)( void*  exec_context );
+
+  /* forward declaration */
+  typedef struct TT_LoaderRec_*  TT_Loader;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <FuncType>                                                            */
+  /*    TT_Loader_GotoTableFunc                                            */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Seeks a stream to the start of a given TrueType table.             */
+  /*                                                                       */
+  /* <Input>                                                               */
+  /*    face   :: A handle to the target face object.                      */
+  /*                                                                       */
+  /*    tag    :: A 4-byte tag used to name the table.                     */
+  /*                                                                       */
+  /*    stream :: The input stream.                                        */
+  /*                                                                       */
+  /* <Output>                                                              */
+  /*    length :: The length of the table in bytes.  Set to 0 if not       */
+  /*              needed.                                                  */
+  /*                                                                       */
+  /* <Return>                                                              */
+  /*    FreeType error code.  0 means success.                             */
+  /*                                                                       */
+  /* <Note>                                                                */
+  /*    The stream cursor must be at the font file's origin.               */
+  /*                                                                       */
+  typedef FT_Error
+  (*TT_Loader_GotoTableFunc)( TT_Face    face,
+                              FT_ULong   tag,
+                              FT_Stream  stream,
+                              FT_ULong*  length );
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <FuncType>                                                            */
+  /*    TT_Loader_StartGlyphFunc                                           */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Seeks a stream to the start of a given glyph element, and opens a  */
+  /*    frame for it.                                                      */
+  /*                                                                       */
+  /* <Input>                                                               */
+  /*    loader      :: The current TrueType glyph loader object.           */
+  /*                                                                       */
+  /*    glyph index :: The index of the glyph to access.                   */
+  /*                                                                       */
+  /*    offset      :: The offset of the glyph according to the            */
+  /*                   `locations' table.                                  */
+  /*                                                                       */
+  /*    byte_count  :: The size of the frame in bytes.                     */
+  /*                                                                       */
+  /* <Return>                                                              */
+  /*    FreeType error code.  0 means success.                             */
+  /*                                                                       */
+  /* <Note>                                                                */
+  /*    This function is normally equivalent to FT_STREAM_SEEK(offset)     */
+  /*    followed by FT_FRAME_ENTER(byte_count) with the loader's stream,   */
+  /*    but alternative formats (e.g. compressed ones) might use something */
+  /*    different.                                                         */
+  /*                                                                       */
+  typedef FT_Error
+  (*TT_Loader_StartGlyphFunc)( TT_Loader  loader,
+                               FT_UInt    glyph_index,
+                               FT_ULong   offset,
+                               FT_UInt    byte_count );
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <FuncType>                                                            */
+  /*    TT_Loader_ReadGlyphFunc                                            */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Reads one glyph element (its header, a simple glyph, or a          */
+  /*    composite) from the loader's current stream frame.                 */
+  /*                                                                       */
+  /* <Input>                                                               */
+  /*    loader :: The current TrueType glyph loader object.                */
+  /*                                                                       */
+  /* <Return>                                                              */
+  /*    FreeType error code.  0 means success.                             */
+  /*                                                                       */
+  typedef FT_Error
+  (*TT_Loader_ReadGlyphFunc)( TT_Loader  loader );
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <FuncType>                                                            */
+  /*    TT_Loader_EndGlyphFunc                                             */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Closes the current loader stream frame for the glyph.              */
+  /*                                                                       */
+  /* <Input>                                                               */
+  /*    loader :: The current TrueType glyph loader object.                */
+  /*                                                                       */
+  typedef void
+  (*TT_Loader_EndGlyphFunc)( TT_Loader  loader );
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /*                         TrueType Face Type                            */
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    TT_Face                                                            */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    The TrueType face class.  These objects model the resolution and   */
+  /*    point-size independent data found in a TrueType font file.         */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    root                 :: The base FT_Face structure, managed by the */
+  /*                            base layer.                                */
+  /*                                                                       */
+  /*    ttc_header           :: The TrueType collection header, used when  */
+  /*                            the file is a `ttc' rather than a `ttf'.   */
+  /*                            For ordinary font files, the field         */
+  /*                            `ttc_header.count' is set to 0.            */
+  /*                                                                       */
+  /*    format_tag           :: The font format tag.                       */
+  /*                                                                       */
+  /*    num_tables           :: The number of TrueType tables in this font */
+  /*                            file.                                      */
+  /*                                                                       */
+  /*    dir_tables           :: The directory of TrueType tables for this  */
+  /*                            font file.                                 */
+  /*                                                                       */
+  /*    header               :: The font's font header (`head' table).     */
+  /*                            Read on font opening.                      */
+  /*                                                                       */
+  /*    horizontal           :: The font's horizontal header (`hhea'       */
+  /*                            table).  This field also contains the      */
+  /*                            associated horizontal metrics table        */
+  /*                            (`hmtx').                                  */
+  /*                                                                       */
+  /*    max_profile          :: The font's maximum profile table.  Read on */
+  /*                            font opening.  Note that some maximum      */
+  /*                            values cannot be taken directly from this  */
+  /*                            table.  We thus define additional fields   */
+  /*                            below to hold the computed maxima.         */
+  /*                                                                       */
+  /*    vertical_info        :: A boolean which is set when the font file  */
+  /*                            contains vertical metrics.  If not, the    */
+  /*                            value of the `vertical' field is           */
+  /*                            undefined.                                 */
+  /*                                                                       */
+  /*    vertical             :: The font's vertical header (`vhea' table). */
+  /*                            This field also contains the associated    */
+  /*                            vertical metrics table (`vmtx'), if found. */
+  /*                            IMPORTANT: The contents of this field is   */
+  /*                            undefined if the `verticalInfo' field is   */
+  /*                            unset.                                     */
+  /*                                                                       */
+  /*    num_names            :: The number of name records within this     */
+  /*                            TrueType font.                             */
+  /*                                                                       */
+  /*    name_table           :: The table of name records (`name').        */
+  /*                                                                       */
+  /*    os2                  :: The font's OS/2 table (`OS/2').            */
+  /*                                                                       */
+  /*    postscript           :: The font's PostScript table (`post'        */
+  /*                            table).  The PostScript glyph names are    */
+  /*                            not loaded by the driver on face opening.  */
+  /*                            See the `ttpost' module for more details.  */
+  /*                                                                       */
+  /*    cmap_table           :: Address of the face's `cmap' SFNT table    */
+  /*                            in memory (it's an extracted frame).       */
+  /*                                                                       */
+  /*    cmap_size            :: The size in bytes of the `cmap_table'      */
+  /*                            described above.                           */
+  /*                                                                       */
+  /*    goto_table           :: A function called by each TrueType table   */
+  /*                            loader to position a stream's cursor to    */
+  /*                            the start of a given table according to    */
+  /*                            its tag.  It defaults to TT_Goto_Face but  */
+  /*                            can be different for strange formats (e.g. */
+  /*                            Type 42).                                  */
+  /*                                                                       */
+  /*    access_glyph_frame   :: A function used to access the frame of a   */
+  /*                            given glyph within the face's font file.   */
+  /*                                                                       */
+  /*    forget_glyph_frame   :: A function used to forget the frame of a   */
+  /*                            given glyph when all data has been loaded. */
+  /*                                                                       */
+  /*    read_glyph_header    :: A function used to read a glyph header.    */
+  /*                            It must be called between an `access' and  */
+  /*                            `forget'.                                  */
+  /*                                                                       */
+  /*    read_simple_glyph    :: A function used to read a simple glyph.    */
+  /*                            It must be called after the header was     */
+  /*                            read, and before the `forget'.             */
+  /*                                                                       */
+  /*    read_composite_glyph :: A function used to read a composite glyph. */
+  /*                            It must be called after the header was     */
+  /*                            read, and before the `forget'.             */
+  /*                                                                       */
+  /*    sfnt                 :: A pointer to the SFNT service.             */
+  /*                                                                       */
+  /*    psnames              :: A pointer to the PostScript names service. */
+  /*                                                                       */
+  /*    hdmx                 :: The face's horizontal device metrics       */
+  /*                            (`hdmx' table).  This table is optional in */
+  /*                            TrueType/OpenType fonts.                   */
+  /*                                                                       */
+  /*    gasp                 :: The grid-fitting and scaling properties    */
+  /*                            table (`gasp').  This table is optional in */
+  /*                            TrueType/OpenType fonts.                   */
+  /*                                                                       */
+  /*    pclt                 :: The `pclt' SFNT table.                     */
+  /*                                                                       */
+  /*    num_sbit_strikes     :: The number of sbit strikes, i.e., bitmap   */
+  /*                            sizes, embedded in this font.              */
+  /*                                                                       */
+  /*    sbit_strikes         :: An array of sbit strikes embedded in this  */
+  /*                            font.  This table is optional in a         */
+  /*                            TrueType/OpenType font.                    */
+  /*                                                                       */
+  /*    num_sbit_scales      :: The number of sbit scales for this font.   */
+  /*                                                                       */
+  /*    sbit_scales          :: Array of sbit scales embedded in this      */
+  /*                            font.  This table is optional in a         */
+  /*                            TrueType/OpenType font.                    */
+  /*                                                                       */
+  /*    postscript_names     :: A table used to store the Postscript names */
+  /*                            of  the glyphs for this font.  See the     */
+  /*                            file  `ttconfig.h' for comments on the     */
+  /*                            TT_CONFIG_OPTION_POSTSCRIPT_NAMES option.  */
+  /*                                                                       */
+  /*    num_locations        :: The number of glyph locations in this      */
+  /*                            TrueType file.  This should be             */
+  /*                            identical to the number of glyphs.         */
+  /*                            Ignored for Type 2 fonts.                  */
+  /*                                                                       */
+  /*    glyph_locations      :: An array of longs.  These are offsets to   */
+  /*                            glyph data within the `glyf' table.        */
+  /*                            Ignored for Type 2 font faces.             */
+  /*                                                                       */
+  /*    glyf_len             :: The length of the `glyf' table.  Needed    */
+  /*                            for malformed `loca' tables.               */
+  /*                                                                       */
+  /*    font_program_size    :: Size in bytecodes of the face's font       */
+  /*                            program.  0 if none defined.  Ignored for  */
+  /*                            Type 2 fonts.                              */
+  /*                                                                       */
+  /*    font_program         :: The face's font program (bytecode stream)  */
+  /*                            executed at load time, also used during    */
+  /*                            glyph rendering.  Comes from the `fpgm'    */
+  /*                            table.  Ignored for Type 2 font fonts.     */
+  /*                                                                       */
+  /*    cvt_program_size     :: The size in bytecodes of the face's cvt    */
+  /*                            program.  Ignored for Type 2 fonts.        */
+  /*                                                                       */
+  /*    cvt_program          :: The face's cvt program (bytecode stream)   */
+  /*                            executed each time an instance/size is     */
+  /*                            changed/reset.  Comes from the `prep'      */
+  /*                            table.  Ignored for Type 2 fonts.          */
+  /*                                                                       */
+  /*    cvt_size             :: Size of the control value table (in        */
+  /*                            entries).   Ignored for Type 2 fonts.      */
+  /*                                                                       */
+  /*    cvt                  :: The face's original control value table.   */
+  /*                            Coordinates are expressed in unscaled font */
+  /*                            units.  Comes from the `cvt ' table.       */
+  /*                            Ignored for Type 2 fonts.                  */
+  /*                                                                       */
+  /*    num_kern_pairs       :: The number of kerning pairs present in the */
+  /*                            font file.  The engine only loads the      */
+  /*                            first horizontal format 0 kern table it    */
+  /*                            finds in the font file.  Ignored for       */
+  /*                            Type 2 fonts.                              */
+  /*                                                                       */
+  /*    kern_table_index     :: The index of the kerning table in the font */
+  /*                            kerning directory.  Ignored for Type 2     */
+  /*                            fonts.                                     */
+  /*                                                                       */
+  /*    interpreter          :: A pointer to the TrueType bytecode         */
+  /*                            interpreters field is also used to hook    */
+  /*                            the debugger in `ttdebug'.                 */
+  /*                                                                       */
+  /*    unpatented_hinting   :: If true, use only unpatented methods in    */
+  /*                            the bytecode interpreter.                  */
+  /*                                                                       */
+  /*    doblend              :: A boolean which is set if the font should  */
+  /*                            be blended (this is for GX var).           */
+  /*                                                                       */
+  /*    blend                :: Contains the data needed to control GX     */
+  /*                            variation tables (rather like Multiple     */
+  /*                            Master data).                              */
+  /*                                                                       */
+  /*    extra                :: Reserved for third-party font drivers.     */
+  /*                                                                       */
+  /*    postscript_name      :: The PS name of the font.  Used by the      */
+  /*                            postscript name service.                   */
+  /*                                                                       */
+  typedef struct  TT_FaceRec_
+  {
+    FT_FaceRec            root;
+
+    TTC_HeaderRec         ttc_header;
+
+    FT_ULong              format_tag;
+    FT_UShort             num_tables;
+    TT_Table              dir_tables;
+
+    TT_Header             header;       /* TrueType header table          */
+    TT_HoriHeader         horizontal;   /* TrueType horizontal header     */
+
+    TT_MaxProfile         max_profile;
+#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
+    FT_ULong              max_components;  /* stubbed to 0 */
+#endif
+
+    FT_Bool               vertical_info;
+    TT_VertHeader         vertical;     /* TT Vertical header, if present */
+
+    FT_UShort             num_names;    /* number of name records  */
+    TT_NameTableRec       name_table;   /* name table              */
+
+    TT_OS2                os2;          /* TrueType OS/2 table            */
+    TT_Postscript         postscript;   /* TrueType Postscript table      */
+
+    FT_Byte*              cmap_table;   /* extracted `cmap' table */
+    FT_ULong              cmap_size;
+
+    TT_Loader_GotoTableFunc   goto_table;
+
+    TT_Loader_StartGlyphFunc  access_glyph_frame;
+    TT_Loader_EndGlyphFunc    forget_glyph_frame;
+    TT_Loader_ReadGlyphFunc   read_glyph_header;
+    TT_Loader_ReadGlyphFunc   read_simple_glyph;
+    TT_Loader_ReadGlyphFunc   read_composite_glyph;
+
+    /* a typeless pointer to the SFNT_Interface table used to load */
+    /* the basic TrueType tables in the face object                */
+    void*                 sfnt;
+
+    /* a typeless pointer to the FT_Service_PsCMapsRec table used to */
+    /* handle glyph names <-> unicode & Mac values                   */
+    void*                 psnames;
+
+
+    /***********************************************************************/
+    /*                                                                     */
+    /* Optional TrueType/OpenType tables                                   */
+    /*                                                                     */
+    /***********************************************************************/
+
+    /* horizontal device metrics */
+#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
+    TT_HdmxRec            hdmx;
+#endif
+
+    /* grid-fitting and scaling table */
+    TT_GaspRec            gasp;                 /* the `gasp' table */
+
+    /* PCL 5 table */
+    TT_PCLT               pclt;
+
+    /* embedded bitmaps support */
+#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
+    FT_ULong              num_sbit_strikes;
+    TT_SBit_Strike        sbit_strikes;
+#endif
+
+    FT_ULong              num_sbit_scales;
+    TT_SBit_Scale         sbit_scales;
+
+    /* postscript names table */
+    TT_Post_NamesRec      postscript_names;
+
+
+    /***********************************************************************/
+    /*                                                                     */
+    /* TrueType-specific fields (ignored by the OTF-Type2 driver)          */
+    /*                                                                     */
+    /***********************************************************************/
+
+    /* the glyph locations */
+#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
+    FT_UShort             num_locations_stub;
+    FT_Long*              glyph_locations_stub;
+#endif
+
+    /* the font program, if any */
+    FT_ULong              font_program_size;
+    FT_Byte*              font_program;
+
+    /* the cvt program, if any */
+    FT_ULong              cvt_program_size;
+    FT_Byte*              cvt_program;
+
+    /* the original, unscaled, control value table */
+    FT_ULong              cvt_size;
+    FT_Short*             cvt;
+
+#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
+    /* the format 0 kerning table, if any */
+    FT_Int                num_kern_pairs;
+    FT_Int                kern_table_index;
+    TT_Kern0_Pair         kern_pairs;
+#endif
+
+    /* A pointer to the bytecode interpreter to use.  This is also */
+    /* used to hook the debugger for the `ttdebug' utility.        */
+    TT_Interpreter        interpreter;
+
+#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
+    /* Use unpatented hinting only. */
+    FT_Bool               unpatented_hinting;
+#endif
+
+    /***********************************************************************/
+    /*                                                                     */
+    /* Other tables or fields. This is used by derivative formats like     */
+    /* OpenType.                                                           */
+    /*                                                                     */
+    /***********************************************************************/
+
+    FT_Generic            extra;
+
+    const char*           postscript_name;
+
+    /* since version 2.1.8, but was originally placed after */
+    /* `glyph_locations_stub'                               */
+    FT_ULong              glyf_len;
+
+    /* since version 2.1.8, but was originally placed before `extra' */
+#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
+    FT_Bool               doblend;
+    GX_Blend              blend;
+#endif
+
+    /* since version 2.2 */
+
+    FT_Byte*              horz_metrics;
+    FT_ULong              horz_metrics_size;
+
+    FT_Byte*              vert_metrics;
+    FT_ULong              vert_metrics_size;
+
+    FT_UInt               num_locations;
+    FT_Byte*              glyph_locations;
+
+    FT_Byte*              hdmx_table;
+    FT_ULong              hdmx_table_size;
+    FT_UInt               hdmx_record_count;
+    FT_ULong              hdmx_record_size;
+    FT_Byte*              hdmx_record_sizes;
+
+    FT_Byte*              sbit_table;
+    FT_ULong              sbit_table_size;
+    FT_UInt               sbit_num_strikes;
+
+    FT_Byte*              kern_table;
+    FT_ULong              kern_table_size;
+    FT_UInt               num_kern_tables;
+    FT_UInt32             kern_avail_bits;
+    FT_UInt32             kern_order_bits;
+
+#ifdef TT_CONFIG_OPTION_BDF
+    TT_BDFRec             bdf;
+#endif /* TT_CONFIG_OPTION_BDF */
+
+    /* since 2.3.0 */
+    FT_ULong              horz_metrics_offset;
+    FT_ULong              vert_metrics_offset;
+
+  } TT_FaceRec;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /*  <Struct>                                                             */
+  /*     TT_GlyphZoneRec                                                   */
+  /*                                                                       */
+  /*  <Description>                                                        */
+  /*     A glyph zone is used to load, scale and hint glyph outline        */
+  /*     coordinates.                                                      */
+  /*                                                                       */
+  /*  <Fields>                                                             */
+  /*     memory       :: A handle to the memory manager.                   */
+  /*                                                                       */
+  /*     max_points   :: The maximal size in points of the zone.           */
+  /*                                                                       */
+  /*     max_contours :: Max size in links contours of the zone.           */
+  /*                                                                       */
+  /*     n_points     :: The current number of points in the zone.         */
+  /*                                                                       */
+  /*     n_contours   :: The current number of contours in the zone.       */
+  /*                                                                       */
+  /*     org          :: The original glyph coordinates (font              */
+  /*                     units/scaled).                                    */
+  /*                                                                       */
+  /*     cur          :: The current glyph coordinates (scaled/hinted).    */
+  /*                                                                       */
+  /*     tags         :: The point control tags.                           */
+  /*                                                                       */
+  /*     contours     :: The contours end points.                          */
+  /*                                                                       */
+  /*     first_point  :: Offset of the current subglyph's first point.     */
+  /*                                                                       */
+  typedef struct  TT_GlyphZoneRec_
+  {
+    FT_Memory   memory;
+    FT_UShort   max_points;
+    FT_UShort   max_contours;
+    FT_UShort   n_points;    /* number of points in zone    */
+    FT_Short    n_contours;  /* number of contours          */
+
+    FT_Vector*  org;         /* original point coordinates  */
+    FT_Vector*  cur;         /* current point coordinates   */
+    FT_Vector*  orus;        /* original (unscaled) point coordinates */
+
+    FT_Byte*    tags;        /* current touch flags         */
+    FT_UShort*  contours;    /* contour end points          */
+
+    FT_UShort   first_point; /* offset of first (#0) point  */
+
+  } TT_GlyphZoneRec, *TT_GlyphZone;
+
+
+  /* handle to execution context */
+  typedef struct TT_ExecContextRec_*  TT_ExecContext;
+
+  /* glyph loader structure */
+  typedef struct  TT_LoaderRec_
+  {
+    FT_Face          face;
+    FT_Size          size;
+    FT_GlyphSlot     glyph;
+    FT_GlyphLoader   gloader;
+
+    FT_ULong         load_flags;
+    FT_UInt          glyph_index;
+
+    FT_Stream        stream;
+    FT_Int           byte_len;
+
+    FT_Short         n_contours;
+    FT_BBox          bbox;
+    FT_Int           left_bearing;
+    FT_Int           advance;
+    FT_Int           linear;
+    FT_Bool          linear_def;
+    FT_Bool          preserve_pps;
+    FT_Vector        pp1;
+    FT_Vector        pp2;
+
+    FT_ULong         glyf_offset;
+
+    /* the zone where we load our glyphs */
+    TT_GlyphZoneRec  base;
+    TT_GlyphZoneRec  zone;
+
+    TT_ExecContext   exec;
+    FT_Byte*         instructions;
+    FT_ULong         ins_pos;
+
+    /* for possible extensibility in other formats */
+    void*            other;
+
+    /* since version 2.1.8 */
+    FT_Int           top_bearing;
+    FT_Int           vadvance;
+    FT_Vector        pp3;
+    FT_Vector        pp4;
+
+    /* since version 2.2.1 */
+    FT_Byte*         cursor;
+    FT_Byte*         limit;
+
+  } TT_LoaderRec;
+
+
+FT_END_HEADER
+
+#endif /* __TTTYPES_H__ */
+
+
+/* END */