Delete all Trailing spaces in code.
[reactos.git] / reactos / dll / 3rdparty / freetype / include / freetype / freetype.h
index dbca087..7e86fd5 100644 (file)
-/***************************************************************************/
-/*                                                                         */
-/*  freetype.h                                                             */
-/*                                                                         */
-/*    FreeType high-level API and common types (specification only).       */
-/*                                                                         */
-/*  Copyright 1996-2001, 2002, 2003, 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 FT_FREETYPE_H
-#error "`ft2build.h' hasn't been included yet!"
-#error "Please always use macros to include FreeType header files."
-#error "Example:"
-#error "  #include <ft2build.h>"
-#error "  #include FT_FREETYPE_H"
-#endif
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* The `raster' component duplicates some of the declarations in         */
-  /* freetype.h for stand-alone use if _FREETYPE_ isn't defined.           */
-  /*                                                                       */
-  /*************************************************************************/
-
-
-#ifndef __FREETYPE_H__
-#define __FREETYPE_H__
-
-
-#include <ft2build.h>
-#include FT_CONFIG_CONFIG_H
-#include FT_ERRORS_H
-#include FT_TYPES_H
-
-
-FT_BEGIN_HEADER
-
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Section>                                                             */
-  /*    user_allocation                                                    */
-  /*                                                                       */
-  /* <Title>                                                               */
-  /*    User allocation                                                    */
-  /*                                                                       */
-  /* <Abstract>                                                            */
-  /*    How client applications should allocate FreeType data structures.  */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    FreeType assumes that structures allocated by the user and passed  */
-  /*    as arguments are zeroed out except for the actual data.  With      */
-  /*    other words, it is recommended to use `calloc' (or variants of it) */
-  /*    instead of `malloc' for allocation.                                */
-  /*                                                                       */
-  /*************************************************************************/
-
-
-
-  /*************************************************************************/
-  /*************************************************************************/
-  /*                                                                       */
-  /*                        B A S I C   T Y P E S                          */
-  /*                                                                       */
-  /*************************************************************************/
-  /*************************************************************************/
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Section>                                                             */
-  /*    base_interface                                                     */
-  /*                                                                       */
-  /* <Title>                                                               */
-  /*    Base Interface                                                     */
-  /*                                                                       */
-  /* <Abstract>                                                            */
-  /*    The FreeType 2 base font interface.                                */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This section describes the public high-level API of FreeType 2.    */
-  /*                                                                       */
-  /* <Order>                                                               */
-  /*    FT_Library                                                         */
-  /*    FT_Face                                                            */
-  /*    FT_Size                                                            */
-  /*    FT_GlyphSlot                                                       */
-  /*    FT_CharMap                                                         */
-  /*    FT_Encoding                                                        */
-  /*                                                                       */
-  /*    FT_FaceRec                                                         */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_SCALABLE                                              */
-  /*    FT_FACE_FLAG_FIXED_SIZES                                           */
-  /*    FT_FACE_FLAG_FIXED_WIDTH                                           */
-  /*    FT_FACE_FLAG_HORIZONTAL                                            */
-  /*    FT_FACE_FLAG_VERTICAL                                              */
-  /*    FT_FACE_FLAG_SFNT                                                  */
-  /*    FT_FACE_FLAG_KERNING                                               */
-  /*    FT_FACE_FLAG_MULTIPLE_MASTERS                                      */
-  /*    FT_FACE_FLAG_GLYPH_NAMES                                           */
-  /*    FT_FACE_FLAG_EXTERNAL_STREAM                                       */
-  /*    FT_FACE_FLAG_FAST_GLYPHS                                           */
-  /*    FT_FACE_FLAG_HINTER                                                */
-  /*                                                                       */
-  /*    FT_STYLE_FLAG_BOLD                                                 */
-  /*    FT_STYLE_FLAG_ITALIC                                               */
-  /*                                                                       */
-  /*    FT_SizeRec                                                         */
-  /*    FT_Size_Metrics                                                    */
-  /*                                                                       */
-  /*    FT_GlyphSlotRec                                                    */
-  /*    FT_Glyph_Metrics                                                   */
-  /*    FT_SubGlyph                                                        */
-  /*                                                                       */
-  /*    FT_Bitmap_Size                                                     */
-  /*                                                                       */
-  /*    FT_Init_FreeType                                                   */
-  /*    FT_Done_FreeType                                                   */
-  /*                                                                       */
-  /*    FT_New_Face                                                        */
-  /*    FT_Done_Face                                                       */
-  /*    FT_New_Memory_Face                                                 */
-  /*    FT_Open_Face                                                       */
-  /*    FT_Open_Args                                                       */
-  /*    FT_Parameter                                                       */
-  /*    FT_Attach_File                                                     */
-  /*    FT_Attach_Stream                                                   */
-  /*                                                                       */
-  /*    FT_Set_Char_Size                                                   */
-  /*    FT_Set_Pixel_Sizes                                                 */
-  /*    FT_Request_Size                                                    */
-  /*    FT_Select_Size                                                     */
-  /*    FT_Size_Request_Type                                               */
-  /*    FT_Size_Request                                                    */
-  /*    FT_Set_Transform                                                   */
-  /*    FT_Load_Glyph                                                      */
-  /*    FT_Get_Char_Index                                                  */
-  /*    FT_Get_Name_Index                                                  */
-  /*    FT_Load_Char                                                       */
-  /*                                                                       */
-  /*    FT_OPEN_MEMORY                                                     */
-  /*    FT_OPEN_STREAM                                                     */
-  /*    FT_OPEN_PATHNAME                                                   */
-  /*    FT_OPEN_DRIVER                                                     */
-  /*    FT_OPEN_PARAMS                                                     */
-  /*                                                                       */
-  /*    FT_LOAD_DEFAULT                                                    */
-  /*    FT_LOAD_RENDER                                                     */
-  /*    FT_LOAD_MONOCHROME                                                 */
-  /*    FT_LOAD_LINEAR_DESIGN                                              */
-  /*    FT_LOAD_NO_SCALE                                                   */
-  /*    FT_LOAD_NO_HINTING                                                 */
-  /*    FT_LOAD_NO_BITMAP                                                  */
-  /*    FT_LOAD_CROP_BITMAP                                                */
-  /*                                                                       */
-  /*    FT_LOAD_VERTICAL_LAYOUT                                            */
-  /*    FT_LOAD_IGNORE_TRANSFORM                                           */
-  /*    FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH                                */
-  /*    FT_LOAD_FORCE_AUTOHINT                                             */
-  /*    FT_LOAD_NO_RECURSE                                                 */
-  /*    FT_LOAD_PEDANTIC                                                   */
-  /*                                                                       */
-  /*    FT_LOAD_TARGET_NORMAL                                              */
-  /*    FT_LOAD_TARGET_LIGHT                                               */
-  /*    FT_LOAD_TARGET_MONO                                                */
-  /*    FT_LOAD_TARGET_LCD                                                 */
-  /*    FT_LOAD_TARGET_LCD_V                                               */
-  /*                                                                       */
-  /*    FT_Render_Glyph                                                    */
-  /*    FT_Render_Mode                                                     */
-  /*    FT_Get_Kerning                                                     */
-  /*    FT_Kerning_Mode                                                    */
-  /*    FT_Get_Track_Kerning                                               */
-  /*    FT_Get_Glyph_Name                                                  */
-  /*    FT_Get_Postscript_Name                                             */
-  /*                                                                       */
-  /*    FT_CharMapRec                                                      */
-  /*    FT_Select_Charmap                                                  */
-  /*    FT_Set_Charmap                                                     */
-  /*    FT_Get_Charmap_Index                                               */
-  /*                                                                       */
-  /*************************************************************************/
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_Glyph_Metrics                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A structure used to model the metrics of a single glyph.  The      */
-  /*    values are expressed in 26.6 fractional pixel format; if the flag  */
-  /*    @FT_LOAD_NO_SCALE has been used while loading the glyph, values    */
-  /*    are expressed in font units instead.                               */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    width ::                                                           */
-  /*      The glyph's width.                                               */
-  /*                                                                       */
-  /*    height ::                                                          */
-  /*      The glyph's height.                                              */
-  /*                                                                       */
-  /*    horiBearingX ::                                                    */
-  /*      Left side bearing for horizontal layout.                         */
-  /*                                                                       */
-  /*    horiBearingY ::                                                    */
-  /*      Top side bearing for horizontal layout.                          */
-  /*                                                                       */
-  /*    horiAdvance ::                                                     */
-  /*      Advance width for horizontal layout.                             */
-  /*                                                                       */
-  /*    vertBearingX ::                                                    */
-  /*      Left side bearing for vertical layout.                           */
-  /*                                                                       */
-  /*    vertBearingY ::                                                    */
-  /*      Top side bearing for vertical layout.                            */
-  /*                                                                       */
-  /*    vertAdvance ::                                                     */
-  /*      Advance height for vertical layout.                              */
-  /*                                                                       */
-  typedef struct  FT_Glyph_Metrics_
-  {
-    FT_Pos  width;
-    FT_Pos  height;
-
-    FT_Pos  horiBearingX;
-    FT_Pos  horiBearingY;
-    FT_Pos  horiAdvance;
-
-    FT_Pos  vertBearingX;
-    FT_Pos  vertBearingY;
-    FT_Pos  vertAdvance;
-
-  } FT_Glyph_Metrics;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_Bitmap_Size                                                     */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This structure models the metrics of a bitmap strike (i.e., a set  */
-  /*    of glyphs for a given point size and resolution) in a bitmap font. */
-  /*    It is used for the `available_sizes' field of @FT_Face.            */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    height :: The vertical distance, in pixels, between two            */
-  /*              consecutive baselines.  It is always positive.           */
-  /*                                                                       */
-  /*    width  :: The average width, in pixels, of all glyphs in the       */
-  /*              strike.                                                  */
-  /*                                                                       */
-  /*    size   :: The nominal size of the strike in 26.6 fractional        */
-  /*              points.  This field is not very useful.                  */
-  /*                                                                       */
-  /*    x_ppem :: The horizontal ppem (nominal width) in 26.6 fractional   */
-  /*              pixels.                                                  */
-  /*                                                                       */
-  /*    y_ppem :: The vertical ppem (nominal height) in 26.6 fractional    */
-  /*              pixels.                                                  */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Windows FNT:                                                       */
-  /*      The nominal size given in a FNT font is not reliable.  Thus when */
-  /*      the driver finds it incorrect, it sets `size' to some calculated */
-  /*      values and sets `x_ppem' and `y_ppem' to the pixel width and     */
-  /*      height given in the font, respectively.                          */
-  /*                                                                       */
-  /*    TrueType embedded bitmaps:                                         */
-  /*      `size', `width', and `height' values are not contained in the    */
-  /*      bitmap strike itself.  They are computed from the global font    */
-  /*      parameters.                                                      */
-  /*                                                                       */
-  typedef struct  FT_Bitmap_Size_
-  {
-    FT_Short  height;
-    FT_Short  width;
-
-    FT_Pos    size;
-
-    FT_Pos    x_ppem;
-    FT_Pos    y_ppem;
-
-  } FT_Bitmap_Size;
-
-
-  /*************************************************************************/
-  /*************************************************************************/
-  /*                                                                       */
-  /*                     O B J E C T   C L A S S E S                       */
-  /*                                                                       */
-  /*************************************************************************/
-  /*************************************************************************/
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_Library                                                         */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A handle to a FreeType library instance.  Each `library' is        */
-  /*    completely independent from the others; it is the `root' of a set  */
-  /*    of objects like fonts, faces, sizes, etc.                          */
-  /*                                                                       */
-  /*    It also embeds a memory manager (see @FT_Memory), as well as a     */
-  /*    scan-line converter object (see @FT_Raster).                       */
-  /*                                                                       */
-  /*    For multi-threading applications each thread should have its own   */
-  /*    FT_Library object.                                                 */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Library objects are normally created by @FT_Init_FreeType, and     */
-  /*    destroyed with @FT_Done_FreeType.                                  */
-  /*                                                                       */
-  typedef struct FT_LibraryRec_  *FT_Library;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_Module                                                          */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A handle to a given FreeType module object.  Each module can be a  */
-  /*    font driver, a renderer, or anything else that provides services   */
-  /*    to the formers.                                                    */
-  /*                                                                       */
-  typedef struct FT_ModuleRec_*  FT_Module;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_Driver                                                          */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A handle to a given FreeType font driver object.  Each font driver */
-  /*    is a special module capable of creating faces from font files.     */
-  /*                                                                       */
-  typedef struct FT_DriverRec_*  FT_Driver;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_Renderer                                                        */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A handle to a given FreeType renderer.  A renderer is a special    */
-  /*    module in charge of converting a glyph image to a bitmap, when     */
-  /*    necessary.  Each renderer supports a given glyph image format, and */
-  /*    one or more target surface depths.                                 */
-  /*                                                                       */
-  typedef struct FT_RendererRec_*  FT_Renderer;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_Face                                                            */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A handle to a given typographic face object.  A face object models */
-  /*    a given typeface, in a given style.                                */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Each face object also owns a single @FT_GlyphSlot object, as well  */
-  /*    as one or more @FT_Size objects.                                   */
-  /*                                                                       */
-  /*    Use @FT_New_Face or @FT_Open_Face to create a new face object from */
-  /*    a given filepathname or a custom input stream.                     */
-  /*                                                                       */
-  /*    Use @FT_Done_Face to destroy it (along with its slot and sizes).   */
-  /*                                                                       */
-  /* <Also>                                                                */
-  /*    The @FT_FaceRec details the publicly accessible fields of a given  */
-  /*    face object.                                                       */
-  /*                                                                       */
-  typedef struct FT_FaceRec_*  FT_Face;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_Size                                                            */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A handle to an object used to model a face scaled to a given       */
-  /*    character size.                                                    */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Each @FT_Face has an _active_ @FT_Size object that is used by      */
-  /*    functions like @FT_Load_Glyph to determine the scaling             */
-  /*    transformation which is used to load and hint glyphs and metrics.  */
-  /*                                                                       */
-  /*    You can use @FT_Set_Char_Size, @FT_Set_Pixel_Sizes,                */
-  /*    @FT_Request_Size or even @FT_Select_Size to change the content     */
-  /*    (i.e., the scaling values) of the active @FT_Size.                 */
-  /*                                                                       */
-  /*    You can use @FT_New_Size to create additional size objects for a   */
-  /*    given @FT_Face, but they won't be used by other functions until    */
-  /*    you activate it through @FT_Activate_Size.  Only one size can be   */
-  /*    activated at any given time per face.                              */
-  /*                                                                       */
-  /* <Also>                                                                */
-  /*    The @FT_SizeRec structure details the publicly accessible fields   */
-  /*    of a given size object.                                            */
-  /*                                                                       */
-  typedef struct FT_SizeRec_*  FT_Size;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_GlyphSlot                                                       */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A handle to a given `glyph slot'.  A slot is a container where it  */
-  /*    is possible to load any one of the glyphs contained in its parent  */
-  /*    face.                                                              */
-  /*                                                                       */
-  /*    In other words, each time you call @FT_Load_Glyph or               */
-  /*    @FT_Load_Char, the slot's content is erased by the new glyph data, */
-  /*    i.e., the glyph's metrics, its image (bitmap or outline), and      */
-  /*    other control information.                                         */
-  /*                                                                       */
-  /* <Also>                                                                */
-  /*    @FT_GlyphSlotRec details the publicly accessible glyph fields.     */
-  /*                                                                       */
-  typedef struct FT_GlyphSlotRec_*  FT_GlyphSlot;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_CharMap                                                         */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A handle to a given character map.  A charmap is used to translate */
-  /*    character codes in a given encoding into glyph indexes for its     */
-  /*    parent's face.  Some font formats may provide several charmaps per */
-  /*    font.                                                              */
-  /*                                                                       */
-  /*    Each face object owns zero or more charmaps, but only one of them  */
-  /*    can be `active' and used by @FT_Get_Char_Index or @FT_Load_Char.   */
-  /*                                                                       */
-  /*    The list of available charmaps in a face is available through the  */
-  /*    `face->num_charmaps' and `face->charmaps' fields of @FT_FaceRec.   */
-  /*                                                                       */
-  /*    The currently active charmap is available as `face->charmap'.      */
-  /*    You should call @FT_Set_Charmap to change it.                      */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    When a new face is created (either through @FT_New_Face or         */
-  /*    @FT_Open_Face), the library looks for a Unicode charmap within     */
-  /*    the list and automatically activates it.                           */
-  /*                                                                       */
-  /* <Also>                                                                */
-  /*    The @FT_CharMapRec details the publicly accessible fields of a     */
-  /*    given character map.                                               */
-  /*                                                                       */
-  typedef struct FT_CharMapRec_*  FT_CharMap;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Macro>                                                               */
-  /*    FT_ENC_TAG                                                         */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This macro converts four-letter tags into an unsigned long.  It is */
-  /*    used to define `encoding' identifiers (see @FT_Encoding).          */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Since many 16bit compilers don't like 32bit enumerations, you      */
-  /*    should redefine this macro in case of problems to something like   */
-  /*    this:                                                              */
-  /*                                                                       */
-  /*    {                                                                  */
-  /*      #define FT_ENC_TAG( value, a, b, c, d )  value                   */
-  /*    }                                                                  */
-  /*                                                                       */
-  /*    to get a simple enumeration without assigning special numbers.     */
-  /*                                                                       */
-
-#ifndef FT_ENC_TAG
-#define FT_ENC_TAG( value, a, b, c, d )         \
-          value = ( ( (FT_UInt32)(a) << 24 ) |  \
-                    ( (FT_UInt32)(b) << 16 ) |  \
-                    ( (FT_UInt32)(c) <<  8 ) |  \
-                      (FT_UInt32)(d)         )
-
-#endif /* FT_ENC_TAG */
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Enum>                                                                */
-  /*    FT_Encoding                                                        */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    An enumeration used to specify character sets supported by         */
-  /*    charmaps.  Used in the @FT_Select_Charmap API function.            */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Despite the name, this enumeration lists specific character        */
-  /*    repertories (i.e., charsets), and not text encoding methods (e.g., */
-  /*    UTF-8, UTF-16, GB2312_EUC, etc.).                                  */
-  /*                                                                       */
-  /*    Because of 32-bit charcodes defined in Unicode (i.e., surrogates), */
-  /*    all character codes must be expressed as FT_Longs.                 */
-  /*                                                                       */
-  /*    Other encodings might be defined in the future.                    */
-  /*                                                                       */
-  /* <Values>                                                              */
-  /*   FT_ENCODING_NONE ::                                                 */
-  /*     The encoding value 0 is reserved.                                 */
-  /*                                                                       */
-  /*   FT_ENCODING_UNICODE ::                                              */
-  /*     Corresponds to the Unicode character set.  This value covers      */
-  /*     all versions of the Unicode repertoire, including ASCII and       */
-  /*     Latin-1.  Most fonts include a Unicode charmap, but not all       */
-  /*     of them.                                                          */
-  /*                                                                       */
-  /*   FT_ENCODING_MS_SYMBOL ::                                            */
-  /*     Corresponds to the Microsoft Symbol encoding, used to encode      */
-  /*     mathematical symbols in the 32..255 character code range.  For    */
-  /*     more information, see `http://www.ceviz.net/symbol.htm'.          */
-  /*                                                                       */
-  /*   FT_ENCODING_SJIS ::                                                 */
-  /*     Corresponds to Japanese SJIS encoding.  More info at              */
-  /*     at `http://langsupport.japanreference.com/encoding.shtml'.        */
-  /*     See note on multi-byte encodings below.                           */
-  /*                                                                       */
-  /*   FT_ENCODING_GB2312 ::                                               */
-  /*     Corresponds to an encoding system for Simplified Chinese as used  */
-  /*     used in mainland China.                                           */
-  /*                                                                       */
-  /*   FT_ENCODING_BIG5 ::                                                 */
-  /*     Corresponds to an encoding system for Traditional Chinese as used */
-  /*     in Taiwan and Hong Kong.                                          */
-  /*                                                                       */
-  /*   FT_ENCODING_WANSUNG ::                                              */
-  /*     Corresponds to the Korean encoding system known as Wansung.       */
-  /*     For more information see                                          */
-  /*     `http://www.microsoft.com/typography/unicode/949.txt'.            */
-  /*                                                                       */
-  /*   FT_ENCODING_JOHAB ::                                                */
-  /*     The Korean standard character set (KS C-5601-1992), which         */
-  /*     corresponds to MS Windows code page 1361.  This character set     */
-  /*     includes all possible Hangeul character combinations.             */
-  /*                                                                       */
-  /*   FT_ENCODING_ADOBE_LATIN_1 ::                                        */
-  /*     Corresponds to a Latin-1 encoding as defined in a Type 1          */
-  /*     Postscript font.  It is limited to 256 character codes.           */
-  /*                                                                       */
-  /*   FT_ENCODING_ADOBE_STANDARD ::                                       */
-  /*     Corresponds to the Adobe Standard encoding, as found in Type 1,   */
-  /*     CFF, and OpenType/CFF fonts.  It is limited to 256 character      */
-  /*     codes.                                                            */
-  /*                                                                       */
-  /*   FT_ENCODING_ADOBE_EXPERT ::                                         */
-  /*     Corresponds to the Adobe Expert encoding, as found in Type 1,     */
-  /*     CFF, and OpenType/CFF fonts.  It is limited to 256 character      */
-  /*     codes.                                                            */
-  /*                                                                       */
-  /*   FT_ENCODING_ADOBE_CUSTOM ::                                         */
-  /*     Corresponds to a custom encoding, as found in Type 1, CFF, and    */
-  /*     OpenType/CFF fonts.  It is limited to 256 character codes.        */
-  /*                                                                       */
-  /*   FT_ENCODING_APPLE_ROMAN ::                                          */
-  /*     Corresponds to the 8-bit Apple roman encoding.  Many TrueType and */
-  /*     OpenType fonts contain a charmap for this encoding, since older   */
-  /*     versions of Mac OS are able to use it.                            */
-  /*                                                                       */
-  /*   FT_ENCODING_OLD_LATIN_2 ::                                          */
-  /*     This value is deprecated and was never used nor reported by       */
-  /*     FreeType.  Don't use or test for it.                              */
-  /*                                                                       */
-  /*   FT_ENCODING_MS_SJIS ::                                              */
-  /*     Same as FT_ENCODING_SJIS.  Deprecated.                            */
-  /*                                                                       */
-  /*   FT_ENCODING_MS_GB2312 ::                                            */
-  /*     Same as FT_ENCODING_GB2312.  Deprecated.                          */
-  /*                                                                       */
-  /*   FT_ENCODING_MS_BIG5 ::                                              */
-  /*     Same as FT_ENCODING_BIG5.  Deprecated.                            */
-  /*                                                                       */
-  /*   FT_ENCODING_MS_WANSUNG ::                                           */
-  /*     Same as FT_ENCODING_WANSUNG.  Deprecated.                         */
-  /*                                                                       */
-  /*   FT_ENCODING_MS_JOHAB ::                                             */
-  /*     Same as FT_ENCODING_JOHAB.  Deprecated.                           */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*   By default, FreeType automatically synthetizes a Unicode charmap    */
-  /*   for Postscript fonts, using their glyph names dictionaries.         */
-  /*   However, it also reports the encodings defined explicitly in the    */
-  /*   font file, for the cases when they are needed, with the Adobe       */
-  /*   values as well.                                                     */
-  /*                                                                       */
-  /*   FT_ENCODING_NONE is set by the BDF and PCF drivers if the charmap   */
-  /*   is neither Unicode nor ISO-8859-1 (otherwise it is set to           */
-  /*   FT_ENCODING_UNICODE).  Use @FT_Get_BDF_Charset_ID to find out which */
-  /*   encoding is really present.  If, for example, the `cs_registry'     */
-  /*   field is `KOI8' and the `cs_encoding' field is `R', the font is     */
-  /*   encoded in KOI8-R.                                                  */
-  /*                                                                       */
-  /*   FT_ENCODING_NONE is always set (with a single exception) by the     */
-  /*   winfonts driver.  Use @FT_Get_WinFNT_Header and examine the         */
-  /*   `charset' field of the @FT_WinFNT_HeaderRec structure to find out   */
-  /*   which encoding is really present.  For example,                     */
-  /*   @FT_WinFNT_ID_CP1251 (204) means Windows code page 1251 (for        */
-  /*   Russian).                                                           */
-  /*                                                                       */
-  /*   FT_ENCODING_NONE is set if `platform_id' is @TT_PLATFORM_MACINTOSH  */
-  /*   and `encoding_id' is not @TT_MAC_ID_ROMAN (otherwise it is set to   */
-  /*   FT_ENCODING_APPLE_ROMAN).                                           */
-  /*                                                                       */
-  /*   If `platform_id' is @TT_PLATFORM_MACINTOSH, use the function  c     */
-  /*   @FT_Get_CMap_Language_ID  to query the Mac language ID which may be */
-  /*   needed to be able to distinguish Apple encoding variants.  See      */
-  /*                                                                       */
-  /*     http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/README.TXT   */
-  /*                                                                       */
-  /*   to get an idea how to do that.  Basically, if the language ID is 0, */
-  /*   don't use it, otherwise subtract 1 from the language ID.  Then      */
-  /*   examine `encoding_id'.  If, for example, `encoding_id' is           */
-  /*   @TT_MAC_ID_ROMAN and the language ID (minus 1) is                   */
-  /*   `TT_MAC_LANGID_GREEK', it is the Greek encoding, not Roman.         */
-  /*   @TT_MAC_ID_ARABIC with `TT_MAC_LANGID_FARSI' means the Farsi        */
-  /*   variant the Arabic encoding.                                        */
-  /*                                                                       */
-  typedef enum  FT_Encoding_
-  {
-    FT_ENC_TAG( FT_ENCODING_NONE, 0, 0, 0, 0 ),
-
-    FT_ENC_TAG( FT_ENCODING_MS_SYMBOL, 's', 'y', 'm', 'b' ),
-    FT_ENC_TAG( FT_ENCODING_UNICODE,   'u', 'n', 'i', 'c' ),
-
-    FT_ENC_TAG( FT_ENCODING_SJIS,    's', 'j', 'i', 's' ),
-    FT_ENC_TAG( FT_ENCODING_GB2312,  'g', 'b', ' ', ' ' ),
-    FT_ENC_TAG( FT_ENCODING_BIG5,    'b', 'i', 'g', '5' ),
-    FT_ENC_TAG( FT_ENCODING_WANSUNG, 'w', 'a', 'n', 's' ),
-    FT_ENC_TAG( FT_ENCODING_JOHAB,   'j', 'o', 'h', 'a' ),
-
-    /* for backwards compatibility */
-    FT_ENCODING_MS_SJIS    = FT_ENCODING_SJIS,
-    FT_ENCODING_MS_GB2312  = FT_ENCODING_GB2312,
-    FT_ENCODING_MS_BIG5    = FT_ENCODING_BIG5,
-    FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG,
-    FT_ENCODING_MS_JOHAB   = FT_ENCODING_JOHAB,
-
-    FT_ENC_TAG( FT_ENCODING_ADOBE_STANDARD, 'A', 'D', 'O', 'B' ),
-    FT_ENC_TAG( FT_ENCODING_ADOBE_EXPERT,   'A', 'D', 'B', 'E' ),
-    FT_ENC_TAG( FT_ENCODING_ADOBE_CUSTOM,   'A', 'D', 'B', 'C' ),
-    FT_ENC_TAG( FT_ENCODING_ADOBE_LATIN_1,  'l', 'a', 't', '1' ),
-
-    FT_ENC_TAG( FT_ENCODING_OLD_LATIN_2, 'l', 'a', 't', '2' ),
-
-    FT_ENC_TAG( FT_ENCODING_APPLE_ROMAN, 'a', 'r', 'm', 'n' )
-
-  } FT_Encoding;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Enum>                                                                */
-  /*    ft_encoding_xxx                                                    */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    These constants are deprecated; use the corresponding @FT_Encoding */
-  /*    values instead.                                                    */
-  /*                                                                       */
-#define ft_encoding_none            FT_ENCODING_NONE
-#define ft_encoding_unicode         FT_ENCODING_UNICODE
-#define ft_encoding_symbol          FT_ENCODING_MS_SYMBOL
-#define ft_encoding_latin_1         FT_ENCODING_ADOBE_LATIN_1
-#define ft_encoding_latin_2         FT_ENCODING_OLD_LATIN_2
-#define ft_encoding_sjis            FT_ENCODING_SJIS
-#define ft_encoding_gb2312          FT_ENCODING_GB2312
-#define ft_encoding_big5            FT_ENCODING_BIG5
-#define ft_encoding_wansung         FT_ENCODING_WANSUNG
-#define ft_encoding_johab           FT_ENCODING_JOHAB
-
-#define ft_encoding_adobe_standard  FT_ENCODING_ADOBE_STANDARD
-#define ft_encoding_adobe_expert    FT_ENCODING_ADOBE_EXPERT
-#define ft_encoding_adobe_custom    FT_ENCODING_ADOBE_CUSTOM
-#define ft_encoding_apple_roman     FT_ENCODING_APPLE_ROMAN
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_CharMapRec                                                      */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    The base charmap structure.                                        */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    face        :: A handle to the parent face object.                 */
-  /*                                                                       */
-  /*    encoding    :: An @FT_Encoding tag identifying the charmap.  Use   */
-  /*                   this with @FT_Select_Charmap.                       */
-  /*                                                                       */
-  /*    platform_id :: An ID number describing the platform for the        */
-  /*                   following encoding ID.  This comes directly from    */
-  /*                   the TrueType specification and should be emulated   */
-  /*                   for other formats.                                  */
-  /*                                                                       */
-  /*    encoding_id :: A platform specific encoding number.  This also     */
-  /*                   comes from the TrueType specification and should be */
-  /*                   emulated similarly.                                 */
-  /*                                                                       */
-  typedef struct  FT_CharMapRec_
-  {
-    FT_Face      face;
-    FT_Encoding  encoding;
-    FT_UShort    platform_id;
-    FT_UShort    encoding_id;
-
-  } FT_CharMapRec;
-
-
-  /*************************************************************************/
-  /*************************************************************************/
-  /*                                                                       */
-  /*                 B A S E   O B J E C T   C L A S S E S                 */
-  /*                                                                       */
-  /*************************************************************************/
-  /*************************************************************************/
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_Face_Internal                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    An opaque handle to an `FT_Face_InternalRec' structure, used to    */
-  /*    model private data of a given @FT_Face object.                     */
-  /*                                                                       */
-  /*    This structure might change between releases of FreeType 2 and is  */
-  /*    not generally available to client applications.                    */
-  /*                                                                       */
-  typedef struct FT_Face_InternalRec_*  FT_Face_Internal;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_FaceRec                                                         */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    FreeType root face class structure.  A face object models a        */
-  /*    typeface in a font file.                                           */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    num_faces           :: The number of faces in the font file.  Some */
-  /*                           font formats can have multiple faces in     */
-  /*                           a font file.                                */
-  /*                                                                       */
-  /*    face_index          :: The index of the face in the font file.  It */
-  /*                           is set to 0 if there is only one face in    */
-  /*                           the font file.                              */
-  /*                                                                       */
-  /*    face_flags          :: A set of bit flags that give important      */
-  /*                           information about the face; see             */
-  /*                           @FT_FACE_FLAG_XXX for the details.          */
-  /*                                                                       */
-  /*    style_flags         :: A set of bit flags indicating the style of  */
-  /*                           the face; see @FT_STYLE_FLAG_XXX for the    */
-  /*                           details.                                    */
-  /*                                                                       */
-  /*    num_glyphs          :: The number of glyphs in the face.  If the   */
-  /*                           face is scalable and has sbits (see         */
-  /*                           `num_fixed_sizes'), it is set to the number */
-  /*                           of outline glyphs.                          */
-  /*                                                                       */
-  /*    family_name         :: The face's family name.  This is an ASCII   */
-  /*                           string, usually in English, which describes */
-  /*                           the typeface's family (like `Times New      */
-  /*                           Roman', `Bodoni', `Garamond', etc).  This   */
-  /*                           is a least common denominator used to list  */
-  /*                           fonts.  Some formats (TrueType & OpenType)  */
-  /*                           provide localized and Unicode versions of   */
-  /*                           this string.  Applications should use the   */
-  /*                           format specific interface to access them.   */
-  /*                                                                       */
-  /*    style_name          :: The face's style name.  This is an ASCII    */
-  /*                           string, usually in English, which describes */
-  /*                           the typeface's style (like `Italic',        */
-  /*                           `Bold', `Condensed', etc).  Not all font    */
-  /*                           formats provide a style name, so this field */
-  /*                           is optional, and can be set to NULL.  As    */
-  /*                           for `family_name', some formats provide     */
-  /*                           localized and Unicode versions of this      */
-  /*                           string.  Applications should use the format */
-  /*                           specific interface to access them.          */
-  /*                                                                       */
-  /*    num_fixed_sizes     :: The number of bitmap strikes in the face.   */
-  /*                           Even if the face is scalable, there might   */
-  /*                           still be bitmap strikes, which are called   */
-  /*                           `sbits' in that case.                       */
-  /*                                                                       */
-  /*    available_sizes     :: An array of @FT_Bitmap_Size for all bitmap  */
-  /*                           strikes in the face.  It is set to NULL if  */
-  /*                           there is no bitmap strike.                  */
-  /*                                                                       */
-  /*    num_charmaps        :: The number of charmaps in the face.         */
-  /*                                                                       */
-  /*    charmaps            :: An array of the charmaps of the face.       */
-  /*                                                                       */
-  /*    generic             :: A field reserved for client uses.  See the  */
-  /*                           @FT_Generic type description.               */
-  /*                                                                       */
-  /*    bbox                :: The font bounding box.  Coordinates are     */
-  /*                           expressed in font units (see                */
-  /*                           `units_per_EM').  The box is large enough   */
-  /*                           to contain any glyph from the font.  Thus,  */
-  /*                           `bbox.yMax' can be seen as the `maximal     */
-  /*                           ascender', and `bbox.yMin' as the `minimal  */
-  /*                           descender'.  Only relevant for scalable     */
-  /*                           formats.                                    */
-  /*                                                                       */
-  /*    units_per_EM        :: The number of font units per EM square for  */
-  /*                           this face.  This is typically 2048 for      */
-  /*                           TrueType fonts, and 1000 for Type 1 fonts.  */
-  /*                           Only relevant for scalable formats.         */
-  /*                                                                       */
-  /*    ascender            :: The typographic ascender of the face,       */
-  /*                           expressed in font units.  For font formats  */
-  /*                           not having this information, it is set to   */
-  /*                           `bbox.yMax'.  Only relevant for scalable    */
-  /*                           formats.                                    */
-  /*                                                                       */
-  /*    descender           :: The typographic descender of the face,      */
-  /*                           expressed in font units.  For font formats  */
-  /*                           not having this information, it is set to   */
-  /*                           `bbox.yMin'.  Note that this field is       */
-  /*                           usually negative.  Only relevant for        */
-  /*                           scalable formats.                           */
-  /*                                                                       */
-  /*    height              :: The height is the vertical distance         */
-  /*                           between two consecutive baselines,          */
-  /*                           expressed in font units.  It is always      */
-  /*                           positive.  Only relevant for scalable       */
-  /*                           formats.                                    */
-  /*                                                                       */
-  /*    max_advance_width   :: The maximal advance width, in font units,   */
-  /*                           for all glyphs in this face.  This can be   */
-  /*                           used to make word wrapping computations     */
-  /*                           faster.  Only relevant for scalable         */
-  /*                           formats.                                    */
-  /*                                                                       */
-  /*    max_advance_height  :: The maximal advance height, in font units,  */
-  /*                           for all glyphs in this face.  This is only  */
-  /*                           relevant for vertical layouts, and is set   */
-  /*                           to `height' for fonts that do not provide   */
-  /*                           vertical metrics.  Only relevant for        */
-  /*                           scalable formats.                           */
-  /*                                                                       */
-  /*    underline_position  :: The position, in font units, of the         */
-  /*                           underline line for this face.  It's the     */
-  /*                           center of the underlining stem.  Only       */
-  /*                           relevant for scalable formats.              */
-  /*                                                                       */
-  /*    underline_thickness :: The thickness, in font units, of the        */
-  /*                           underline for this face.  Only relevant for */
-  /*                           scalable formats.                           */
-  /*                                                                       */
-  /*    glyph               :: The face's associated glyph slot(s).        */
-  /*                                                                       */
-  /*    size                :: The current active size for this face.      */
-  /*                                                                       */
-  /*    charmap             :: The current active charmap for this face.   */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*   Fields may be changed after a call to @FT_Attach_File or            */
-  /*   @FT_Attach_Stream.                                                  */
-  /*                                                                       */
-  typedef struct  FT_FaceRec_
-  {
-    FT_Long           num_faces;
-    FT_Long           face_index;
-
-    FT_Long           face_flags;
-    FT_Long           style_flags;
-
-    FT_Long           num_glyphs;
-
-    FT_String*        family_name;
-    FT_String*        style_name;
-
-    FT_Int            num_fixed_sizes;
-    FT_Bitmap_Size*   available_sizes;
-
-    FT_Int            num_charmaps;
-    FT_CharMap*       charmaps;
-
-    FT_Generic        generic;
-
-    /*# The following member variables (down to `underline_thickness') */
-    /*# are only relevant to scalable outlines; cf. @FT_Bitmap_Size    */
-    /*# for bitmap fonts.                                              */
-    FT_BBox           bbox;
-
-    FT_UShort         units_per_EM;
-    FT_Short          ascender;
-    FT_Short          descender;
-    FT_Short          height;
-
-    FT_Short          max_advance_width;
-    FT_Short          max_advance_height;
-
-    FT_Short          underline_position;
-    FT_Short          underline_thickness;
-
-    FT_GlyphSlot      glyph;
-    FT_Size           size;
-    FT_CharMap        charmap;
-
-    /*@private begin */
-
-    FT_Driver         driver;
-    FT_Memory         memory;
-    FT_Stream         stream;
-
-    FT_ListRec        sizes_list;
-
-    FT_Generic        autohint;
-    void*             extensions;
-
-    FT_Face_Internal  internal;
-
-    /*@private end */
-
-  } FT_FaceRec;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Enum>                                                                */
-  /*    FT_FACE_FLAG_XXX                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A list of bit flags used in the `face_flags' field of the          */
-  /*    @FT_FaceRec structure.  They inform client applications of         */
-  /*    properties of the corresponding face.                              */
-  /*                                                                       */
-  /* <Values>                                                              */
-  /*    FT_FACE_FLAG_SCALABLE ::                                           */
-  /*      Indicates that the face contains outline glyphs.  This doesn't   */
-  /*      prevent bitmap strikes, i.e., a face can have both this and      */
-  /*      and @FT_FACE_FLAG_FIXED_SIZES set.                               */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_FIXED_SIZES ::                                        */
-  /*      Indicates that the face contains bitmap strikes.  See also the   */
-  /*      `num_fixed_sizes' and `available_sizes' fields of @FT_FaceRec.   */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_FIXED_WIDTH ::                                        */
-  /*      Indicates that the face contains fixed-width characters (like    */
-  /*      Courier, Lucido, MonoType, etc.).                                */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_SFNT ::                                               */
-  /*      Indicates that the face uses the `sfnt' storage scheme.  For     */
-  /*      now, this means TrueType and OpenType.                           */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_HORIZONTAL ::                                         */
-  /*      Indicates that the face contains horizontal glyph metrics.  This */
-  /*      should be set for all common formats.                            */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_VERTICAL ::                                           */
-  /*      Indicates that the face contains vertical glyph metrics.  This   */
-  /*      is only available in some formats, not all of them.              */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_KERNING ::                                            */
-  /*      Indicates that the face contains kerning information.  If set,   */
-  /*      the kerning distance can be retrieved through the function       */
-  /*      @FT_Get_Kerning.  Otherwise the function always return the       */
-  /*      vector (0,0).  Note that FreeType doesn't handle kerning data    */
-  /*      from the `GPOS' table (as present in some OpenType fonts).       */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_FAST_GLYPHS ::                                        */
-  /*      THIS FLAG IS DEPRECATED.  DO NOT USE OR TEST IT.                 */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_MULTIPLE_MASTERS ::                                   */
-  /*      Indicates that the font contains multiple masters and is capable */
-  /*      of interpolating between them.  See the multiple-masters         */
-  /*      specific API for details.                                        */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_GLYPH_NAMES ::                                        */
-  /*      Indicates that the font contains glyph names that can be         */
-  /*      retrieved through @FT_Get_Glyph_Name.  Note that some TrueType   */
-  /*      fonts contain broken glyph name tables.  Use the function        */
-  /*      @FT_Has_PS_Glyph_Names when needed.                              */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_EXTERNAL_STREAM ::                                    */
-  /*      Used internally by FreeType to indicate that a face's stream was */
-  /*      provided by the client application and should not be destroyed   */
-  /*      when @FT_Done_Face is called.  Don't read or test this flag.     */
-  /*                                                                       */
-  /*    FT_FACE_FLAG_HINTER ::                                             */
-  /*      Set if the font driver has a hinting machine of its own.  For    */
-  /*      example, with TrueType fonts, it makes sense to use data from    */
-  /*      the SFNT `gasp' table only if the native TrueType hinting engine */
-  /*      (with the bytecode interpreter) is available and active.         */
-  /*                                                                       */
-#define FT_FACE_FLAG_SCALABLE          ( 1L <<  0 )
-#define FT_FACE_FLAG_FIXED_SIZES       ( 1L <<  1 )
-#define FT_FACE_FLAG_FIXED_WIDTH       ( 1L <<  2 )
-#define FT_FACE_FLAG_SFNT              ( 1L <<  3 )
-#define FT_FACE_FLAG_HORIZONTAL        ( 1L <<  4 )
-#define FT_FACE_FLAG_VERTICAL          ( 1L <<  5 )
-#define FT_FACE_FLAG_KERNING           ( 1L <<  6 )
-#define FT_FACE_FLAG_FAST_GLYPHS       ( 1L <<  7 )
-#define FT_FACE_FLAG_MULTIPLE_MASTERS  ( 1L <<  8 )
-#define FT_FACE_FLAG_GLYPH_NAMES       ( 1L <<  9 )
-#define FT_FACE_FLAG_EXTERNAL_STREAM   ( 1L << 10 )
-#define FT_FACE_FLAG_HINTER            ( 1L << 11 )
-
-  /* */
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_HAS_HORIZONTAL( face )
-   *
-   * @description:
-   *   A macro that returns true whenever a face object contains
-   *   horizontal metrics (this is true for all font formats though).
-   *
-   * @also:
-   *   @FT_HAS_VERTICAL can be used to check for vertical metrics.
-   *
-   */
-#define FT_HAS_HORIZONTAL( face ) \
-          ( face->face_flags & FT_FACE_FLAG_HORIZONTAL )
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_HAS_VERTICAL( face )
-   *
-   * @description:
-   *   A macro that returns true whenever a face object contains vertical
-   *   metrics.
-   *
-   */
-#define FT_HAS_VERTICAL( face ) \
-          ( face->face_flags & FT_FACE_FLAG_VERTICAL )
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_HAS_KERNING( face )
-   *
-   * @description:
-   *   A macro that returns true whenever a face object contains kerning
-   *   data that can be accessed with @FT_Get_Kerning.
-   *
-   */
-#define FT_HAS_KERNING( face ) \
-          ( face->face_flags & FT_FACE_FLAG_KERNING )
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_IS_SCALABLE( face )
-   *
-   * @description:
-   *   A macro that returns true whenever a face object contains a scalable
-   *   font face (true for TrueType, Type 1, Type 42, CID, OpenType/CFF,
-   *   and PFR font formats.
-   *
-   */
-#define FT_IS_SCALABLE( face ) \
-          ( face->face_flags & FT_FACE_FLAG_SCALABLE )
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_IS_SFNT( face )
-   *
-   * @description:
-   *   A macro that returns true whenever a face object contains a font
-   *   whose format is based on the SFNT storage scheme.  This usually
-   *   means: TrueType fonts, OpenType fonts, as well as SFNT-based embedded
-   *   bitmap fonts.
-   *
-   *   If this macro is true, all functions defined in @FT_SFNT_NAMES_H and
-   *   @FT_TRUETYPE_TABLES_H are available.
-   *
-   */
-#define FT_IS_SFNT( face ) \
-          ( face->face_flags & FT_FACE_FLAG_SFNT )
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_IS_FIXED_WIDTH( face )
-   *
-   * @description:
-   *   A macro that returns true whenever a face object contains a font face
-   *   that contains fixed-width (or `monospace', `fixed-pitch', etc.)
-   *   glyphs.
-   *
-   */
-#define FT_IS_FIXED_WIDTH( face ) \
-          ( face->face_flags & FT_FACE_FLAG_FIXED_WIDTH )
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_HAS_FIXED_SIZES( face )
-   *
-   * @description:
-   *   A macro that returns true whenever a face object contains some
-   *   embedded bitmaps.  See the `available_sizes' field of the
-   *   @FT_FaceRec structure.
-   *
-   */
-#define FT_HAS_FIXED_SIZES( face ) \
-          ( face->face_flags & FT_FACE_FLAG_FIXED_SIZES )
-
-  /* */
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_HAS_FAST_GLYPHS( face )
-   *
-   * @description:
-   *   Deprecated.
-   *
-   */
-#define FT_HAS_FAST_GLYPHS( face )  0
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_HAS_GLYPH_NAMES( face )
-   *
-   * @description:
-   *   A macro that returns true whenever a face object contains some glyph
-   *   names that can be accessed through @FT_Get_Glyph_Name.
-   *
-   */
-#define FT_HAS_GLYPH_NAMES( face ) \
-          ( face->face_flags & FT_FACE_FLAG_GLYPH_NAMES )
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_HAS_MULTIPLE_MASTERS( face )
-   *
-   * @description:
-   *   A macro that returns true whenever a face object contains some
-   *   multiple masters.  The functions provided by @FT_MULTIPLE_MASTERS_H
-   *   are then available to choose the exact design you want.
-   *
-   */
-#define FT_HAS_MULTIPLE_MASTERS( face ) \
-          ( face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Constant>                                                            */
-  /*    FT_STYLE_FLAG_XXX                                                  */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A list of bit-flags used to indicate the style of a given face.    */
-  /*    These are used in the `style_flags' field of @FT_FaceRec.          */
-  /*                                                                       */
-  /* <Values>                                                              */
-  /*    FT_STYLE_FLAG_ITALIC ::                                            */
-  /*      Indicates that a given face is italicized.                       */
-  /*                                                                       */
-  /*    FT_STYLE_FLAG_BOLD ::                                              */
-  /*      Indicates that a given face is bold.                             */
-  /*                                                                       */
-#define FT_STYLE_FLAG_ITALIC  ( 1 << 0 )
-#define FT_STYLE_FLAG_BOLD    ( 1 << 1 )
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_Size_Internal                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    An opaque handle to an `FT_Size_InternalRec' structure, used to    */
-  /*    model private data of a given FT_Size object.                      */
-  /*                                                                       */
-  typedef struct FT_Size_InternalRec_*  FT_Size_Internal;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_Size_Metrics                                                    */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    The size metrics structure gives the metrics of a size object.     */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    x_ppem       :: The width of the scaled EM square in pixels, hence */
-  /*                    the term `ppem' (pixels per EM).  It is also       */
-  /*                    referred to as `nominal width'.                    */
-  /*                                                                       */
-  /*    y_ppem       :: The height of the scaled EM square in pixels,      */
-  /*                    hence the term `ppem' (pixels per EM).  It is also */
-  /*                    referred to as `nominal height'.                   */
-  /*                                                                       */
-  /*    x_scale      :: A 16.16 fractional scaling value used to convert   */
-  /*                    horizontal metrics from font units to 26.6         */
-  /*                    fractional pixels.  Only relevant for scalable     */
-  /*                    font formats.                                      */
-  /*                                                                       */
-  /*    y_scale      :: A 16.16 fractional scaling value used to convert   */
-  /*                    vertical metrics from font units to 26.6           */
-  /*                    fractional pixels.  Only relevant for scalable     */
-  /*                    font formats.                                      */
-  /*                                                                       */
-  /*    ascender     :: The ascender in 26.6 fractional pixels.  See       */
-  /*                    @FT_FaceRec for the details.                       */
-  /*                                                                       */
-  /*    descender    :: The descender in 26.6 fractional pixels.  See      */
-  /*                    @FT_FaceRec for the details.                       */
-  /*                                                                       */
-  /*    height       :: The height in 26.6 fractional pixels.  See         */
-  /*                    @FT_FaceRec for the details.                       */
-  /*                                                                       */
-  /*    max_advance  :: The maximal advance width in 26.6 fractional       */
-  /*                    pixels.  See @FT_FaceRec for the details.          */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The scaling values, if relevant, are determined first during a     */
-  /*    size changing operation.  The remaining fields are then set by the */
-  /*    driver.  For scalable formats, they are usually set to scaled      */
-  /*    values of the corresponding fields in @FT_FaceRec.                 */
-  /*                                                                       */
-  /*    Note that due to glyph hinting, these values might not be exact    */
-  /*    for certain fonts.  Thus they must be treated as unreliable        */
-  /*    with an error margin of at least one pixel!                        */
-  /*                                                                       */
-  /*    Indeed, the only way to get the exact metrics is to render _all_   */
-  /*    glyphs.  As this would be a definite performance hit, it is up to  */
-  /*    client applications to perform such computations.                  */
-  /*                                                                       */
-  /*    The FT_Size_Metrics structure is valid for bitmap fonts also.      */
-  /*                                                                       */
-  typedef struct  FT_Size_Metrics_
-  {
-    FT_UShort  x_ppem;      /* horizontal pixels per EM               */
-    FT_UShort  y_ppem;      /* vertical pixels per EM                 */
-
-    FT_Fixed   x_scale;     /* scaling values used to convert font    */
-    FT_Fixed   y_scale;     /* units to 26.6 fractional pixels        */
-
-    FT_Pos     ascender;    /* ascender in 26.6 frac. pixels          */
-    FT_Pos     descender;   /* descender in 26.6 frac. pixels         */
-    FT_Pos     height;      /* text height in 26.6 frac. pixels       */
-    FT_Pos     max_advance; /* max horizontal advance, in 26.6 pixels */
-
-  } FT_Size_Metrics;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_SizeRec                                                         */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    FreeType root size class structure.  A size object models a face   */
-  /*    object at a given size.                                            */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    face    :: Handle to the parent face object.                       */
-  /*                                                                       */
-  /*    generic :: A typeless pointer, which is unused by the FreeType     */
-  /*               library or any of its drivers.  It can be used by       */
-  /*               client applications to link their own data to each size */
-  /*               object.                                                 */
-  /*                                                                       */
-  /*    metrics :: Metrics for this size object.  This field is read-only. */
-  /*                                                                       */
-  typedef struct  FT_SizeRec_
-  {
-    FT_Face           face;      /* parent face object              */
-    FT_Generic        generic;   /* generic pointer for client uses */
-    FT_Size_Metrics   metrics;   /* size metrics                    */
-    FT_Size_Internal  internal;
-
-  } FT_SizeRec;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_SubGlyph                                                        */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    The subglyph structure is an internal object used to describe      */
-  /*    subglyphs (for example, in the case of composites).                */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The subglyph implementation is not part of the high-level API,     */
-  /*    hence the forward structure declaration.                           */
-  /*                                                                       */
-  /*    You can however retrieve subglyph information with                 */
-  /*    @FT_Get_SubGlyph_Info.                                             */
-  /*                                                                       */
-  typedef struct FT_SubGlyphRec_*  FT_SubGlyph;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Type>                                                                */
-  /*    FT_Slot_Internal                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    An opaque handle to an `FT_Slot_InternalRec' structure, used to    */
-  /*    model private data of a given FT_GlyphSlot object.                 */
-  /*                                                                       */
-  typedef struct FT_Slot_InternalRec_*  FT_Slot_Internal;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_GlyphSlotRec                                                    */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    FreeType root glyph slot class structure.  A glyph slot is a       */
-  /*    container where individual glyphs can be loaded, be they in        */
-  /*    outline or bitmap format.                                          */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    library           :: A handle to the FreeType library instance     */
-  /*                         this slot belongs to.                         */
-  /*                                                                       */
-  /*    face              :: A handle to the parent face object.           */
-  /*                                                                       */
-  /*    next              :: In some cases (like some font tools), several */
-  /*                         glyph slots per face object can be a good     */
-  /*                         thing.  As this is rare, the glyph slots are  */
-  /*                         listed through a direct, single-linked list   */
-  /*                         using its `next' field.                       */
-  /*                                                                       */
-  /*    generic           :: A typeless pointer which is unused by the     */
-  /*                         FreeType library or any of its drivers.  It   */
-  /*                         can be used by client applications to link    */
-  /*                         their own data to each glyph slot object.     */
-  /*                                                                       */
-  /*    metrics           :: The metrics of the last loaded glyph in the   */
-  /*                         slot.  The returned values depend on the last */
-  /*                         load flags (see the @FT_Load_Glyph API        */
-  /*                         function) and can be expressed either in 26.6 */
-  /*                         fractional pixels or font units.              */
-  /*                                                                       */
-  /*                         Note that even when the glyph image is        */
-  /*                         transformed, the metrics are not.             */
-  /*                                                                       */
-  /*    linearHoriAdvance :: The advance width of the unhinted glyph.      */
-  /*                         Its value is expressed in 16.16 fractional    */
-  /*                         pixels, unless @FT_LOAD_LINEAR_DESIGN is set  */
-  /*                         when loading the glyph.  This field can be    */
-  /*                         important to perform correct WYSIWYG layout.  */
-  /*                         Only relevant for outline glyphs.             */
-  /*                                                                       */
-  /*    linearVertAdvance :: The advance height of the unhinted glyph.     */
-  /*                         Its value is expressed in 16.16 fractional    */
-  /*                         pixels, unless @FT_LOAD_LINEAR_DESIGN is set  */
-  /*                         when loading the glyph.  This field can be    */
-  /*                         important to perform correct WYSIWYG layout.  */
-  /*                         Only relevant for outline glyphs.             */
-  /*                                                                       */
-  /*    advance           :: This is the transformed advance width for the */
-  /*                         glyph.                                        */
-  /*                                                                       */
-  /*    format            :: This field indicates the format of the image  */
-  /*                         contained in the glyph slot.  Typically       */
-  /*                         @FT_GLYPH_FORMAT_BITMAP,                      */
-  /*                         @FT_GLYPH_FORMAT_OUTLINE, or                  */
-  /*                         @FT_GLYPH_FORMAT_COMPOSITE, but others are    */
-  /*                         possible.                                     */
-  /*                                                                       */
-  /*    bitmap            :: This field is used as a bitmap descriptor     */
-  /*                         when the slot format is                       */
-  /*                         @FT_GLYPH_FORMAT_BITMAP.  Note that the       */
-  /*                         address and content of the bitmap buffer can  */
-  /*                         change between calls of @FT_Load_Glyph and a  */
-  /*                         few other functions.                          */
-  /*                                                                       */
-  /*    bitmap_left       :: This is the bitmap's left bearing expressed   */
-  /*                         in integer pixels.  Of course, this is only   */
-  /*                         valid if the format is                        */
-  /*                         @FT_GLYPH_FORMAT_BITMAP.                      */
-  /*                                                                       */
-  /*    bitmap_top        :: This is the bitmap's top bearing expressed in */
-  /*                         integer pixels.  Remember that this is the    */
-  /*                         distance from the baseline to the top-most    */
-  /*                         glyph scanline, upwards y-coordinates being   */
-  /*                         *positive*.                                   */
-  /*                                                                       */
-  /*    outline           :: The outline descriptor for the current glyph  */
-  /*                         image if its format is                        */
-  /*                         @FT_GLYPH_FORMAT_OUTLINE.  Once a glyph is    */
-  /*                         loaded, `outline' can be transformed,         */
-  /*                         distorted, embolded, etc.  However, it must   */
-  /*                         not be freed.                                 */
-  /*                                                                       */
-  /*    num_subglyphs     :: The number of subglyphs in a composite glyph. */
-  /*                         This field is only valid for the composite    */
-  /*                         glyph format that should normally only be     */
-  /*                         loaded with the @FT_LOAD_NO_RECURSE flag.     */
-  /*                         For now this is internal to FreeType.         */
-  /*                                                                       */
-  /*    subglyphs         :: An array of subglyph descriptors for          */
-  /*                         composite glyphs.  There are `num_subglyphs'  */
-  /*                         elements in there.  Currently internal to     */
-  /*                         FreeType.                                     */
-  /*                                                                       */
-  /*    control_data      :: Certain font drivers can also return the      */
-  /*                         control data for a given glyph image (e.g.    */
-  /*                         TrueType bytecode, Type 1 charstrings, etc.). */
-  /*                         This field is a pointer to such data.         */
-  /*                                                                       */
-  /*    control_len       :: This is the length in bytes of the control    */
-  /*                         data.                                         */
-  /*                                                                       */
-  /*    other             :: Really wicked formats can use this pointer to */
-  /*                         present their own glyph image to client       */
-  /*                         applications.  Note that the application      */
-  /*                         needs to know about the image format.         */
-  /*                                                                       */
-  /*    lsb_delta         :: The difference between hinted and unhinted    */
-  /*                         left side bearing while autohinting is        */
-  /*                         active.  Zero otherwise.                      */
-  /*                                                                       */
-  /*    rsb_delta         :: The difference between hinted and unhinted    */
-  /*                         right side bearing while autohinting is       */
-  /*                         active.  Zero otherwise.                      */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    If @FT_Load_Glyph is called with default flags (see                */
-  /*    @FT_LOAD_DEFAULT) the glyph image is loaded in the glyph slot in   */
-  /*    its native format (e.g., an outline glyph for TrueType and Type 1  */
-  /*    formats).                                                          */
-  /*                                                                       */
-  /*    This image can later be converted into a bitmap by calling         */
-  /*    @FT_Render_Glyph.  This function finds the current renderer for    */
-  /*    the native image's format then invokes it.                         */
-  /*                                                                       */
-  /*    The renderer is in charge of transforming the native image through */
-  /*    the slot's face transformation fields, then convert it into a      */
-  /*    bitmap that is returned in `slot->bitmap'.                         */
-  /*                                                                       */
-  /*    Note that `slot->bitmap_left' and `slot->bitmap_top' are also used */
-  /*    to specify the position of the bitmap relative to the current pen  */
-  /*    position (e.g., coordinates (0,0) on the baseline).  Of course,    */
-  /*    `slot->format' is also changed to @FT_GLYPH_FORMAT_BITMAP.         */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Here a small pseudo code fragment which shows how to use           */
-  /*    `lsb_delta' and `rsb_delta':                                       */
-  /*                                                                       */
-  /*    {                                                                  */
-  /*      FT_Pos  origin_x       = 0;                                      */
-  /*      FT_Pos  prev_rsb_delta = 0;                                      */
-  /*                                                                       */
-  /*                                                                       */
-  /*      for all glyphs do                                                */
-  /*        <compute kern between current and previous glyph and add it to */
-  /*         `origin_x'>                                                   */
-  /*                                                                       */
-  /*        <load glyph with `FT_Load_Glyph'>                              */
-  /*                                                                       */
-  /*        if ( prev_rsb_delta - face->glyph->lsb_delta >= 32 )           */
-  /*          origin_x -= 64;                                              */
-  /*        else if ( prev_rsb_delta - face->glyph->lsb_delta < -32 )      */
-  /*          origin_x += 64;                                              */
-  /*                                                                       */
-  /*        prev_rsb_delta = face->glyph->rsb_delta;                       */
-  /*                                                                       */
-  /*        <save glyph image, or render glyph, or ...>                    */
-  /*                                                                       */
-  /*        origin_x += face->glyph->advance.x;                            */
-  /*      endfor                                                           */
-  /*    }                                                                  */
-  /*                                                                       */
-  typedef struct  FT_GlyphSlotRec_
-  {
-    FT_Library        library;
-    FT_Face           face;
-    FT_GlyphSlot      next;
-    FT_UInt           reserved;       /* retained for binary compatibility */
-    FT_Generic        generic;
-
-    FT_Glyph_Metrics  metrics;
-    FT_Fixed          linearHoriAdvance;
-    FT_Fixed          linearVertAdvance;
-    FT_Vector         advance;
-
-    FT_Glyph_Format   format;
-
-    FT_Bitmap         bitmap;
-    FT_Int            bitmap_left;
-    FT_Int            bitmap_top;
-
-    FT_Outline        outline;
-
-    FT_UInt           num_subglyphs;
-    FT_SubGlyph       subglyphs;
-
-    void*             control_data;
-    long              control_len;
-
-    FT_Pos            lsb_delta;
-    FT_Pos            rsb_delta;
-
-    void*             other;
-
-    FT_Slot_Internal  internal;
-
-  } FT_GlyphSlotRec;
-
-
-  /*************************************************************************/
-  /*************************************************************************/
-  /*                                                                       */
-  /*                         F U N C T I O N S                             */
-  /*                                                                       */
-  /*************************************************************************/
-  /*************************************************************************/
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Init_FreeType                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Initialize a new FreeType library object.  The set of modules      */
-  /*    that are registered by this function is determined at build time.  */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    alibrary :: A handle to a new library object.                      */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Init_FreeType( FT_Library  *alibrary );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Done_FreeType                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Destroy a given FreeType library object and all of its children,   */
-  /*    including resources, drivers, faces, sizes, etc.                   */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    library :: A handle to the target library object.                  */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Done_FreeType( FT_Library  library );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Enum>                                                                */
-  /*    FT_OPEN_XXX                                                        */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A list of bit-field constants used within the `flags' field of the */
-  /*    @FT_Open_Args structure.                                           */
-  /*                                                                       */
-  /* <Values>                                                              */
-  /*    FT_OPEN_MEMORY      :: This is a memory-based stream.              */
-  /*                                                                       */
-  /*    FT_OPEN_STREAM      :: Copy the stream from the `stream' field.    */
-  /*                                                                       */
-  /*    FT_OPEN_PATHNAME    :: Create a new input stream from a C          */
-  /*                           path name.                                  */
-  /*                                                                       */
-  /*    FT_OPEN_DRIVER      :: Use the `driver' field.                     */
-  /*                                                                       */
-  /*    FT_OPEN_PARAMS      :: Use the `num_params' and `params' fields.   */
-  /*                                                                       */
-  /*    ft_open_memory      :: Deprecated; use @FT_OPEN_MEMORY instead.    */
-  /*                                                                       */
-  /*    ft_open_stream      :: Deprecated; use @FT_OPEN_STREAM instead.    */
-  /*                                                                       */
-  /*    ft_open_pathname    :: Deprecated; use @FT_OPEN_PATHNAME instead.  */
-  /*                                                                       */
-  /*    ft_open_driver      :: Deprecated; use @FT_OPEN_DRIVER instead.    */
-  /*                                                                       */
-  /*    ft_open_params      :: Deprecated; use @FT_OPEN_PARAMS instead.    */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The `FT_OPEN_MEMORY', `FT_OPEN_STREAM', and `FT_OPEN_PATHNAME'     */
-  /*    flags are mutually exclusive.                                      */
-  /*                                                                       */
-#define FT_OPEN_MEMORY    0x1
-#define FT_OPEN_STREAM    0x2
-#define FT_OPEN_PATHNAME  0x4
-#define FT_OPEN_DRIVER    0x8
-#define FT_OPEN_PARAMS    0x10
-
-#define ft_open_memory    FT_OPEN_MEMORY     /* deprecated */
-#define ft_open_stream    FT_OPEN_STREAM     /* deprecated */
-#define ft_open_pathname  FT_OPEN_PATHNAME   /* deprecated */
-#define ft_open_driver    FT_OPEN_DRIVER     /* deprecated */
-#define ft_open_params    FT_OPEN_PARAMS     /* deprecated */
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_Parameter                                                       */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A simple structure used to pass more or less generic parameters    */
-  /*    to @FT_Open_Face.                                                  */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    tag  :: A four-byte identification tag.                            */
-  /*                                                                       */
-  /*    data :: A pointer to the parameter data.                           */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The ID and function of parameters are driver-specific.             */
-  /*                                                                       */
-  typedef struct  FT_Parameter_
-  {
-    FT_ULong    tag;
-    FT_Pointer  data;
-
-  } FT_Parameter;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_Open_Args                                                       */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A structure used to indicate how to open a new font file or        */
-  /*    stream.  A pointer to such a structure can be used as a parameter  */
-  /*    for the functions @FT_Open_Face and @FT_Attach_Stream.             */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    flags       :: A set of bit flags indicating how to use the        */
-  /*                   structure.                                          */
-  /*                                                                       */
-  /*    memory_base :: The first byte of the file in memory.               */
-  /*                                                                       */
-  /*    memory_size :: The size in bytes of the file in memory.            */
-  /*                                                                       */
-  /*    pathname    :: A pointer to an 8-bit file pathname.                */
-  /*                                                                       */
-  /*    stream      :: A handle to a source stream object.                 */
-  /*                                                                       */
-  /*    driver      :: This field is exclusively used by @FT_Open_Face;    */
-  /*                   it simply specifies the font driver to use to open  */
-  /*                   the face.  If set to 0, FreeType tries to load the  */
-  /*                   face with each one of the drivers in its list.      */
-  /*                                                                       */
-  /*    num_params  :: The number of extra parameters.                     */
-  /*                                                                       */
-  /*    params      :: Extra parameters passed to the font driver when     */
-  /*                   opening a new face.                                 */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The stream type is determined by the contents of `flags' which     */
-  /*    are tested in the following order by @FT_Open_Face:                */
-  /*                                                                       */
-  /*    If the `FT_OPEN_MEMORY' bit is set, assume that this is a          */
-  /*    memory file of `memory_size' bytes, located at `memory_address'.   */
-  /*    The data are are not copied, and the client is responsible for     */
-  /*    releasing and destroying them _after_ the corresponding call to    */
-  /*    @FT_Done_Face.                                                     */
-  /*                                                                       */
-  /*    Otherwise, if the `FT_OPEN_STREAM' bit is set, assume that a       */
-  /*    custom input stream `stream' is used.                              */
-  /*                                                                       */
-  /*    Otherwise, if the `FT_OPEN_PATHNAME' bit is set, assume that this  */
-  /*    is a normal file and use `pathname' to open it.                    */
-  /*                                                                       */
-  /*    If the `FT_OPEN_DRIVER' bit is set, @FT_Open_Face only tries to    */
-  /*    open the file with the driver whose handler is in `driver'.        */
-  /*                                                                       */
-  /*    If the `FT_OPEN_PARAMS' bit is set, the parameters given by        */
-  /*    `num_params' and `params' is used.  They are ignored otherwise.    */
-  /*                                                                       */
-  /*    Ideally, both the `pathname' and `params' fields should be tagged  */
-  /*    as `const'; this is missing for API backwards compatibility.  With */
-  /*    other words, applications should treat them as read-only.          */
-  /*                                                                       */
-  typedef struct  FT_Open_Args_
-  {
-    FT_UInt         flags;
-    const FT_Byte*  memory_base;
-    FT_Long         memory_size;
-    FT_String*      pathname;
-    FT_Stream       stream;
-    FT_Module       driver;
-    FT_Int          num_params;
-    FT_Parameter*   params;
-
-  } FT_Open_Args;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_New_Face                                                        */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This function calls @FT_Open_Face to open a font by its pathname.  */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    library    :: A handle to the library resource.                    */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    pathname   :: A path to the font file.                             */
-  /*                                                                       */
-  /*    face_index :: The index of the face within the font.  The first    */
-  /*                  face has index 0.                                    */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    aface      :: A handle to a new face object.  If `face_index' is   */
-  /*                  greater than or equal to zero, it must be non-NULL.  */
-  /*                  See @FT_Open_Face for more details.                  */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_New_Face( FT_Library   library,
-               const char*  filepathname,
-               FT_Long      face_index,
-               FT_Face     *aface );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_New_Memory_Face                                                 */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This function calls @FT_Open_Face to open a font which has been    */
-  /*    loaded into memory.                                                */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    library    :: A handle to the library resource.                    */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    file_base  :: A pointer to the beginning of the font data.         */
-  /*                                                                       */
-  /*    file_size  :: The size of the memory chunk used by the font data.  */
-  /*                                                                       */
-  /*    face_index :: The index of the face within the font.  The first    */
-  /*                  face has index 0.                                    */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    aface      :: A handle to a new face object.  If `face_index' is   */
-  /*                  greater than or equal to zero, it must be non-NULL.  */
-  /*                  See @FT_Open_Face for more details.                  */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    You must not deallocate the memory before calling @FT_Done_Face.   */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_New_Memory_Face( FT_Library      library,
-                      const FT_Byte*  file_base,
-                      FT_Long         file_size,
-                      FT_Long         face_index,
-                      FT_Face        *aface );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Open_Face                                                       */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Create a face object from a given resource described by            */
-  /*    @FT_Open_Args.                                                     */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    library    :: A handle to the library resource.                    */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    args       :: A pointer to an `FT_Open_Args' structure which must  */
-  /*                  be filled by the caller.                             */
-  /*                                                                       */
-  /*    face_index :: The index of the face within the font.  The first    */
-  /*                  face has index 0.                                    */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    aface      :: A handle to a new face object.  If `face_index' is   */
-  /*                  greater than or equal to zero, it must be non-NULL.  */
-  /*                  See note below.                                      */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Unlike FreeType 1.x, this function automatically creates a glyph   */
-  /*    slot for the face object which can be accessed directly through    */
-  /*    `face->glyph'.                                                     */
-  /*                                                                       */
-  /*    FT_Open_Face can be used to quickly check whether the font         */
-  /*    format of a given font resource is supported by FreeType.  If the  */
-  /*    `face_index' field is negative, the function's return value is 0   */
-  /*    if the font format is recognized, or non-zero otherwise;           */
-  /*    the function returns a more or less empty face handle in `*aface'  */
-  /*    (if `aface' isn't NULL).  The only useful field in this special    */
-  /*    case is `face->num_faces' which gives the number of faces within   */
-  /*    the font file.  After examination, the returned @FT_Face structure */
-  /*    should be deallocated with a call to @FT_Done_Face.                */
-  /*                                                                       */
-  /*    Each new face object created with this function also owns a        */
-  /*    default @FT_Size object, accessible as `face->size'.               */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Open_Face( FT_Library           library,
-                const FT_Open_Args*  args,
-                FT_Long              face_index,
-                FT_Face             *aface );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Attach_File                                                     */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This function calls @FT_Attach_Stream to attach a file.            */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face         :: The target face object.                            */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    filepathname :: The pathname.                                      */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Attach_File( FT_Face      face,
-                  const char*  filepathname );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Attach_Stream                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    `Attach' data to a face object.  Normally, this is used to read    */
-  /*    additional information for the face object.  For example, you can  */
-  /*    attach an AFM file that comes with a Type 1 font to get the        */
-  /*    kerning values and other metrics.                                  */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face       :: The target face object.                              */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    parameters :: A pointer to @FT_Open_Args which must be filled by   */
-  /*                  the caller.                                          */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The meaning of the `attach' (i.e., what really happens when the    */
-  /*    new file is read) is not fixed by FreeType itself.  It really      */
-  /*    depends on the font format (and thus the font driver).             */
-  /*                                                                       */
-  /*    Client applications are expected to know what they are doing       */
-  /*    when invoking this function.  Most drivers simply do not implement */
-  /*    file attachments.                                                  */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Attach_Stream( FT_Face        face,
-                    FT_Open_Args*  parameters );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Done_Face                                                       */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Discard a given face object, as well as all of its child slots and */
-  /*    sizes.                                                             */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face :: A handle to a target face object.                          */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Done_Face( FT_Face  face );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Select_Size                                                     */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Select a bitmap strike.                                            */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face         :: A handle to a target face object.                  */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    strike_index :: The index of the bitmap strike in the              */
-  /*                    `available_sizes' field of @FT_FaceRec structure.  */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Select_Size( FT_Face  face,
-                  FT_Int   strike_index );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Enum>                                                                */
-  /*    FT_Size_Request_Type                                               */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    An enumeration type that lists the supported size request types.   */
-  /*                                                                       */
-  /* <Values>                                                              */
-  /*    FT_SIZE_REQUEST_TYPE_NOMINAL ::                                    */
-  /*      The nominal size.  The `units_per_EM' field of @FT_FaceRec is    */
-  /*      used to determine both scaling values.                           */
-  /*                                                                       */
-  /*    FT_SIZE_REQUEST_TYPE_REAL_DIM ::                                   */
-  /*      The real dimension.  The sum of the the `Ascender' and (minus    */
-  /*      of) the `Descender' fields of @FT_FaceRec are used to determine  */
-  /*      both scaling values.                                             */
-  /*                                                                       */
-  /*    FT_SIZE_REQUEST_TYPE_BBOX ::                                       */
-  /*      The font bounding box.  The width and height of the `bbox' field */
-  /*      of @FT_FaceRec are used to determine the horizontal and vertical */
-  /*      scaling value, respectively.                                     */
-  /*                                                                       */
-  /*    FT_SIZE_REQUEST_TYPE_CELL ::                                       */
-  /*      The `max_advance_width' field of @FT_FaceRec is used to          */
-  /*      determine the horizontal scaling value; the vertical scaling     */
-  /*      value is determined the same way as                              */
-  /*      @FT_SIZE_REQUEST_TYPE_REAL_DIM does.  Finally, both scaling      */
-  /*      values are set to the smaller one.  This type is useful if you   */
-  /*      want to specify the font size for, say, a window of a given      */
-  /*      dimension and 80x24 cells.                                       */
-  /*                                                                       */
-  /*    FT_SIZE_REQUEST_TYPE_SCALES ::                                     */
-  /*      Specify the scaling values directly.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The above descriptions only apply to scalable formats.  For bitmap */
-  /*    formats, the behaviour is up to the driver.                        */
-  /*                                                                       */
-  /*    See the note section of @FT_Size_Metrics if you wonder how size    */
-  /*    requesting relates to scaling values.                              */
-  /*                                                                       */
-  typedef enum  FT_Size_Request_Type_
-  {
-    FT_SIZE_REQUEST_TYPE_NOMINAL,
-    FT_SIZE_REQUEST_TYPE_REAL_DIM,
-    FT_SIZE_REQUEST_TYPE_BBOX,
-    FT_SIZE_REQUEST_TYPE_CELL,
-    FT_SIZE_REQUEST_TYPE_SCALES,
-
-    FT_SIZE_REQUEST_TYPE_MAX
-
-  } FT_Size_Request_Type;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    FT_Size_RequestRec                                                 */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A structure used to model a size request.                          */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    type           :: See @FT_Size_Request_Type.                       */
-  /*                                                                       */
-  /*    width          :: The desired width.                               */
-  /*                                                                       */
-  /*    height         :: The desired height.                              */
-  /*                                                                       */
-  /*    horiResolution :: The horizontal resolution.  If set to zero,      */
-  /*                      `width' is treated as a 26.6 fractional pixel    */
-  /*                      value.                                           */
-  /*                                                                       */
-  /*    vertResolution :: The vertical resolution.  If set to zero,        */
-  /*                      `height' is treated as a 26.6 fractional pixel   */
-  /*                      value.                                           */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    If `width' is zero, then the horizontal scaling value is set      */
-  /*    equal to the vertical scaling value, and vice versa.               */
-  /*                                                                       */
-  typedef struct  FT_Size_RequestRec_
-  {
-    FT_Size_Request_Type  type;
-    FT_Long               width;
-    FT_Long               height;
-    FT_UInt               horiResolution;
-    FT_UInt               vertResolution;
-
-  } FT_Size_RequestRec, *FT_Size_Request;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Request_Size                                                    */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Resize the scale of the active @FT_Size object in a face.          */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face :: A handle to a target face object.                          */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    req  :: A pointer to a @FT_Size_RequestRec.                        */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Although drivers may select the bitmap strike matching the         */
-  /*    request, you should not rely on this if you intend to select a     */
-  /*    particular bitmap strike.  Use @FT_Select_Size instead in that     */
-  /*    case.                                                              */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Request_Size( FT_Face          face,
-                   FT_Size_Request  req );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Set_Char_Size                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This function calls @FT_Request_Size to request the nominal size   */
-  /*    (in points).                                                       */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face            :: A handle to a target face object.               */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    char_width      :: The nominal width, in 26.6 fractional points.   */
-  /*                                                                       */
-  /*    char_height     :: The nominal height, in 26.6 fractional points.  */
-  /*                                                                       */
-  /*    horz_resolution :: The horizontal resolution in dpi.               */
-  /*                                                                       */
-  /*    vert_resolution :: The vertical resolution in dpi.                 */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    If either the character width or height is zero, it is set equal   */
-  /*    to the other value.                                                */
-  /*                                                                       */
-  /*    If either the horizontal or vertical resolution is zero, it is set */
-  /*    equal to the other value.                                          */
-  /*                                                                       */
-  /*    A character width or height smaller than 1pt is set to 1pt; if     */
-  /*    both resolution values are zero, they are set to 72dpi.            */
-  /*                                                                       */
-
-  FT_EXPORT( FT_Error )
-  FT_Set_Char_Size( FT_Face     face,
-                    FT_F26Dot6  char_width,
-                    FT_F26Dot6  char_height,
-                    FT_UInt     horz_resolution,
-                    FT_UInt     vert_resolution );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Set_Pixel_Sizes                                                 */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This function calls @FT_Request_Size to request the nominal size   */
-  /*    (in pixels).                                                       */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face         :: A handle to the target face object.                */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    pixel_width  :: The nominal width, in pixels.                      */
-  /*                                                                       */
-  /*    pixel_height :: The nominal height, in pixels.                     */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Set_Pixel_Sizes( FT_Face  face,
-                      FT_UInt  pixel_width,
-                      FT_UInt  pixel_height );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Load_Glyph                                                      */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A function used to load a single glyph into the glyph slot of a    */
-  /*    face object.                                                       */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face        :: A handle to the target face object where the glyph  */
-  /*                   is loaded.                                          */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    glyph_index :: The index of the glyph in the font file.  For       */
-  /*                   CID-keyed fonts (either in PS or in CFF format)     */
-  /*                   this argument specifies the CID value.              */
-  /*                                                                       */
-  /*    load_flags  :: A flag indicating what to load for this glyph.  The */
-  /*                   @FT_LOAD_XXX constants can be used to control the   */
-  /*                   glyph loading process (e.g., whether the outline    */
-  /*                   should be scaled, whether to load bitmaps or not,   */
-  /*                   whether to hint the outline, etc).                  */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The loaded glyph may be transformed.  See @FT_Set_Transform for    */
-  /*    the details.                                                       */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Load_Glyph( FT_Face   face,
-                 FT_UInt   glyph_index,
-                 FT_Int32  load_flags );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Load_Char                                                       */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A function used to load a single glyph into the glyph slot of a    */
-  /*    face object, according to its character code.                      */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face        :: A handle to a target face object where the glyph    */
-  /*                   is loaded.                                          */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    char_code   :: The glyph's character code, according to the        */
-  /*                   current charmap used in the face.                   */
-  /*                                                                       */
-  /*    load_flags  :: A flag indicating what to load for this glyph.  The */
-  /*                   @FT_LOAD_XXX constants can be used to control the   */
-  /*                   glyph loading process (e.g., whether the outline    */
-  /*                   should be scaled, whether to load bitmaps or not,   */
-  /*                   whether to hint the outline, etc).                  */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    This function simply calls @FT_Get_Char_Index and @FT_Load_Glyph.  */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Load_Char( FT_Face   face,
-                FT_ULong  char_code,
-                FT_Int32  load_flags );
-
-
-  /*************************************************************************
-   *
-   * @enum:
-   *   FT_LOAD_XXX
-   *
-   * @description:
-   *   A list of bit-field constants used with @FT_Load_Glyph to indicate
-   *   what kind of operations to perform during glyph loading.
-   *
-   * @values:
-   *   FT_LOAD_DEFAULT ::
-   *     Corresponding to 0, this value is used as the default glyph load
-   *     operation.  In this case, the following happens:
-   *
-   *     1. FreeType looks for a bitmap for the glyph corresponding to the
-   *        face's current size.  If one is found, the function returns.
-   *        The bitmap data can be accessed from the glyph slot (see note
-   *        below).
-   *
-   *     2. If no embedded bitmap is searched or found, FreeType looks for a
-   *        scalable outline.  If one is found, it is loaded from the font
-   *        file, scaled to device pixels, then `hinted' to the pixel grid
-   *        in order to optimize it.  The outline data can be accessed from
-   *        the glyph slot (see note below).
-   *
-   *     Note that by default, the glyph loader doesn't render outlines into
-   *     bitmaps.  The following flags are used to modify this default
-   *     behaviour to more specific and useful cases.
-   *
-   *   FT_LOAD_NO_SCALE ::
-   *     Don't scale the outline glyph loaded, but keep it in font units.
-   *
-   *     This flag implies @FT_LOAD_NO_HINTING and @FT_LOAD_NO_BITMAP, and
-   *     unsets @FT_LOAD_RENDER.
-   *
-   *   FT_LOAD_NO_HINTING ::
-   *     Disable hinting.  This generally generates `blurrier' bitmap glyph
-   *     when the glyph is rendered in any of the anti-aliased modes.  See
-   *     also the note below.
-   *
-   *     This flag is implied by @FT_LOAD_NO_SCALE.
-   *
-   *   FT_LOAD_RENDER ::
-   *     Call @FT_Render_Glyph after the glyph is loaded.  By default, the
-   *     glyph is rendered in @FT_RENDER_MODE_NORMAL mode.  This can be
-   *     overridden by @FT_LOAD_TARGET_XXX or @FT_LOAD_MONOCHROME.
-   *
-   *     This flag is unset by @FT_LOAD_NO_SCALE.
-   *
-   *   FT_LOAD_NO_BITMAP ::
-   *     Ignore bitmap strikes when loading.  Bitmap-only fonts ignore this
-   *     flag.
-   *
-   *     @FT_LOAD_NO_SCALE always sets this flag.
-   *
-   *   FT_LOAD_VERTICAL_LAYOUT ::
-   *     Load the glyph for vertical text layout.  _Don't_ use it as it is
-   *     problematic currently.
-   *
-   *   FT_LOAD_FORCE_AUTOHINT ::
-   *     Indicates that the auto-hinter is preferred over the font's native
-   *     hinter.  See also the note below.
-   *
-   *   FT_LOAD_CROP_BITMAP ::
-   *     Indicates that the font driver should crop the loaded bitmap glyph
-   *     (i.e., remove all space around its black bits).  Not all drivers
-   *     implement this.
-   *
-   *   FT_LOAD_PEDANTIC ::
-   *     Indicates that the font driver should perform pedantic verifications
-   *     during glyph loading.  This is mostly used to detect broken glyphs
-   *     in fonts.  By default, FreeType tries to handle broken fonts also.
-   *
-   *   FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ::
-   *     Indicates that the font driver should ignore the global advance
-   *     width defined in the font.  By default, that value is used as the
-   *     advance width for all glyphs when the face has
-   *     @FT_FACE_FLAG_FIXED_WIDTH set.
-   *
-   *     This flag exists for historical reasons (to support buggy CJK
-   *     fonts).
-   *
-   *   FT_LOAD_NO_RECURSE ::
-   *     This flag is only used internally.  It merely indicates that the
-   *     font driver should not load composite glyphs recursively.  Instead,
-   *     it should set the `num_subglyph' and `subglyphs' values of the
-   *     glyph slot accordingly, and set `glyph->format' to
-   *     @FT_GLYPH_FORMAT_COMPOSITE.
-   *
-   *     The description of sub-glyphs is not available to client
-   *     applications for now.
-   *
-   *     This flag implies @FT_LOAD_NO_SCALE and @FT_LOAD_IGNORE_TRANSFORM.
-   *
-   *   FT_LOAD_IGNORE_TRANSFORM ::
-   *     Indicates that the transform matrix set by @FT_Set_Transform should
-   *     be ignored.
-   *
-   *   FT_LOAD_MONOCHROME ::
-   *     This flag is used with @FT_LOAD_RENDER to indicate that you want to
-   *     render an outline glyph to a 1-bit monochrome bitmap glyph, with
-   *     8 pixels packed into each byte of the bitmap data.
-   *
-   *     Note that this has no effect on the hinting algorithm used.  You
-   *     should use @FT_LOAD_TARGET_MONO instead so that the
-   *     monochrome-optimized hinting algorithm is used.
-   *
-   *   FT_LOAD_LINEAR_DESIGN ::
-   *     Indicates that the `linearHoriAdvance' and `linearVertAdvance'
-   *     fields of @FT_GlyphSlotRec should be kept in font units.  See
-   *     @FT_GlyphSlotRec for details.
-   *
-   *   FT_LOAD_NO_AUTOHINT ::
-   *     Disable auto-hinter.  See also the note below.
-   *
-   * @note:
-   *   By default, hinting is enabled and the font's native hinter (see
-   *   @FT_FACE_FLAG_HINTER) is preferred over the auto-hinter.  You can
-   *   disable hinting by setting @FT_LOAD_NO_HINTING or change the
-   *   precedence by setting @FT_LOAD_FORCE_AUTOHINT.  You can also set
-   *   @FT_LOAD_NO_AUTOHINT in case you don't want the auto-hinter to be
-   *   used at all.
-   *
-   *   Besides deciding which hinter to use, you can also decide which
-   *   hinting algorithm to use.  See @FT_LOAD_TARGET_XXX for details.
-   */
-#define FT_LOAD_DEFAULT                      0x0
-#define FT_LOAD_NO_SCALE                     0x1
-#define FT_LOAD_NO_HINTING                   0x2
-#define FT_LOAD_RENDER                       0x4
-#define FT_LOAD_NO_BITMAP                    0x8
-#define FT_LOAD_VERTICAL_LAYOUT              0x10
-#define FT_LOAD_FORCE_AUTOHINT               0x20
-#define FT_LOAD_CROP_BITMAP                  0x40
-#define FT_LOAD_PEDANTIC                     0x80
-#define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH  0x200
-#define FT_LOAD_NO_RECURSE                   0x400
-#define FT_LOAD_IGNORE_TRANSFORM             0x800
-#define FT_LOAD_MONOCHROME                   0x1000
-#define FT_LOAD_LINEAR_DESIGN                0x2000
-
-  /* temporary hack! */
-#define FT_LOAD_SBITS_ONLY                   0x4000
-#define FT_LOAD_NO_AUTOHINT                  0x8000U
-
-  /* */
-
-
-  /**************************************************************************
-   *
-   * @enum:
-   *   FT_LOAD_TARGET_XXX
-   *
-   * @description:
-   *   A list of values that are used to select a specific hinting algorithm
-   *   to use by the hinter.  You should OR one of these values to your
-   *   `load_flags' when calling @FT_Load_Glyph.
-   *
-   *   Note that font's native hinters may ignore the hinting algorithm you
-   *   have specified (e.g., the TrueType bytecode interpreter).  You can set
-   *   @FT_LOAD_FORCE_AUTOHINT to ensure that the auto-hinter is used.
-   *
-   *   Also note that @FT_LOAD_TARGET_LIGHT is an exception, in that it
-   *   always implies @FT_LOAD_FORCE_AUTOHINT.
-   *
-   * @values:
-   *   FT_LOAD_TARGET_NORMAL ::
-   *     This corresponds to the default hinting algorithm, optimized for
-   *     standard gray-level rendering.  For monochrome output, use
-   *     @FT_LOAD_TARGET_MONO instead.
-   *
-   *   FT_LOAD_TARGET_LIGHT ::
-   *     A lighter hinting algorithm for non-monochrome modes.  Many
-   *     generated glyphs are more fuzzy but better resemble its original
-   *     shape.  A bit like rendering on Mac OS X.
-   *
-   *     As a special exception, this target implies @FT_LOAD_FORCE_AUTOHINT.
-   *
-   *   FT_LOAD_TARGET_MONO ::
-   *     Strong hinting algorithm that should only be used for monochrome
-   *     output.  The result is probably unpleasant if the glyph is rendered
-   *     in non-monochrome modes.
-   *
-   *   FT_LOAD_TARGET_LCD ::
-   *     A variant of @FT_LOAD_TARGET_NORMAL optimized for horizontally
-   *     decimated LCD displays.
-   *
-   *   FT_LOAD_TARGET_LCD_V ::
-   *     A variant of @FT_LOAD_TARGET_NORMAL optimized for vertically
-   *     decimated LCD displays.
-   *
-   * @note:
-   *   You should use only _one_ of the FT_LOAD_TARGET_XXX values in your
-   *   `load_flags'.  They can't be ORed.
-   *
-   *   If @FT_LOAD_RENDER is also set, the glyph is rendered in the
-   *   corresponding mode (i.e., the mode which matches the used algorithm
-   *   best) unless @FT_LOAD_MONOCHROME is set.
-   *
-   *   You can use a hinting algorithm that doesn't correspond to the same
-   *   rendering mode.  As an example, it is possible to use the `light'
-   *   hinting algorithm and have the results rendered in horizontal LCD
-   *   pixel mode, with code like
-   *
-   *     {
-   *       FT_Load_Glyph( face, glyph_index,
-   *                      load_flags | FT_LOAD_TARGET_LIGHT );
-   *
-   *       FT_Render_Glyph( face->glyph, FT_RENDER_MODE_LCD );
-   *     }
-   */
-
-#define FT_LOAD_TARGET_( x )      ( (FT_Int32)( (x) & 15 ) << 16 )
-
-#define FT_LOAD_TARGET_NORMAL     FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL )
-#define FT_LOAD_TARGET_LIGHT      FT_LOAD_TARGET_( FT_RENDER_MODE_LIGHT  )
-#define FT_LOAD_TARGET_MONO       FT_LOAD_TARGET_( FT_RENDER_MODE_MONO   )
-#define FT_LOAD_TARGET_LCD        FT_LOAD_TARGET_( FT_RENDER_MODE_LCD    )
-#define FT_LOAD_TARGET_LCD_V      FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V  )
-
-
-  /*
-   * @macro:
-   *   FT_LOAD_TARGET_MODE
-   *
-   * @description:
-   *   Return the @FT_Render_Mode corresponding to a given
-   *   @FT_LOAD_TARGET_XXX value.
-   */
-
-#define FT_LOAD_TARGET_MODE( x )  ( (FT_Render_Mode)( ( (x) >> 16 ) & 15 ) )
-
-  /* */
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Set_Transform                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A function used to set the transformation that is applied to glyph */
-  /*    images when they are loaded into a glyph slot through              */
-  /*    @FT_Load_Glyph.                                                    */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face   :: A handle to the source face object.                      */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    matrix :: A pointer to the transformation's 2x2 matrix.  Use 0 for */
-  /*              the identity matrix.                                     */
-  /*    delta  :: A pointer to the translation vector.  Use 0 for the null */
-  /*              vector.                                                  */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The transformation is only applied to scalable image formats after */
-  /*    the glyph has been loaded.  It means that hinting is unaltered by  */
-  /*    the transformation and is performed on the character size given in */
-  /*    the last call to @FT_Set_Char_Size or @FT_Set_Pixel_Sizes.         */
-  /*                                                                       */
-  /*    Note that this also transforms the `face.glyph.advance' field, but */
-  /*    *not* the values in `face.glyph.metrics'.                          */
-  /*                                                                       */
-  FT_EXPORT( void )
-  FT_Set_Transform( FT_Face     face,
-                    FT_Matrix*  matrix,
-                    FT_Vector*  delta );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Enum>                                                                */
-  /*    FT_Render_Mode                                                     */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    An enumeration type that lists the render modes supported by       */
-  /*    FreeType 2.  Each mode corresponds to a specific type of scanline  */
-  /*    conversion performed on the outline.                               */
-  /*                                                                       */
-  /*    For bitmap fonts the `bitmap->pixel_mode' field in the             */
-  /*    @FT_GlyphSlotRec structure gives the format of the returned        */
-  /*    bitmap.                                                            */
-  /*                                                                       */
-  /* <Values>                                                              */
-  /*    FT_RENDER_MODE_NORMAL ::                                           */
-  /*      This is the default render mode; it corresponds to 8-bit         */
-  /*      anti-aliased bitmaps, using 256 levels of opacity.               */
-  /*                                                                       */
-  /*    FT_RENDER_MODE_LIGHT ::                                            */
-  /*      This is equivalent to @FT_RENDER_MODE_NORMAL.  It is only        */
-  /*      defined as a separate value because render modes are also used   */
-  /*      indirectly to define hinting algorithm selectors.  See           */
-  /*      @FT_LOAD_TARGET_XXX for details.                                 */
-  /*                                                                       */
-  /*    FT_RENDER_MODE_MONO ::                                             */
-  /*      This mode corresponds to 1-bit bitmaps.                          */
-  /*                                                                       */
-  /*    FT_RENDER_MODE_LCD ::                                              */
-  /*      This mode corresponds to horizontal RGB and BGR sub-pixel        */
-  /*      displays, like LCD-screens.  It produces 8-bit bitmaps that are  */
-  /*      3 times the width of the original glyph outline in pixels, and   */
-  /*      which use the @FT_PIXEL_MODE_LCD mode.                           */
-  /*                                                                       */
-  /*    FT_RENDER_MODE_LCD_V ::                                            */
-  /*      This mode corresponds to vertical RGB and BGR sub-pixel displays */
-  /*      (like PDA screens, rotated LCD displays, etc.).  It produces     */
-  /*      8-bit bitmaps that are 3 times the height of the original        */
-  /*      glyph outline in pixels and use the @FT_PIXEL_MODE_LCD_V mode.   */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*   The LCD-optimized glyph bitmaps produced by FT_Render_Glyph are     */
-  /*   _not_ _filtered_ to reduce color-fringes.  It is up to the caller   */
-  /*   to perform this pass.                                               */
-  /*                                                                       */
-  typedef enum  FT_Render_Mode_
-  {
-    FT_RENDER_MODE_NORMAL = 0,
-    FT_RENDER_MODE_LIGHT,
-    FT_RENDER_MODE_MONO,
-    FT_RENDER_MODE_LCD,
-    FT_RENDER_MODE_LCD_V,
-
-    FT_RENDER_MODE_MAX
-
-  } FT_Render_Mode;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Enum>                                                                */
-  /*    ft_render_mode_xxx                                                 */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    These constants are deprecated.  Use the corresponding             */
-  /*    @FT_Render_Mode values instead.                                    */
-  /*                                                                       */
-  /* <Values>                                                              */
-  /*   ft_render_mode_normal :: see @FT_RENDER_MODE_NORMAL                 */
-  /*   ft_render_mode_mono   :: see @FT_RENDER_MODE_MONO                   */
-  /*                                                                       */
-#define ft_render_mode_normal  FT_RENDER_MODE_NORMAL
-#define ft_render_mode_mono    FT_RENDER_MODE_MONO
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Render_Glyph                                                    */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Convert a given glyph image to a bitmap.  It does so by inspecting */
-  /*    the glyph image format, finding the relevant renderer, and         */
-  /*    invoking it.                                                       */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    slot        :: A handle to the glyph slot containing the image to  */
-  /*                   convert.                                            */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    render_mode :: This is the render mode used to render the glyph    */
-  /*                   image into a bitmap.  See @FT_Render_Mode for a     */
-  /*                   list of possible values.                            */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Render_Glyph( FT_GlyphSlot    slot,
-                   FT_Render_Mode  render_mode );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Enum>                                                                */
-  /*    FT_Kerning_Mode                                                    */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    An enumeration used to specify which kerning values to return in   */
-  /*    @FT_Get_Kerning.                                                   */
-  /*                                                                       */
-  /* <Values>                                                              */
-  /*    FT_KERNING_DEFAULT  :: Return scaled and grid-fitted kerning       */
-  /*                           distances (value is 0).                     */
-  /*                                                                       */
-  /*    FT_KERNING_UNFITTED :: Return scaled but un-grid-fitted kerning    */
-  /*                           distances.                                  */
-  /*                                                                       */
-  /*    FT_KERNING_UNSCALED :: Return the kerning vector in original font  */
-  /*                           units.                                      */
-  /*                                                                       */
-  typedef enum  FT_Kerning_Mode_
-  {
-    FT_KERNING_DEFAULT  = 0,
-    FT_KERNING_UNFITTED,
-    FT_KERNING_UNSCALED
-
-  } FT_Kerning_Mode;
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Const>                                                               */
-  /*    ft_kerning_default                                                 */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This constant is deprecated.  Please use @FT_KERNING_DEFAULT       */
-  /*    instead.                                                           */
-  /*                                                                       */
-#define ft_kerning_default   FT_KERNING_DEFAULT
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Const>                                                               */
-  /*    ft_kerning_unfitted                                                */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This constant is deprecated.  Please use @FT_KERNING_UNFITTED      */
-  /*    instead.                                                           */
-  /*                                                                       */
-#define ft_kerning_unfitted  FT_KERNING_UNFITTED
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Const>                                                               */
-  /*    ft_kerning_unscaled                                                */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This constant is deprecated.  Please use @FT_KERNING_UNSCALED      */
-  /*    instead.                                                           */
-  /*                                                                       */
-#define ft_kerning_unscaled  FT_KERNING_UNSCALED
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Get_Kerning                                                     */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Return the kerning vector between two glyphs of a same face.       */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face        :: A handle to a source face object.                   */
-  /*                                                                       */
-  /*    left_glyph  :: The index of the left glyph in the kern pair.       */
-  /*                                                                       */
-  /*    right_glyph :: The index of the right glyph in the kern pair.      */
-  /*                                                                       */
-  /*    kern_mode   :: See @FT_Kerning_Mode for more information.          */
-  /*                   Determines the scale and dimension of the returned  */
-  /*                   kerning vector.                                     */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    akerning    :: The kerning vector.  This is either in font units   */
-  /*                   or in pixels (26.6 format) for scalable formats,    */
-  /*                   and in pixels for fixed-sizes formats.              */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    Only horizontal layouts (left-to-right & right-to-left) are        */
-  /*    supported by this method.  Other layouts, or more sophisticated    */
-  /*    kernings, are out of the scope of this API function -- they can be */
-  /*    implemented through format-specific interfaces.                    */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Get_Kerning( FT_Face     face,
-                  FT_UInt     left_glyph,
-                  FT_UInt     right_glyph,
-                  FT_UInt     kern_mode,
-                  FT_Vector  *akerning );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Get_Track_Kerning                                               */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Return the track kerning for a given face object at a given size.  */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face        :: A handle to a source face object.                   */
-  /*                                                                       */
-  /*    point_size  :: The point size in 16.16 fractional points.          */
-  /*                                                                       */
-  /*    degree      :: The degree of tightness.                            */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    akerning    :: The kerning in 16.16 fractional points.             */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Get_Track_Kerning( FT_Face    face,
-                        FT_Fixed   point_size,
-                        FT_Int     degree,
-                        FT_Fixed*  akerning );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Get_Glyph_Name                                                  */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Retrieve the ASCII name of a given glyph in a face.  This only     */
-  /*    works for those faces where @FT_HAS_GLYPH_NAMES(face) returns 1.   */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face        :: A handle to a source face object.                   */
-  /*                                                                       */
-  /*    glyph_index :: The glyph index.                                    */
-  /*                                                                       */
-  /*    buffer_max  :: The maximal number of bytes available in the        */
-  /*                   buffer.                                             */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    buffer      :: A pointer to a target buffer where the name is      */
-  /*                   copied to.                                          */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    An error is returned if the face doesn't provide glyph names or if */
-  /*    the glyph index is invalid.  In all cases of failure, the first    */
-  /*    byte of `buffer' is set to 0 to indicate an empty name.            */
-  /*                                                                       */
-  /*    The glyph name is truncated to fit within the buffer if it is too  */
-  /*    long.  The returned string is always zero-terminated.              */
-  /*                                                                       */
-  /*    This function is not compiled within the library if the config     */
-  /*    macro `FT_CONFIG_OPTION_NO_GLYPH_NAMES' is defined in              */
-  /*    `include/freetype/config/ftoptions.h'.                             */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Get_Glyph_Name( FT_Face     face,
-                     FT_UInt     glyph_index,
-                     FT_Pointer  buffer,
-                     FT_UInt     buffer_max );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Get_Postscript_Name                                             */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Retrieve the ASCII Postscript name of a given face, if available.  */
-  /*    This only works with Postscript and TrueType fonts.                */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face :: A handle to the source face object.                        */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    A pointer to the face's Postscript name.  NULL if unavailable.     */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The returned pointer is owned by the face and is destroyed with    */
-  /*    it.                                                                */
-  /*                                                                       */
-  FT_EXPORT( const char* )
-  FT_Get_Postscript_Name( FT_Face  face );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Select_Charmap                                                  */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Select a given charmap by its encoding tag (as listed in           */
-  /*    `freetype.h').                                                     */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face     :: A handle to the source face object.                    */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    encoding :: A handle to the selected encoding.                     */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    This function returns an error if no charmap in the face           */
-  /*    corresponds to the encoding queried here.                          */
-  /*                                                                       */
-  /*    Because many fonts contain more than a single cmap for Unicode     */
-  /*    encoding, this function has some special code to select the one    */
-  /*    which covers Unicode best.  It is thus preferable to               */
-  /*    @FT_Set_Charmap in this case.                                      */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Select_Charmap( FT_Face      face,
-                     FT_Encoding  encoding );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Set_Charmap                                                     */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Select a given charmap for character code to glyph index mapping.  */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    face    :: A handle to the source face object.                     */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    charmap :: A handle to the selected charmap.                       */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    FreeType error code.  0 means success.                             */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    This function returns an error if the charmap is not part of       */
-  /*    the face (i.e., if it is not listed in the `face->charmaps'        */
-  /*    table).                                                            */
-  /*                                                                       */
-  FT_EXPORT( FT_Error )
-  FT_Set_Charmap( FT_Face     face,
-                  FT_CharMap  charmap );
-
-
-  /*************************************************************************
-   *
-   * @function:
-   *   FT_Get_Charmap_Index
-   *
-   * @description:
-   *   Retrieve index of a given charmap.
-   *
-   * @input:
-   *   charmap ::
-   *     A handle to a charmap.
-   *
-   * @return:
-   *   The index into the array of character maps within the face to which
-   *   `charmap' belongs.
-   *
-   */
-  FT_EXPORT( FT_Int )
-  FT_Get_Charmap_Index( FT_CharMap  charmap );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Get_Char_Index                                                  */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Return the glyph index of a given character code.  This function   */
-  /*    uses a charmap object to do the mapping.                           */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face     :: A handle to the source face object.                    */
-  /*                                                                       */
-  /*    charcode :: The character code.                                    */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The glyph index.  0 means `undefined character code'.              */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    If you use FreeType to manipulate the contents of font files       */
-  /*    directly, be aware that the glyph index returned by this function  */
-  /*    doesn't always correspond to the internal indices used within      */
-  /*    the file.  This is done to ensure that value 0 always corresponds  */
-  /*    to the `missing glyph'.                                            */
-  /*                                                                       */
-  FT_EXPORT( FT_UInt )
-  FT_Get_Char_Index( FT_Face   face,
-                     FT_ULong  charcode );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Get_First_Char                                                  */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This function is used to return the first character code in the    */
-  /*    current charmap of a given face.  It also returns the              */
-  /*    corresponding glyph index.                                         */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face    :: A handle to the source face object.                     */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    agindex :: Glyph index of first character code.  0 if charmap is   */
-  /*               empty.                                                  */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The charmap's first character code.                                */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    You should use this function with @FT_Get_Next_Char to be able to  */
-  /*    parse all character codes available in a given charmap.  The code  */
-  /*    should look like this:                                             */
-  /*                                                                       */
-  /*    {                                                                  */
-  /*      FT_ULong  charcode;                                              */
-  /*      FT_UInt   gindex;                                                */
-  /*                                                                       */
-  /*                                                                       */
-  /*      charcode = FT_Get_First_Char( face, &gindex );                   */
-  /*      while ( gindex != 0 )                                            */
-  /*      {                                                                */
-  /*        ... do something with (charcode,gindex) pair ...               */
-  /*                                                                       */
-  /*        charcode = FT_Get_Next_Char( face, charcode, &gindex );        */
-  /*      }                                                                */
-  /*    }                                                                  */
-  /*                                                                       */
-  /*    Note that `*agindex' is set to 0 if the charmap is empty.  The     */
-  /*    result itself can be 0 in two cases: if the charmap is empty or    */
-  /*    when the value 0 is the first valid character code.                */
-  /*                                                                       */
-  FT_EXPORT( FT_ULong )
-  FT_Get_First_Char( FT_Face   face,
-                     FT_UInt  *agindex );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Get_Next_Char                                                   */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This function is used to return the next character code in the     */
-  /*    current charmap of a given face following the value `char_code',   */
-  /*    as well as the corresponding glyph index.                          */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face      :: A handle to the source face object.                   */
-  /*    char_code :: The starting character code.                          */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    agindex   :: Glyph index of first character code.  0 if charmap    */
-  /*                 is empty.                                             */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The charmap's next character code.                                 */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    You should use this function with @FT_Get_First_Char to walk       */
-  /*    over all character codes available in a given charmap.  See the    */
-  /*    note for this function for a simple code example.                  */
-  /*                                                                       */
-  /*    Note that `*agindex' is set to 0 when there are no more codes in   */
-  /*    the charmap.                                                       */
-  /*                                                                       */
-  FT_EXPORT( FT_ULong )
-  FT_Get_Next_Char( FT_Face    face,
-                    FT_ULong   char_code,
-                    FT_UInt   *agindex );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Get_Name_Index                                                  */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Return the glyph index of a given glyph name.  This function uses  */
-  /*    driver specific objects to do the translation.                     */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face       :: A handle to the source face object.                  */
-  /*                                                                       */
-  /*    glyph_name :: The glyph name.                                      */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The glyph index.  0 means `undefined character code'.              */
-  /*                                                                       */
-  FT_EXPORT( FT_UInt )
-  FT_Get_Name_Index( FT_Face     face,
-                     FT_String*  glyph_name );
-
-
-  /*************************************************************************
-   *
-   * @macro:
-   *   FT_SUBGLYPH_FLAG_XXX
-   *
-   * @description:
-   *   A list of constants used to describe subglyphs.  Please refer to the
-   *   TrueType specification for the meaning of the various flags.
-   *
-   * @values:
-   *   FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS ::
-   *   FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES ::
-   *   FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID ::
-   *   FT_SUBGLYPH_FLAG_SCALE ::
-   *   FT_SUBGLYPH_FLAG_XY_SCALE ::
-   *   FT_SUBGLYPH_FLAG_2X2 ::
-   *   FT_SUBGLYPH_FLAG_USE_MY_METRICS ::
-   *
-   */
-#define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS          1
-#define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES      2
-#define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID        4
-#define FT_SUBGLYPH_FLAG_SCALE                   8
-#define FT_SUBGLYPH_FLAG_XY_SCALE             0x40
-#define FT_SUBGLYPH_FLAG_2X2                  0x80
-#define FT_SUBGLYPH_FLAG_USE_MY_METRICS      0x200
-
-
-  /*************************************************************************
-   *
-   * @func:
-   *   FT_Get_SubGlyph_Info
-   *
-   * @description:
-   *   Retrieve a description of a given subglyph.  Only use it if
-   *   `glyph->format' is @FT_GLYPH_FORMAT_COMPOSITE, or an error is
-   *   returned.
-   *
-   * @input:
-   *   glyph ::
-   *     The source glyph slot.
-   *
-   *   sub_index ::
-   *     The index of subglyph.  Must be less than `glyph->num_subglyphs'.
-   *
-   * @output:
-   *   p_index ::
-   *     The glyph index of the subglyph.
-   *
-   *   p_flags ::
-   *     The subglyph flags, see @FT_SUBGLYPH_FLAG_XXX.
-   *
-   *   p_arg1 ::
-   *     The subglyph's first argument (if any).
-   *
-   *   p_arg2 ::
-   *     The subglyph's second argument (if any).
-   *
-   *   p_transform ::
-   *     The subglyph transformation (if any).
-   *
-   * @return:
-   *   FreeType error code.  0 means success.
-   *
-   * @note:
-   *   The values of `*p_arg1', `*p_arg2', and `*p_transform' must be
-   *   interpreted depending on the flags returned in `*p_flags'.  See the
-   *   TrueType specification for details.
-   *
-   */
-  FT_EXPORT( FT_Error )
-  FT_Get_SubGlyph_Info( FT_GlyphSlot  glyph,
-                        FT_UInt       sub_index,
-                        FT_Int       *p_index,
-                        FT_UInt      *p_flags,
-                        FT_Int       *p_arg1,
-                        FT_Int       *p_arg2,
-                        FT_Matrix    *p_transform );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Section>                                                             */
-  /*    computations                                                       */
-  /*                                                                       */
-  /* <Title>                                                               */
-  /*    Computations                                                       */
-  /*                                                                       */
-  /* <Abstract>                                                            */
-  /*    Crunching fixed numbers and vectors.                               */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    This section contains various functions used to perform            */
-  /*    computations on 16.16 fixed-float numbers or 2d vectors.           */
-  /*                                                                       */
-  /* <Order>                                                               */
-  /*    FT_MulDiv                                                          */
-  /*    FT_MulFix                                                          */
-  /*    FT_DivFix                                                          */
-  /*    FT_RoundFix                                                        */
-  /*    FT_CeilFix                                                         */
-  /*    FT_FloorFix                                                        */
-  /*    FT_Vector_Transform                                                */
-  /*    FT_Matrix_Multiply                                                 */
-  /*    FT_Matrix_Invert                                                   */
-  /*                                                                       */
-  /*************************************************************************/
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_MulDiv                                                          */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A very simple function used to perform the computation `(a*b)/c'   */
-  /*    with maximal accuracy (it uses a 64-bit intermediate integer       */
-  /*    whenever necessary).                                               */
-  /*                                                                       */
-  /*    This function isn't necessarily as fast as some processor specific */
-  /*    operations, but is at least completely portable.                   */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    a :: The first multiplier.                                         */
-  /*    b :: The second multiplier.                                        */
-  /*    c :: The divisor.                                                  */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The result of `(a*b)/c'.  This function never traps when trying to */
-  /*    divide by zero; it simply returns `MaxInt' or `MinInt' depending   */
-  /*    on the signs of `a' and `b'.                                       */
-  /*                                                                       */
-  FT_EXPORT( FT_Long )
-  FT_MulDiv( FT_Long  a,
-             FT_Long  b,
-             FT_Long  c );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_MulFix                                                          */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A very simple function used to perform the computation             */
-  /*    `(a*b)/0x10000' with maximal accuracy.  Most of the time this is   */
-  /*    used to multiply a given value by a 16.16 fixed float factor.      */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    a :: The first multiplier.                                         */
-  /*    b :: The second multiplier.  Use a 16.16 factor here whenever      */
-  /*         possible (see note below).                                    */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The result of `(a*b)/0x10000'.                                     */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    This function has been optimized for the case where the absolute   */
-  /*    value of `a' is less than 2048, and `b' is a 16.16 scaling factor. */
-  /*    As this happens mainly when scaling from notional units to         */
-  /*    fractional pixels in FreeType, it resulted in noticeable speed     */
-  /*    improvements between versions 2.x and 1.x.                         */
-  /*                                                                       */
-  /*    As a conclusion, always try to place a 16.16 factor as the         */
-  /*    _second_ argument of this function; this can make a great          */
-  /*    difference.                                                        */
-  /*                                                                       */
-  FT_EXPORT( FT_Long )
-  FT_MulFix( FT_Long  a,
-             FT_Long  b );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_DivFix                                                          */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A very simple function used to perform the computation             */
-  /*    `(a*0x10000)/b' with maximal accuracy.  Most of the time, this is  */
-  /*    used to divide a given value by a 16.16 fixed float factor.        */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    a :: The first multiplier.                                         */
-  /*    b :: The second multiplier.  Use a 16.16 factor here whenever      */
-  /*         possible (see note below).                                    */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The result of `(a*0x10000)/b'.                                     */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The optimization for FT_DivFix() is simple: If (a << 16) fits in   */
-  /*    32 bits, then the division is computed directly.  Otherwise, we    */
-  /*    use a specialized version of @FT_MulDiv.                           */
-  /*                                                                       */
-  FT_EXPORT( FT_Long )
-  FT_DivFix( FT_Long  a,
-             FT_Long  b );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_RoundFix                                                        */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A very simple function used to round a 16.16 fixed number.         */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    a :: The number to be rounded.                                     */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The result of `(a + 0x8000) & -0x10000'.                           */
-  /*                                                                       */
-  FT_EXPORT( FT_Fixed )
-  FT_RoundFix( FT_Fixed  a );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_CeilFix                                                         */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A very simple function used to compute the ceiling function of a   */
-  /*    16.16 fixed number.                                                */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    a :: The number for which the ceiling function is to be computed.  */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The result of `(a + 0x10000 - 1) & -0x10000'.                      */
-  /*                                                                       */
-  FT_EXPORT( FT_Fixed )
-  FT_CeilFix( FT_Fixed  a );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_FloorFix                                                        */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A very simple function used to compute the floor function of a     */
-  /*    16.16 fixed number.                                                */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    a :: The number for which the floor function is to be computed.    */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The result of `a & -0x10000'.                                      */
-  /*                                                                       */
-  FT_EXPORT( FT_Fixed )
-  FT_FloorFix( FT_Fixed  a );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Vector_Transform                                                */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Transform a single vector through a 2x2 matrix.                    */
-  /*                                                                       */
-  /* <InOut>                                                               */
-  /*    vector :: The target vector to transform.                          */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    matrix :: A pointer to the source 2x2 matrix.                      */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The result is undefined if either `vector' or `matrix' is invalid. */
-  /*                                                                       */
-  FT_EXPORT( void )
-  FT_Vector_Transform( FT_Vector*        vec,
-                       const FT_Matrix*  matrix );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Section>                                                             */
-  /*    version                                                            */
-  /*                                                                       */
-  /* <Title>                                                               */
-  /*    FreeType Version                                                   */
-  /*                                                                       */
-  /* <Abstract>                                                            */
-  /*    Functions and macros related to FreeType versions.                 */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Note that those functions and macros are of limited use because    */
-  /*    even a new release of FreeType with only documentation changes     */
-  /*    increases the version number.                                      */
-  /*                                                                       */
-  /*************************************************************************/
-
-
-  /*************************************************************************
-   *
-   *  @enum:
-   *    FREETYPE_XXX
-   *
-   *  @description:
-   *    These three macros identify the FreeType source code version.
-   *    Use @FT_Library_Version to access them at runtime.
-   *
-   *  @values:
-   *    FREETYPE_MAJOR :: The major version number.
-   *    FREETYPE_MINOR :: The minor version number.
-   *    FREETYPE_PATCH :: The patch level.
-   *
-   *  @note:
-   *    The version number of FreeType if built as a dynamic link library
-   *    with the `libtool' package is _not_ controlled by these three
-   *    macros.
-   */
-#define FREETYPE_MAJOR  2
-#define FREETYPE_MINOR  3
-#define FREETYPE_PATCH  5
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Library_Version                                                 */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Return the version of the FreeType library being used.  This is    */
-  /*    useful when dynamically linking to the library, since one cannot   */
-  /*    use the macros @FREETYPE_MAJOR, @FREETYPE_MINOR, and               */
-  /*    @FREETYPE_PATCH.                                                   */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    library :: A source library handle.                                */
-  /*                                                                       */
-  /* <Output>                                                              */
-  /*    amajor  :: The major version number.                               */
-  /*                                                                       */
-  /*    aminor  :: The minor version number.                               */
-  /*                                                                       */
-  /*    apatch  :: The patch version number.                               */
-  /*                                                                       */
-  /* <Note>                                                                */
-  /*    The reason why this function takes a `library' argument is because */
-  /*    certain programs implement library initialization in a custom way  */
-  /*    that doesn't use @FT_Init_FreeType.                                */
-  /*                                                                       */
-  /*    In such cases, the library version might not be available before   */
-  /*    the library object has been created.                               */
-  /*                                                                       */
-  FT_EXPORT( void )
-  FT_Library_Version( FT_Library   library,
-                      FT_Int      *amajor,
-                      FT_Int      *aminor,
-                      FT_Int      *apatch );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Face_CheckTrueTypePatents                                       */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Parse all bytecode instructions of a TrueType font file to check   */
-  /*    whether any of the patented opcodes are used.  This is only useful */
-  /*    if you want to be able to use the unpatented hinter with           */
-  /*    fonts that do *not* use these opcodes.                             */
-  /*                                                                       */
-  /*    Note that this function parses *all* glyph instructions in the     */
-  /*    font file, which may be slow.                                      */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face :: A face handle.                                             */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    1 if this is a TrueType font that uses one of the patented         */
-  /*    opcodes, 0 otherwise.                                              */
-  /*                                                                       */
-  /* <Since>                                                               */
-  /*    2.3.5                                                              */
-  /*                                                                       */
-  FT_EXPORT( FT_Bool )
-  FT_Face_CheckTrueTypePatents( FT_Face  face );
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    FT_Face_SetUnpatentedHinting                                       */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Enable or disable the unpatented hinter for a given face.          */
-  /*    Only enable it if you have determined that the face doesn't        */
-  /*    use any patented opcodes (see @FT_Face_CheckTrueTypePatents).      */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    face  :: A face handle.                                            */
-  /*                                                                       */
-  /*    value :: New boolean setting.                                      */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    The old setting value.  This will always be false if this is not   */
-  /*    a SFNT font, or if the unpatented hinter is not compiled in this   */
-  /*    instance of the library.                                           */
-  /*                                                                       */
-  /* <Since>                                                               */
-  /*    2.3.5                                                              */
-  /*                                                                       */
-  FT_EXPORT( FT_Bool )
-  FT_Face_SetUnpatentedHinting( FT_Face  face,
-                                FT_Bool  value );
-
-  /* */
-
-
-FT_END_HEADER
-
-#endif /* __FREETYPE_H__ */
-
-
-/* END */
+/***************************************************************************/\r
+/*                                                                         */\r
+/*  freetype.h                                                             */\r
+/*                                                                         */\r
+/*    FreeType high-level API and common types (specification only).       */\r
+/*                                                                         */\r
+/*  Copyright 1996-2001, 2002, 2003, 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 FT_FREETYPE_H\r
+#error "`ft2build.h' hasn't been included yet!"\r
+#error "Please always use macros to include FreeType header files."\r
+#error "Example:"\r
+#error "  #include <ft2build.h>"\r
+#error "  #include FT_FREETYPE_H"\r
+#endif\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* The `raster' component duplicates some of the declarations in         */\r
+  /* freetype.h for stand-alone use if _FREETYPE_ isn't defined.           */\r
+  /*                                                                       */\r
+  /*************************************************************************/\r
+\r
+\r
+#ifndef __FREETYPE_H__\r
+#define __FREETYPE_H__\r
+\r
+\r
+#include <ft2build.h>\r
+#include FT_CONFIG_CONFIG_H\r
+#include FT_ERRORS_H\r
+#include FT_TYPES_H\r
+\r
+\r
+FT_BEGIN_HEADER\r
+\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Section>                                                             */\r
+  /*    user_allocation                                                    */\r
+  /*                                                                       */\r
+  /* <Title>                                                               */\r
+  /*    User allocation                                                    */\r
+  /*                                                                       */\r
+  /* <Abstract>                                                            */\r
+  /*    How client applications should allocate FreeType data structures.  */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    FreeType assumes that structures allocated by the user and passed  */\r
+  /*    as arguments are zeroed out except for the actual data.  With      */\r
+  /*    other words, it is recommended to use `calloc' (or variants of it) */\r
+  /*    instead of `malloc' for allocation.                                */\r
+  /*                                                                       */\r
+  /*************************************************************************/\r
+\r
+\r
+\r
+  /*************************************************************************/\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /*                        B A S I C   T Y P E S                          */\r
+  /*                                                                       */\r
+  /*************************************************************************/\r
+  /*************************************************************************/\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Section>                                                             */\r
+  /*    base_interface                                                     */\r
+  /*                                                                       */\r
+  /* <Title>                                                               */\r
+  /*    Base Interface                                                     */\r
+  /*                                                                       */\r
+  /* <Abstract>                                                            */\r
+  /*    The FreeType 2 base font interface.                                */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This section describes the public high-level API of FreeType 2.    */\r
+  /*                                                                       */\r
+  /* <Order>                                                               */\r
+  /*    FT_Library                                                         */\r
+  /*    FT_Face                                                            */\r
+  /*    FT_Size                                                            */\r
+  /*    FT_GlyphSlot                                                       */\r
+  /*    FT_CharMap                                                         */\r
+  /*    FT_Encoding                                                        */\r
+  /*                                                                       */\r
+  /*    FT_FaceRec                                                         */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_SCALABLE                                              */\r
+  /*    FT_FACE_FLAG_FIXED_SIZES                                           */\r
+  /*    FT_FACE_FLAG_FIXED_WIDTH                                           */\r
+  /*    FT_FACE_FLAG_HORIZONTAL                                            */\r
+  /*    FT_FACE_FLAG_VERTICAL                                              */\r
+  /*    FT_FACE_FLAG_SFNT                                                  */\r
+  /*    FT_FACE_FLAG_KERNING                                               */\r
+  /*    FT_FACE_FLAG_MULTIPLE_MASTERS                                      */\r
+  /*    FT_FACE_FLAG_GLYPH_NAMES                                           */\r
+  /*    FT_FACE_FLAG_EXTERNAL_STREAM                                       */\r
+  /*    FT_FACE_FLAG_FAST_GLYPHS                                           */\r
+  /*    FT_FACE_FLAG_HINTER                                                */\r
+  /*                                                                       */\r
+  /*    FT_STYLE_FLAG_BOLD                                                 */\r
+  /*    FT_STYLE_FLAG_ITALIC                                               */\r
+  /*                                                                       */\r
+  /*    FT_SizeRec                                                         */\r
+  /*    FT_Size_Metrics                                                    */\r
+  /*                                                                       */\r
+  /*    FT_GlyphSlotRec                                                    */\r
+  /*    FT_Glyph_Metrics                                                   */\r
+  /*    FT_SubGlyph                                                        */\r
+  /*                                                                       */\r
+  /*    FT_Bitmap_Size                                                     */\r
+  /*                                                                       */\r
+  /*    FT_Init_FreeType                                                   */\r
+  /*    FT_Done_FreeType                                                   */\r
+  /*                                                                       */\r
+  /*    FT_New_Face                                                        */\r
+  /*    FT_Done_Face                                                       */\r
+  /*    FT_New_Memory_Face                                                 */\r
+  /*    FT_Open_Face                                                       */\r
+  /*    FT_Open_Args                                                       */\r
+  /*    FT_Parameter                                                       */\r
+  /*    FT_Attach_File                                                     */\r
+  /*    FT_Attach_Stream                                                   */\r
+  /*                                                                       */\r
+  /*    FT_Set_Char_Size                                                   */\r
+  /*    FT_Set_Pixel_Sizes                                                 */\r
+  /*    FT_Request_Size                                                    */\r
+  /*    FT_Select_Size                                                     */\r
+  /*    FT_Size_Request_Type                                               */\r
+  /*    FT_Size_Request                                                    */\r
+  /*    FT_Set_Transform                                                   */\r
+  /*    FT_Load_Glyph                                                      */\r
+  /*    FT_Get_Char_Index                                                  */\r
+  /*    FT_Get_Name_Index                                                  */\r
+  /*    FT_Load_Char                                                       */\r
+  /*                                                                       */\r
+  /*    FT_OPEN_MEMORY                                                     */\r
+  /*    FT_OPEN_STREAM                                                     */\r
+  /*    FT_OPEN_PATHNAME                                                   */\r
+  /*    FT_OPEN_DRIVER                                                     */\r
+  /*    FT_OPEN_PARAMS                                                     */\r
+  /*                                                                       */\r
+  /*    FT_LOAD_DEFAULT                                                    */\r
+  /*    FT_LOAD_RENDER                                                     */\r
+  /*    FT_LOAD_MONOCHROME                                                 */\r
+  /*    FT_LOAD_LINEAR_DESIGN                                              */\r
+  /*    FT_LOAD_NO_SCALE                                                   */\r
+  /*    FT_LOAD_NO_HINTING                                                 */\r
+  /*    FT_LOAD_NO_BITMAP                                                  */\r
+  /*    FT_LOAD_CROP_BITMAP                                                */\r
+  /*                                                                       */\r
+  /*    FT_LOAD_VERTICAL_LAYOUT                                            */\r
+  /*    FT_LOAD_IGNORE_TRANSFORM                                           */\r
+  /*    FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH                                */\r
+  /*    FT_LOAD_FORCE_AUTOHINT                                             */\r
+  /*    FT_LOAD_NO_RECURSE                                                 */\r
+  /*    FT_LOAD_PEDANTIC                                                   */\r
+  /*                                                                       */\r
+  /*    FT_LOAD_TARGET_NORMAL                                              */\r
+  /*    FT_LOAD_TARGET_LIGHT                                               */\r
+  /*    FT_LOAD_TARGET_MONO                                                */\r
+  /*    FT_LOAD_TARGET_LCD                                                 */\r
+  /*    FT_LOAD_TARGET_LCD_V                                               */\r
+  /*                                                                       */\r
+  /*    FT_Render_Glyph                                                    */\r
+  /*    FT_Render_Mode                                                     */\r
+  /*    FT_Get_Kerning                                                     */\r
+  /*    FT_Kerning_Mode                                                    */\r
+  /*    FT_Get_Track_Kerning                                               */\r
+  /*    FT_Get_Glyph_Name                                                  */\r
+  /*    FT_Get_Postscript_Name                                             */\r
+  /*                                                                       */\r
+  /*    FT_CharMapRec                                                      */\r
+  /*    FT_Select_Charmap                                                  */\r
+  /*    FT_Set_Charmap                                                     */\r
+  /*    FT_Get_Charmap_Index                                               */\r
+  /*                                                                       */\r
+  /*************************************************************************/\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_Glyph_Metrics                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A structure used to model the metrics of a single glyph.  The      */\r
+  /*    values are expressed in 26.6 fractional pixel format; if the flag  */\r
+  /*    @FT_LOAD_NO_SCALE has been used while loading the glyph, values    */\r
+  /*    are expressed in font units instead.                               */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    width ::                                                           */\r
+  /*      The glyph's width.                                               */\r
+  /*                                                                       */\r
+  /*    height ::                                                          */\r
+  /*      The glyph's height.                                              */\r
+  /*                                                                       */\r
+  /*    horiBearingX ::                                                    */\r
+  /*      Left side bearing for horizontal layout.                         */\r
+  /*                                                                       */\r
+  /*    horiBearingY ::                                                    */\r
+  /*      Top side bearing for horizontal layout.                          */\r
+  /*                                                                       */\r
+  /*    horiAdvance ::                                                     */\r
+  /*      Advance width for horizontal layout.                             */\r
+  /*                                                                       */\r
+  /*    vertBearingX ::                                                    */\r
+  /*      Left side bearing for vertical layout.                           */\r
+  /*                                                                       */\r
+  /*    vertBearingY ::                                                    */\r
+  /*      Top side bearing for vertical layout.                            */\r
+  /*                                                                       */\r
+  /*    vertAdvance ::                                                     */\r
+  /*      Advance height for vertical layout.                              */\r
+  /*                                                                       */\r
+  typedef struct  FT_Glyph_Metrics_\r
+  {\r
+    FT_Pos  width;\r
+    FT_Pos  height;\r
+\r
+    FT_Pos  horiBearingX;\r
+    FT_Pos  horiBearingY;\r
+    FT_Pos  horiAdvance;\r
+\r
+    FT_Pos  vertBearingX;\r
+    FT_Pos  vertBearingY;\r
+    FT_Pos  vertAdvance;\r
+\r
+  } FT_Glyph_Metrics;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_Bitmap_Size                                                     */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This structure models the metrics of a bitmap strike (i.e., a set  */\r
+  /*    of glyphs for a given point size and resolution) in a bitmap font. */\r
+  /*    It is used for the `available_sizes' field of @FT_Face.            */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    height :: The vertical distance, in pixels, between two            */\r
+  /*              consecutive baselines.  It is always positive.           */\r
+  /*                                                                       */\r
+  /*    width  :: The average width, in pixels, of all glyphs in the       */\r
+  /*              strike.                                                  */\r
+  /*                                                                       */\r
+  /*    size   :: The nominal size of the strike in 26.6 fractional        */\r
+  /*              points.  This field is not very useful.                  */\r
+  /*                                                                       */\r
+  /*    x_ppem :: The horizontal ppem (nominal width) in 26.6 fractional   */\r
+  /*              pixels.                                                  */\r
+  /*                                                                       */\r
+  /*    y_ppem :: The vertical ppem (nominal height) in 26.6 fractional    */\r
+  /*              pixels.                                                  */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Windows FNT:                                                       */\r
+  /*      The nominal size given in a FNT font is not reliable.  Thus when */\r
+  /*      the driver finds it incorrect, it sets `size' to some calculated */\r
+  /*      values and sets `x_ppem' and `y_ppem' to the pixel width and     */\r
+  /*      height given in the font, respectively.                          */\r
+  /*                                                                       */\r
+  /*    TrueType embedded bitmaps:                                         */\r
+  /*      `size', `width', and `height' values are not contained in the    */\r
+  /*      bitmap strike itself.  They are computed from the global font    */\r
+  /*      parameters.                                                      */\r
+  /*                                                                       */\r
+  typedef struct  FT_Bitmap_Size_\r
+  {\r
+    FT_Short  height;\r
+    FT_Short  width;\r
+\r
+    FT_Pos    size;\r
+\r
+    FT_Pos    x_ppem;\r
+    FT_Pos    y_ppem;\r
+\r
+  } FT_Bitmap_Size;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /*                     O B J E C T   C L A S S E S                       */\r
+  /*                                                                       */\r
+  /*************************************************************************/\r
+  /*************************************************************************/\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_Library                                                         */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A handle to a FreeType library instance.  Each `library' is        */\r
+  /*    completely independent from the others; it is the `root' of a set  */\r
+  /*    of objects like fonts, faces, sizes, etc.                          */\r
+  /*                                                                       */\r
+  /*    It also embeds a memory manager (see @FT_Memory), as well as a     */\r
+  /*    scan-line converter object (see @FT_Raster).                       */\r
+  /*                                                                       */\r
+  /*    For multi-threading applications each thread should have its own   */\r
+  /*    FT_Library object.                                                 */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Library objects are normally created by @FT_Init_FreeType, and     */\r
+  /*    destroyed with @FT_Done_FreeType.                                  */\r
+  /*                                                                       */\r
+  typedef struct FT_LibraryRec_  *FT_Library;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_Module                                                          */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A handle to a given FreeType module object.  Each module can be a  */\r
+  /*    font driver, a renderer, or anything else that provides services   */\r
+  /*    to the formers.                                                    */\r
+  /*                                                                       */\r
+  typedef struct FT_ModuleRec_*  FT_Module;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_Driver                                                          */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A handle to a given FreeType font driver object.  Each font driver */\r
+  /*    is a special module capable of creating faces from font files.     */\r
+  /*                                                                       */\r
+  typedef struct FT_DriverRec_*  FT_Driver;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_Renderer                                                        */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A handle to a given FreeType renderer.  A renderer is a special    */\r
+  /*    module in charge of converting a glyph image to a bitmap, when     */\r
+  /*    necessary.  Each renderer supports a given glyph image format, and */\r
+  /*    one or more target surface depths.                                 */\r
+  /*                                                                       */\r
+  typedef struct FT_RendererRec_*  FT_Renderer;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_Face                                                            */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A handle to a given typographic face object.  A face object models */\r
+  /*    a given typeface, in a given style.                                */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Each face object also owns a single @FT_GlyphSlot object, as well  */\r
+  /*    as one or more @FT_Size objects.                                   */\r
+  /*                                                                       */\r
+  /*    Use @FT_New_Face or @FT_Open_Face to create a new face object from */\r
+  /*    a given filepathname or a custom input stream.                     */\r
+  /*                                                                       */\r
+  /*    Use @FT_Done_Face to destroy it (along with its slot and sizes).   */\r
+  /*                                                                       */\r
+  /* <Also>                                                                */\r
+  /*    The @FT_FaceRec details the publicly accessible fields of a given  */\r
+  /*    face object.                                                       */\r
+  /*                                                                       */\r
+  typedef struct FT_FaceRec_*  FT_Face;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_Size                                                            */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A handle to an object used to model a face scaled to a given       */\r
+  /*    character size.                                                    */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Each @FT_Face has an _active_ @FT_Size object that is used by      */\r
+  /*    functions like @FT_Load_Glyph to determine the scaling             */\r
+  /*    transformation which is used to load and hint glyphs and metrics.  */\r
+  /*                                                                       */\r
+  /*    You can use @FT_Set_Char_Size, @FT_Set_Pixel_Sizes,                */\r
+  /*    @FT_Request_Size or even @FT_Select_Size to change the content     */\r
+  /*    (i.e., the scaling values) of the active @FT_Size.                 */\r
+  /*                                                                       */\r
+  /*    You can use @FT_New_Size to create additional size objects for a   */\r
+  /*    given @FT_Face, but they won't be used by other functions until    */\r
+  /*    you activate it through @FT_Activate_Size.  Only one size can be   */\r
+  /*    activated at any given time per face.                              */\r
+  /*                                                                       */\r
+  /* <Also>                                                                */\r
+  /*    The @FT_SizeRec structure details the publicly accessible fields   */\r
+  /*    of a given size object.                                            */\r
+  /*                                                                       */\r
+  typedef struct FT_SizeRec_*  FT_Size;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_GlyphSlot                                                       */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A handle to a given `glyph slot'.  A slot is a container where it  */\r
+  /*    is possible to load any one of the glyphs contained in its parent  */\r
+  /*    face.                                                              */\r
+  /*                                                                       */\r
+  /*    In other words, each time you call @FT_Load_Glyph or               */\r
+  /*    @FT_Load_Char, the slot's content is erased by the new glyph data, */\r
+  /*    i.e., the glyph's metrics, its image (bitmap or outline), and      */\r
+  /*    other control information.                                         */\r
+  /*                                                                       */\r
+  /* <Also>                                                                */\r
+  /*    @FT_GlyphSlotRec details the publicly accessible glyph fields.     */\r
+  /*                                                                       */\r
+  typedef struct FT_GlyphSlotRec_*  FT_GlyphSlot;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_CharMap                                                         */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A handle to a given character map.  A charmap is used to translate */\r
+  /*    character codes in a given encoding into glyph indexes for its     */\r
+  /*    parent's face.  Some font formats may provide several charmaps per */\r
+  /*    font.                                                              */\r
+  /*                                                                       */\r
+  /*    Each face object owns zero or more charmaps, but only one of them  */\r
+  /*    can be `active' and used by @FT_Get_Char_Index or @FT_Load_Char.   */\r
+  /*                                                                       */\r
+  /*    The list of available charmaps in a face is available through the  */\r
+  /*    `face->num_charmaps' and `face->charmaps' fields of @FT_FaceRec.   */\r
+  /*                                                                       */\r
+  /*    The currently active charmap is available as `face->charmap'.      */\r
+  /*    You should call @FT_Set_Charmap to change it.                      */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    When a new face is created (either through @FT_New_Face or         */\r
+  /*    @FT_Open_Face), the library looks for a Unicode charmap within     */\r
+  /*    the list and automatically activates it.                           */\r
+  /*                                                                       */\r
+  /* <Also>                                                                */\r
+  /*    The @FT_CharMapRec details the publicly accessible fields of a     */\r
+  /*    given character map.                                               */\r
+  /*                                                                       */\r
+  typedef struct FT_CharMapRec_*  FT_CharMap;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Macro>                                                               */\r
+  /*    FT_ENC_TAG                                                         */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This macro converts four-letter tags into an unsigned long.  It is */\r
+  /*    used to define `encoding' identifiers (see @FT_Encoding).          */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Since many 16bit compilers don't like 32bit enumerations, you      */\r
+  /*    should redefine this macro in case of problems to something like   */\r
+  /*    this:                                                              */\r
+  /*                                                                       */\r
+  /*    {                                                                  */\r
+  /*      #define FT_ENC_TAG( value, a, b, c, d )  value                   */\r
+  /*    }                                                                  */\r
+  /*                                                                       */\r
+  /*    to get a simple enumeration without assigning special numbers.     */\r
+  /*                                                                       */\r
+\r
+#ifndef FT_ENC_TAG\r
+#define FT_ENC_TAG( value, a, b, c, d )         \\r
+          value = ( ( (FT_UInt32)(a) << 24 ) |  \\r
+                    ( (FT_UInt32)(b) << 16 ) |  \\r
+                    ( (FT_UInt32)(c) <<  8 ) |  \\r
+                      (FT_UInt32)(d)         )\r
+\r
+#endif /* FT_ENC_TAG */\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Enum>                                                                */\r
+  /*    FT_Encoding                                                        */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    An enumeration used to specify character sets supported by         */\r
+  /*    charmaps.  Used in the @FT_Select_Charmap API function.            */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Despite the name, this enumeration lists specific character        */\r
+  /*    repertories (i.e., charsets), and not text encoding methods (e.g., */\r
+  /*    UTF-8, UTF-16, GB2312_EUC, etc.).                                  */\r
+  /*                                                                       */\r
+  /*    Because of 32-bit charcodes defined in Unicode (i.e., surrogates), */\r
+  /*    all character codes must be expressed as FT_Longs.                 */\r
+  /*                                                                       */\r
+  /*    Other encodings might be defined in the future.                    */\r
+  /*                                                                       */\r
+  /* <Values>                                                              */\r
+  /*   FT_ENCODING_NONE ::                                                 */\r
+  /*     The encoding value 0 is reserved.                                 */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_UNICODE ::                                              */\r
+  /*     Corresponds to the Unicode character set.  This value covers      */\r
+  /*     all versions of the Unicode repertoire, including ASCII and       */\r
+  /*     Latin-1.  Most fonts include a Unicode charmap, but not all       */\r
+  /*     of them.                                                          */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_MS_SYMBOL ::                                            */\r
+  /*     Corresponds to the Microsoft Symbol encoding, used to encode      */\r
+  /*     mathematical symbols in the 32..255 character code range.  For    */\r
+  /*     more information, see `http://www.ceviz.net/symbol.htm'.          */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_SJIS ::                                                 */\r
+  /*     Corresponds to Japanese SJIS encoding.  More info at              */\r
+  /*     at `http://langsupport.japanreference.com/encoding.shtml'.        */\r
+  /*     See note on multi-byte encodings below.                           */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_GB2312 ::                                               */\r
+  /*     Corresponds to an encoding system for Simplified Chinese as used  */\r
+  /*     used in mainland China.                                           */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_BIG5 ::                                                 */\r
+  /*     Corresponds to an encoding system for Traditional Chinese as used */\r
+  /*     in Taiwan and Hong Kong.                                          */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_WANSUNG ::                                              */\r
+  /*     Corresponds to the Korean encoding system known as Wansung.       */\r
+  /*     For more information see                                          */\r
+  /*     `http://www.microsoft.com/typography/unicode/949.txt'.            */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_JOHAB ::                                                */\r
+  /*     The Korean standard character set (KS C-5601-1992), which         */\r
+  /*     corresponds to MS Windows code page 1361.  This character set     */\r
+  /*     includes all possible Hangeul character combinations.             */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_ADOBE_LATIN_1 ::                                        */\r
+  /*     Corresponds to a Latin-1 encoding as defined in a Type 1          */\r
+  /*     Postscript font.  It is limited to 256 character codes.           */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_ADOBE_STANDARD ::                                       */\r
+  /*     Corresponds to the Adobe Standard encoding, as found in Type 1,   */\r
+  /*     CFF, and OpenType/CFF fonts.  It is limited to 256 character      */\r
+  /*     codes.                                                            */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_ADOBE_EXPERT ::                                         */\r
+  /*     Corresponds to the Adobe Expert encoding, as found in Type 1,     */\r
+  /*     CFF, and OpenType/CFF fonts.  It is limited to 256 character      */\r
+  /*     codes.                                                            */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_ADOBE_CUSTOM ::                                         */\r
+  /*     Corresponds to a custom encoding, as found in Type 1, CFF, and    */\r
+  /*     OpenType/CFF fonts.  It is limited to 256 character codes.        */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_APPLE_ROMAN ::                                          */\r
+  /*     Corresponds to the 8-bit Apple roman encoding.  Many TrueType and */\r
+  /*     OpenType fonts contain a charmap for this encoding, since older   */\r
+  /*     versions of Mac OS are able to use it.                            */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_OLD_LATIN_2 ::                                          */\r
+  /*     This value is deprecated and was never used nor reported by       */\r
+  /*     FreeType.  Don't use or test for it.                              */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_MS_SJIS ::                                              */\r
+  /*     Same as FT_ENCODING_SJIS.  Deprecated.                            */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_MS_GB2312 ::                                            */\r
+  /*     Same as FT_ENCODING_GB2312.  Deprecated.                          */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_MS_BIG5 ::                                              */\r
+  /*     Same as FT_ENCODING_BIG5.  Deprecated.                            */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_MS_WANSUNG ::                                           */\r
+  /*     Same as FT_ENCODING_WANSUNG.  Deprecated.                         */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_MS_JOHAB ::                                             */\r
+  /*     Same as FT_ENCODING_JOHAB.  Deprecated.                           */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*   By default, FreeType automatically synthetizes a Unicode charmap    */\r
+  /*   for Postscript fonts, using their glyph names dictionaries.         */\r
+  /*   However, it also reports the encodings defined explicitly in the    */\r
+  /*   font file, for the cases when they are needed, with the Adobe       */\r
+  /*   values as well.                                                     */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_NONE is set by the BDF and PCF drivers if the charmap   */\r
+  /*   is neither Unicode nor ISO-8859-1 (otherwise it is set to           */\r
+  /*   FT_ENCODING_UNICODE).  Use @FT_Get_BDF_Charset_ID to find out which */\r
+  /*   encoding is really present.  If, for example, the `cs_registry'     */\r
+  /*   field is `KOI8' and the `cs_encoding' field is `R', the font is     */\r
+  /*   encoded in KOI8-R.                                                  */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_NONE is always set (with a single exception) by the     */\r
+  /*   winfonts driver.  Use @FT_Get_WinFNT_Header and examine the         */\r
+  /*   `charset' field of the @FT_WinFNT_HeaderRec structure to find out   */\r
+  /*   which encoding is really present.  For example,                     */\r
+  /*   @FT_WinFNT_ID_CP1251 (204) means Windows code page 1251 (for        */\r
+  /*   Russian).                                                           */\r
+  /*                                                                       */\r
+  /*   FT_ENCODING_NONE is set if `platform_id' is @TT_PLATFORM_MACINTOSH  */\r
+  /*   and `encoding_id' is not @TT_MAC_ID_ROMAN (otherwise it is set to   */\r
+  /*   FT_ENCODING_APPLE_ROMAN).                                           */\r
+  /*                                                                       */\r
+  /*   If `platform_id' is @TT_PLATFORM_MACINTOSH, use the function  c     */\r
+  /*   @FT_Get_CMap_Language_ID  to query the Mac language ID which may be */\r
+  /*   needed to be able to distinguish Apple encoding variants.  See      */\r
+  /*                                                                       */\r
+  /*     http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/README.TXT   */\r
+  /*                                                                       */\r
+  /*   to get an idea how to do that.  Basically, if the language ID is 0, */\r
+  /*   don't use it, otherwise subtract 1 from the language ID.  Then      */\r
+  /*   examine `encoding_id'.  If, for example, `encoding_id' is           */\r
+  /*   @TT_MAC_ID_ROMAN and the language ID (minus 1) is                   */\r
+  /*   `TT_MAC_LANGID_GREEK', it is the Greek encoding, not Roman.         */\r
+  /*   @TT_MAC_ID_ARABIC with `TT_MAC_LANGID_FARSI' means the Farsi        */\r
+  /*   variant the Arabic encoding.                                        */\r
+  /*                                                                       */\r
+  typedef enum  FT_Encoding_\r
+  {\r
+    FT_ENC_TAG( FT_ENCODING_NONE, 0, 0, 0, 0 ),\r
+\r
+    FT_ENC_TAG( FT_ENCODING_MS_SYMBOL, 's', 'y', 'm', 'b' ),\r
+    FT_ENC_TAG( FT_ENCODING_UNICODE,   'u', 'n', 'i', 'c' ),\r
+\r
+    FT_ENC_TAG( FT_ENCODING_SJIS,    's', 'j', 'i', 's' ),\r
+    FT_ENC_TAG( FT_ENCODING_GB2312,  'g', 'b', ' ', ' ' ),\r
+    FT_ENC_TAG( FT_ENCODING_BIG5,    'b', 'i', 'g', '5' ),\r
+    FT_ENC_TAG( FT_ENCODING_WANSUNG, 'w', 'a', 'n', 's' ),\r
+    FT_ENC_TAG( FT_ENCODING_JOHAB,   'j', 'o', 'h', 'a' ),\r
+\r
+    /* for backwards compatibility */\r
+    FT_ENCODING_MS_SJIS    = FT_ENCODING_SJIS,\r
+    FT_ENCODING_MS_GB2312  = FT_ENCODING_GB2312,\r
+    FT_ENCODING_MS_BIG5    = FT_ENCODING_BIG5,\r
+    FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG,\r
+    FT_ENCODING_MS_JOHAB   = FT_ENCODING_JOHAB,\r
+\r
+    FT_ENC_TAG( FT_ENCODING_ADOBE_STANDARD, 'A', 'D', 'O', 'B' ),\r
+    FT_ENC_TAG( FT_ENCODING_ADOBE_EXPERT,   'A', 'D', 'B', 'E' ),\r
+    FT_ENC_TAG( FT_ENCODING_ADOBE_CUSTOM,   'A', 'D', 'B', 'C' ),\r
+    FT_ENC_TAG( FT_ENCODING_ADOBE_LATIN_1,  'l', 'a', 't', '1' ),\r
+\r
+    FT_ENC_TAG( FT_ENCODING_OLD_LATIN_2, 'l', 'a', 't', '2' ),\r
+\r
+    FT_ENC_TAG( FT_ENCODING_APPLE_ROMAN, 'a', 'r', 'm', 'n' )\r
+\r
+  } FT_Encoding;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Enum>                                                                */\r
+  /*    ft_encoding_xxx                                                    */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    These constants are deprecated; use the corresponding @FT_Encoding */\r
+  /*    values instead.                                                    */\r
+  /*                                                                       */\r
+#define ft_encoding_none            FT_ENCODING_NONE\r
+#define ft_encoding_unicode         FT_ENCODING_UNICODE\r
+#define ft_encoding_symbol          FT_ENCODING_MS_SYMBOL\r
+#define ft_encoding_latin_1         FT_ENCODING_ADOBE_LATIN_1\r
+#define ft_encoding_latin_2         FT_ENCODING_OLD_LATIN_2\r
+#define ft_encoding_sjis            FT_ENCODING_SJIS\r
+#define ft_encoding_gb2312          FT_ENCODING_GB2312\r
+#define ft_encoding_big5            FT_ENCODING_BIG5\r
+#define ft_encoding_wansung         FT_ENCODING_WANSUNG\r
+#define ft_encoding_johab           FT_ENCODING_JOHAB\r
+\r
+#define ft_encoding_adobe_standard  FT_ENCODING_ADOBE_STANDARD\r
+#define ft_encoding_adobe_expert    FT_ENCODING_ADOBE_EXPERT\r
+#define ft_encoding_adobe_custom    FT_ENCODING_ADOBE_CUSTOM\r
+#define ft_encoding_apple_roman     FT_ENCODING_APPLE_ROMAN\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_CharMapRec                                                      */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    The base charmap structure.                                        */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    face        :: A handle to the parent face object.                 */\r
+  /*                                                                       */\r
+  /*    encoding    :: An @FT_Encoding tag identifying the charmap.  Use   */\r
+  /*                   this with @FT_Select_Charmap.                       */\r
+  /*                                                                       */\r
+  /*    platform_id :: An ID number describing the platform for the        */\r
+  /*                   following encoding ID.  This comes directly from    */\r
+  /*                   the TrueType specification and should be emulated   */\r
+  /*                   for other formats.                                  */\r
+  /*                                                                       */\r
+  /*    encoding_id :: A platform specific encoding number.  This also     */\r
+  /*                   comes from the TrueType specification and should be */\r
+  /*                   emulated similarly.                                 */\r
+  /*                                                                       */\r
+  typedef struct  FT_CharMapRec_\r
+  {\r
+    FT_Face      face;\r
+    FT_Encoding  encoding;\r
+    FT_UShort    platform_id;\r
+    FT_UShort    encoding_id;\r
+\r
+  } FT_CharMapRec;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /*                 B A S E   O B J E C T   C L A S S E S                 */\r
+  /*                                                                       */\r
+  /*************************************************************************/\r
+  /*************************************************************************/\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_Face_Internal                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    An opaque handle to an `FT_Face_InternalRec' structure, used to    */\r
+  /*    model private data of a given @FT_Face object.                     */\r
+  /*                                                                       */\r
+  /*    This structure might change between releases of FreeType 2 and is  */\r
+  /*    not generally available to client applications.                    */\r
+  /*                                                                       */\r
+  typedef struct FT_Face_InternalRec_*  FT_Face_Internal;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_FaceRec                                                         */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    FreeType root face class structure.  A face object models a        */\r
+  /*    typeface in a font file.                                           */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    num_faces           :: The number of faces in the font file.  Some */\r
+  /*                           font formats can have multiple faces in     */\r
+  /*                           a font file.                                */\r
+  /*                                                                       */\r
+  /*    face_index          :: The index of the face in the font file.  It */\r
+  /*                           is set to 0 if there is only one face in    */\r
+  /*                           the font file.                              */\r
+  /*                                                                       */\r
+  /*    face_flags          :: A set of bit flags that give important      */\r
+  /*                           information about the face; see             */\r
+  /*                           @FT_FACE_FLAG_XXX for the details.          */\r
+  /*                                                                       */\r
+  /*    style_flags         :: A set of bit flags indicating the style of  */\r
+  /*                           the face; see @FT_STYLE_FLAG_XXX for the    */\r
+  /*                           details.                                    */\r
+  /*                                                                       */\r
+  /*    num_glyphs          :: The number of glyphs in the face.  If the   */\r
+  /*                           face is scalable and has sbits (see         */\r
+  /*                           `num_fixed_sizes'), it is set to the number */\r
+  /*                           of outline glyphs.                          */\r
+  /*                                                                       */\r
+  /*    family_name         :: The face's family name.  This is an ASCII   */\r
+  /*                           string, usually in English, which describes */\r
+  /*                           the typeface's family (like `Times New      */\r
+  /*                           Roman', `Bodoni', `Garamond', etc).  This   */\r
+  /*                           is a least common denominator used to list  */\r
+  /*                           fonts.  Some formats (TrueType & OpenType)  */\r
+  /*                           provide localized and Unicode versions of   */\r
+  /*                           this string.  Applications should use the   */\r
+  /*                           format specific interface to access them.   */\r
+  /*                                                                       */\r
+  /*    style_name          :: The face's style name.  This is an ASCII    */\r
+  /*                           string, usually in English, which describes */\r
+  /*                           the typeface's style (like `Italic',        */\r
+  /*                           `Bold', `Condensed', etc).  Not all font    */\r
+  /*                           formats provide a style name, so this field */\r
+  /*                           is optional, and can be set to NULL.  As    */\r
+  /*                           for `family_name', some formats provide     */\r
+  /*                           localized and Unicode versions of this      */\r
+  /*                           string.  Applications should use the format */\r
+  /*                           specific interface to access them.          */\r
+  /*                                                                       */\r
+  /*    num_fixed_sizes     :: The number of bitmap strikes in the face.   */\r
+  /*                           Even if the face is scalable, there might   */\r
+  /*                           still be bitmap strikes, which are called   */\r
+  /*                           `sbits' in that case.                       */\r
+  /*                                                                       */\r
+  /*    available_sizes     :: An array of @FT_Bitmap_Size for all bitmap  */\r
+  /*                           strikes in the face.  It is set to NULL if  */\r
+  /*                           there is no bitmap strike.                  */\r
+  /*                                                                       */\r
+  /*    num_charmaps        :: The number of charmaps in the face.         */\r
+  /*                                                                       */\r
+  /*    charmaps            :: An array of the charmaps of the face.       */\r
+  /*                                                                       */\r
+  /*    generic             :: A field reserved for client uses.  See the  */\r
+  /*                           @FT_Generic type description.               */\r
+  /*                                                                       */\r
+  /*    bbox                :: The font bounding box.  Coordinates are     */\r
+  /*                           expressed in font units (see                */\r
+  /*                           `units_per_EM').  The box is large enough   */\r
+  /*                           to contain any glyph from the font.  Thus,  */\r
+  /*                           `bbox.yMax' can be seen as the `maximal     */\r
+  /*                           ascender', and `bbox.yMin' as the `minimal  */\r
+  /*                           descender'.  Only relevant for scalable     */\r
+  /*                           formats.                                    */\r
+  /*                                                                       */\r
+  /*    units_per_EM        :: The number of font units per EM square for  */\r
+  /*                           this face.  This is typically 2048 for      */\r
+  /*                           TrueType fonts, and 1000 for Type 1 fonts.  */\r
+  /*                           Only relevant for scalable formats.         */\r
+  /*                                                                       */\r
+  /*    ascender            :: The typographic ascender of the face,       */\r
+  /*                           expressed in font units.  For font formats  */\r
+  /*                           not having this information, it is set to   */\r
+  /*                           `bbox.yMax'.  Only relevant for scalable    */\r
+  /*                           formats.                                    */\r
+  /*                                                                       */\r
+  /*    descender           :: The typographic descender of the face,      */\r
+  /*                           expressed in font units.  For font formats  */\r
+  /*                           not having this information, it is set to   */\r
+  /*                           `bbox.yMin'.  Note that this field is       */\r
+  /*                           usually negative.  Only relevant for        */\r
+  /*                           scalable formats.                           */\r
+  /*                                                                       */\r
+  /*    height              :: The height is the vertical distance         */\r
+  /*                           between two consecutive baselines,          */\r
+  /*                           expressed in font units.  It is always      */\r
+  /*                           positive.  Only relevant for scalable       */\r
+  /*                           formats.                                    */\r
+  /*                                                                       */\r
+  /*    max_advance_width   :: The maximal advance width, in font units,   */\r
+  /*                           for all glyphs in this face.  This can be   */\r
+  /*                           used to make word wrapping computations     */\r
+  /*                           faster.  Only relevant for scalable         */\r
+  /*                           formats.                                    */\r
+  /*                                                                       */\r
+  /*    max_advance_height  :: The maximal advance height, in font units,  */\r
+  /*                           for all glyphs in this face.  This is only  */\r
+  /*                           relevant for vertical layouts, and is set   */\r
+  /*                           to `height' for fonts that do not provide   */\r
+  /*                           vertical metrics.  Only relevant for        */\r
+  /*                           scalable formats.                           */\r
+  /*                                                                       */\r
+  /*    underline_position  :: The position, in font units, of the         */\r
+  /*                           underline line for this face.  It's the     */\r
+  /*                           center of the underlining stem.  Only       */\r
+  /*                           relevant for scalable formats.              */\r
+  /*                                                                       */\r
+  /*    underline_thickness :: The thickness, in font units, of the        */\r
+  /*                           underline for this face.  Only relevant for */\r
+  /*                           scalable formats.                           */\r
+  /*                                                                       */\r
+  /*    glyph               :: The face's associated glyph slot(s).        */\r
+  /*                                                                       */\r
+  /*    size                :: The current active size for this face.      */\r
+  /*                                                                       */\r
+  /*    charmap             :: The current active charmap for this face.   */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*   Fields may be changed after a call to @FT_Attach_File or            */\r
+  /*   @FT_Attach_Stream.                                                  */\r
+  /*                                                                       */\r
+  typedef struct  FT_FaceRec_\r
+  {\r
+    FT_Long           num_faces;\r
+    FT_Long           face_index;\r
+\r
+    FT_Long           face_flags;\r
+    FT_Long           style_flags;\r
+\r
+    FT_Long           num_glyphs;\r
+\r
+    FT_String*        family_name;\r
+    FT_String*        style_name;\r
+\r
+    FT_Int            num_fixed_sizes;\r
+    FT_Bitmap_Size*   available_sizes;\r
+\r
+    FT_Int            num_charmaps;\r
+    FT_CharMap*       charmaps;\r
+\r
+    FT_Generic        generic;\r
+\r
+    /*# The following member variables (down to `underline_thickness') */\r
+    /*# are only relevant to scalable outlines; cf. @FT_Bitmap_Size    */\r
+    /*# for bitmap fonts.                                              */\r
+    FT_BBox           bbox;\r
+\r
+    FT_UShort         units_per_EM;\r
+    FT_Short          ascender;\r
+    FT_Short          descender;\r
+    FT_Short          height;\r
+\r
+    FT_Short          max_advance_width;\r
+    FT_Short          max_advance_height;\r
+\r
+    FT_Short          underline_position;\r
+    FT_Short          underline_thickness;\r
+\r
+    FT_GlyphSlot      glyph;\r
+    FT_Size           size;\r
+    FT_CharMap        charmap;\r
+\r
+    /*@private begin */\r
+\r
+    FT_Driver         driver;\r
+    FT_Memory         memory;\r
+    FT_Stream         stream;\r
+\r
+    FT_ListRec        sizes_list;\r
+\r
+    FT_Generic        autohint;\r
+    void*             extensions;\r
+\r
+    FT_Face_Internal  internal;\r
+\r
+    /*@private end */\r
+\r
+  } FT_FaceRec;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Enum>                                                                */\r
+  /*    FT_FACE_FLAG_XXX                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A list of bit flags used in the `face_flags' field of the          */\r
+  /*    @FT_FaceRec structure.  They inform client applications of         */\r
+  /*    properties of the corresponding face.                              */\r
+  /*                                                                       */\r
+  /* <Values>                                                              */\r
+  /*    FT_FACE_FLAG_SCALABLE ::                                           */\r
+  /*      Indicates that the face contains outline glyphs.  This doesn't   */\r
+  /*      prevent bitmap strikes, i.e., a face can have both this and      */\r
+  /*      and @FT_FACE_FLAG_FIXED_SIZES set.                               */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_FIXED_SIZES ::                                        */\r
+  /*      Indicates that the face contains bitmap strikes.  See also the   */\r
+  /*      `num_fixed_sizes' and `available_sizes' fields of @FT_FaceRec.   */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_FIXED_WIDTH ::                                        */\r
+  /*      Indicates that the face contains fixed-width characters (like    */\r
+  /*      Courier, Lucido, MonoType, etc.).                                */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_SFNT ::                                               */\r
+  /*      Indicates that the face uses the `sfnt' storage scheme.  For     */\r
+  /*      now, this means TrueType and OpenType.                           */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_HORIZONTAL ::                                         */\r
+  /*      Indicates that the face contains horizontal glyph metrics.  This */\r
+  /*      should be set for all common formats.                            */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_VERTICAL ::                                           */\r
+  /*      Indicates that the face contains vertical glyph metrics.  This   */\r
+  /*      is only available in some formats, not all of them.              */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_KERNING ::                                            */\r
+  /*      Indicates that the face contains kerning information.  If set,   */\r
+  /*      the kerning distance can be retrieved through the function       */\r
+  /*      @FT_Get_Kerning.  Otherwise the function always return the       */\r
+  /*      vector (0,0).  Note that FreeType doesn't handle kerning data    */\r
+  /*      from the `GPOS' table (as present in some OpenType fonts).       */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_FAST_GLYPHS ::                                        */\r
+  /*      THIS FLAG IS DEPRECATED.  DO NOT USE OR TEST IT.                 */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_MULTIPLE_MASTERS ::                                   */\r
+  /*      Indicates that the font contains multiple masters and is capable */\r
+  /*      of interpolating between them.  See the multiple-masters         */\r
+  /*      specific API for details.                                        */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_GLYPH_NAMES ::                                        */\r
+  /*      Indicates that the font contains glyph names that can be         */\r
+  /*      retrieved through @FT_Get_Glyph_Name.  Note that some TrueType   */\r
+  /*      fonts contain broken glyph name tables.  Use the function        */\r
+  /*      @FT_Has_PS_Glyph_Names when needed.                              */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_EXTERNAL_STREAM ::                                    */\r
+  /*      Used internally by FreeType to indicate that a face's stream was */\r
+  /*      provided by the client application and should not be destroyed   */\r
+  /*      when @FT_Done_Face is called.  Don't read or test this flag.     */\r
+  /*                                                                       */\r
+  /*    FT_FACE_FLAG_HINTER ::                                             */\r
+  /*      Set if the font driver has a hinting machine of its own.  For    */\r
+  /*      example, with TrueType fonts, it makes sense to use data from    */\r
+  /*      the SFNT `gasp' table only if the native TrueType hinting engine */\r
+  /*      (with the bytecode interpreter) is available and active.         */\r
+  /*                                                                       */\r
+#define FT_FACE_FLAG_SCALABLE          ( 1L <<  0 )\r
+#define FT_FACE_FLAG_FIXED_SIZES       ( 1L <<  1 )\r
+#define FT_FACE_FLAG_FIXED_WIDTH       ( 1L <<  2 )\r
+#define FT_FACE_FLAG_SFNT              ( 1L <<  3 )\r
+#define FT_FACE_FLAG_HORIZONTAL        ( 1L <<  4 )\r
+#define FT_FACE_FLAG_VERTICAL          ( 1L <<  5 )\r
+#define FT_FACE_FLAG_KERNING           ( 1L <<  6 )\r
+#define FT_FACE_FLAG_FAST_GLYPHS       ( 1L <<  7 )\r
+#define FT_FACE_FLAG_MULTIPLE_MASTERS  ( 1L <<  8 )\r
+#define FT_FACE_FLAG_GLYPH_NAMES       ( 1L <<  9 )\r
+#define FT_FACE_FLAG_EXTERNAL_STREAM   ( 1L << 10 )\r
+#define FT_FACE_FLAG_HINTER            ( 1L << 11 )\r
+\r
+  /* */\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_HAS_HORIZONTAL( face )\r
+   *\r
+   * @description:\r
+   *   A macro that returns true whenever a face object contains\r
+   *   horizontal metrics (this is true for all font formats though).\r
+   *\r
+   * @also:\r
+   *   @FT_HAS_VERTICAL can be used to check for vertical metrics.\r
+   *\r
+   */\r
+#define FT_HAS_HORIZONTAL( face ) \\r
+          ( face->face_flags & FT_FACE_FLAG_HORIZONTAL )\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_HAS_VERTICAL( face )\r
+   *\r
+   * @description:\r
+   *   A macro that returns true whenever a face object contains vertical\r
+   *   metrics.\r
+   *\r
+   */\r
+#define FT_HAS_VERTICAL( face ) \\r
+          ( face->face_flags & FT_FACE_FLAG_VERTICAL )\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_HAS_KERNING( face )\r
+   *\r
+   * @description:\r
+   *   A macro that returns true whenever a face object contains kerning\r
+   *   data that can be accessed with @FT_Get_Kerning.\r
+   *\r
+   */\r
+#define FT_HAS_KERNING( face ) \\r
+          ( face->face_flags & FT_FACE_FLAG_KERNING )\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_IS_SCALABLE( face )\r
+   *\r
+   * @description:\r
+   *   A macro that returns true whenever a face object contains a scalable\r
+   *   font face (true for TrueType, Type 1, Type 42, CID, OpenType/CFF,\r
+   *   and PFR font formats.\r
+   *\r
+   */\r
+#define FT_IS_SCALABLE( face ) \\r
+          ( face->face_flags & FT_FACE_FLAG_SCALABLE )\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_IS_SFNT( face )\r
+   *\r
+   * @description:\r
+   *   A macro that returns true whenever a face object contains a font\r
+   *   whose format is based on the SFNT storage scheme.  This usually\r
+   *   means: TrueType fonts, OpenType fonts, as well as SFNT-based embedded\r
+   *   bitmap fonts.\r
+   *\r
+   *   If this macro is true, all functions defined in @FT_SFNT_NAMES_H and\r
+   *   @FT_TRUETYPE_TABLES_H are available.\r
+   *\r
+   */\r
+#define FT_IS_SFNT( face ) \\r
+          ( face->face_flags & FT_FACE_FLAG_SFNT )\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_IS_FIXED_WIDTH( face )\r
+   *\r
+   * @description:\r
+   *   A macro that returns true whenever a face object contains a font face\r
+   *   that contains fixed-width (or `monospace', `fixed-pitch', etc.)\r
+   *   glyphs.\r
+   *\r
+   */\r
+#define FT_IS_FIXED_WIDTH( face ) \\r
+          ( face->face_flags & FT_FACE_FLAG_FIXED_WIDTH )\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_HAS_FIXED_SIZES( face )\r
+   *\r
+   * @description:\r
+   *   A macro that returns true whenever a face object contains some\r
+   *   embedded bitmaps.  See the `available_sizes' field of the\r
+   *   @FT_FaceRec structure.\r
+   *\r
+   */\r
+#define FT_HAS_FIXED_SIZES( face ) \\r
+          ( face->face_flags & FT_FACE_FLAG_FIXED_SIZES )\r
+\r
+  /* */\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_HAS_FAST_GLYPHS( face )\r
+   *\r
+   * @description:\r
+   *   Deprecated.\r
+   *\r
+   */\r
+#define FT_HAS_FAST_GLYPHS( face )  0\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_HAS_GLYPH_NAMES( face )\r
+   *\r
+   * @description:\r
+   *   A macro that returns true whenever a face object contains some glyph\r
+   *   names that can be accessed through @FT_Get_Glyph_Name.\r
+   *\r
+   */\r
+#define FT_HAS_GLYPH_NAMES( face ) \\r
+          ( face->face_flags & FT_FACE_FLAG_GLYPH_NAMES )\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_HAS_MULTIPLE_MASTERS( face )\r
+   *\r
+   * @description:\r
+   *   A macro that returns true whenever a face object contains some\r
+   *   multiple masters.  The functions provided by @FT_MULTIPLE_MASTERS_H\r
+   *   are then available to choose the exact design you want.\r
+   *\r
+   */\r
+#define FT_HAS_MULTIPLE_MASTERS( face ) \\r
+          ( face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Constant>                                                            */\r
+  /*    FT_STYLE_FLAG_XXX                                                  */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A list of bit-flags used to indicate the style of a given face.    */\r
+  /*    These are used in the `style_flags' field of @FT_FaceRec.          */\r
+  /*                                                                       */\r
+  /* <Values>                                                              */\r
+  /*    FT_STYLE_FLAG_ITALIC ::                                            */\r
+  /*      Indicates that a given face is italicized.                       */\r
+  /*                                                                       */\r
+  /*    FT_STYLE_FLAG_BOLD ::                                              */\r
+  /*      Indicates that a given face is bold.                             */\r
+  /*                                                                       */\r
+#define FT_STYLE_FLAG_ITALIC  ( 1 << 0 )\r
+#define FT_STYLE_FLAG_BOLD    ( 1 << 1 )\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_Size_Internal                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    An opaque handle to an `FT_Size_InternalRec' structure, used to    */\r
+  /*    model private data of a given FT_Size object.                      */\r
+  /*                                                                       */\r
+  typedef struct FT_Size_InternalRec_*  FT_Size_Internal;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_Size_Metrics                                                    */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    The size metrics structure gives the metrics of a size object.     */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    x_ppem       :: The width of the scaled EM square in pixels, hence */\r
+  /*                    the term `ppem' (pixels per EM).  It is also       */\r
+  /*                    referred to as `nominal width'.                    */\r
+  /*                                                                       */\r
+  /*    y_ppem       :: The height of the scaled EM square in pixels,      */\r
+  /*                    hence the term `ppem' (pixels per EM).  It is also */\r
+  /*                    referred to as `nominal height'.                   */\r
+  /*                                                                       */\r
+  /*    x_scale      :: A 16.16 fractional scaling value used to convert   */\r
+  /*                    horizontal metrics from font units to 26.6         */\r
+  /*                    fractional pixels.  Only relevant for scalable     */\r
+  /*                    font formats.                                      */\r
+  /*                                                                       */\r
+  /*    y_scale      :: A 16.16 fractional scaling value used to convert   */\r
+  /*                    vertical metrics from font units to 26.6           */\r
+  /*                    fractional pixels.  Only relevant for scalable     */\r
+  /*                    font formats.                                      */\r
+  /*                                                                       */\r
+  /*    ascender     :: The ascender in 26.6 fractional pixels.  See       */\r
+  /*                    @FT_FaceRec for the details.                       */\r
+  /*                                                                       */\r
+  /*    descender    :: The descender in 26.6 fractional pixels.  See      */\r
+  /*                    @FT_FaceRec for the details.                       */\r
+  /*                                                                       */\r
+  /*    height       :: The height in 26.6 fractional pixels.  See         */\r
+  /*                    @FT_FaceRec for the details.                       */\r
+  /*                                                                       */\r
+  /*    max_advance  :: The maximal advance width in 26.6 fractional       */\r
+  /*                    pixels.  See @FT_FaceRec for the details.          */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The scaling values, if relevant, are determined first during a     */\r
+  /*    size changing operation.  The remaining fields are then set by the */\r
+  /*    driver.  For scalable formats, they are usually set to scaled      */\r
+  /*    values of the corresponding fields in @FT_FaceRec.                 */\r
+  /*                                                                       */\r
+  /*    Note that due to glyph hinting, these values might not be exact    */\r
+  /*    for certain fonts.  Thus they must be treated as unreliable        */\r
+  /*    with an error margin of at least one pixel!                        */\r
+  /*                                                                       */\r
+  /*    Indeed, the only way to get the exact metrics is to render _all_   */\r
+  /*    glyphs.  As this would be a definite performance hit, it is up to  */\r
+  /*    client applications to perform such computations.                  */\r
+  /*                                                                       */\r
+  /*    The FT_Size_Metrics structure is valid for bitmap fonts also.      */\r
+  /*                                                                       */\r
+  typedef struct  FT_Size_Metrics_\r
+  {\r
+    FT_UShort  x_ppem;      /* horizontal pixels per EM               */\r
+    FT_UShort  y_ppem;      /* vertical pixels per EM                 */\r
+\r
+    FT_Fixed   x_scale;     /* scaling values used to convert font    */\r
+    FT_Fixed   y_scale;     /* units to 26.6 fractional pixels        */\r
+\r
+    FT_Pos     ascender;    /* ascender in 26.6 frac. pixels          */\r
+    FT_Pos     descender;   /* descender in 26.6 frac. pixels         */\r
+    FT_Pos     height;      /* text height in 26.6 frac. pixels       */\r
+    FT_Pos     max_advance; /* max horizontal advance, in 26.6 pixels */\r
+\r
+  } FT_Size_Metrics;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_SizeRec                                                         */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    FreeType root size class structure.  A size object models a face   */\r
+  /*    object at a given size.                                            */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    face    :: Handle to the parent face object.                       */\r
+  /*                                                                       */\r
+  /*    generic :: A typeless pointer, which is unused by the FreeType     */\r
+  /*               library or any of its drivers.  It can be used by       */\r
+  /*               client applications to link their own data to each size */\r
+  /*               object.                                                 */\r
+  /*                                                                       */\r
+  /*    metrics :: Metrics for this size object.  This field is read-only. */\r
+  /*                                                                       */\r
+  typedef struct  FT_SizeRec_\r
+  {\r
+    FT_Face           face;      /* parent face object              */\r
+    FT_Generic        generic;   /* generic pointer for client uses */\r
+    FT_Size_Metrics   metrics;   /* size metrics                    */\r
+    FT_Size_Internal  internal;\r
+\r
+  } FT_SizeRec;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_SubGlyph                                                        */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    The subglyph structure is an internal object used to describe      */\r
+  /*    subglyphs (for example, in the case of composites).                */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The subglyph implementation is not part of the high-level API,     */\r
+  /*    hence the forward structure declaration.                           */\r
+  /*                                                                       */\r
+  /*    You can however retrieve subglyph information with                 */\r
+  /*    @FT_Get_SubGlyph_Info.                                             */\r
+  /*                                                                       */\r
+  typedef struct FT_SubGlyphRec_*  FT_SubGlyph;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Type>                                                                */\r
+  /*    FT_Slot_Internal                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    An opaque handle to an `FT_Slot_InternalRec' structure, used to    */\r
+  /*    model private data of a given FT_GlyphSlot object.                 */\r
+  /*                                                                       */\r
+  typedef struct FT_Slot_InternalRec_*  FT_Slot_Internal;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_GlyphSlotRec                                                    */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    FreeType root glyph slot class structure.  A glyph slot is a       */\r
+  /*    container where individual glyphs can be loaded, be they in        */\r
+  /*    outline or bitmap format.                                          */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    library           :: A handle to the FreeType library instance     */\r
+  /*                         this slot belongs to.                         */\r
+  /*                                                                       */\r
+  /*    face              :: A handle to the parent face object.           */\r
+  /*                                                                       */\r
+  /*    next              :: In some cases (like some font tools), several */\r
+  /*                         glyph slots per face object can be a good     */\r
+  /*                         thing.  As this is rare, the glyph slots are  */\r
+  /*                         listed through a direct, single-linked list   */\r
+  /*                         using its `next' field.                       */\r
+  /*                                                                       */\r
+  /*    generic           :: A typeless pointer which is unused by the     */\r
+  /*                         FreeType library or any of its drivers.  It   */\r
+  /*                         can be used by client applications to link    */\r
+  /*                         their own data to each glyph slot object.     */\r
+  /*                                                                       */\r
+  /*    metrics           :: The metrics of the last loaded glyph in the   */\r
+  /*                         slot.  The returned values depend on the last */\r
+  /*                         load flags (see the @FT_Load_Glyph API        */\r
+  /*                         function) and can be expressed either in 26.6 */\r
+  /*                         fractional pixels or font units.              */\r
+  /*                                                                       */\r
+  /*                         Note that even when the glyph image is        */\r
+  /*                         transformed, the metrics are not.             */\r
+  /*                                                                       */\r
+  /*    linearHoriAdvance :: The advance width of the unhinted glyph.      */\r
+  /*                         Its value is expressed in 16.16 fractional    */\r
+  /*                         pixels, unless @FT_LOAD_LINEAR_DESIGN is set  */\r
+  /*                         when loading the glyph.  This field can be    */\r
+  /*                         important to perform correct WYSIWYG layout.  */\r
+  /*                         Only relevant for outline glyphs.             */\r
+  /*                                                                       */\r
+  /*    linearVertAdvance :: The advance height of the unhinted glyph.     */\r
+  /*                         Its value is expressed in 16.16 fractional    */\r
+  /*                         pixels, unless @FT_LOAD_LINEAR_DESIGN is set  */\r
+  /*                         when loading the glyph.  This field can be    */\r
+  /*                         important to perform correct WYSIWYG layout.  */\r
+  /*                         Only relevant for outline glyphs.             */\r
+  /*                                                                       */\r
+  /*    advance           :: This is the transformed advance width for the */\r
+  /*                         glyph.                                        */\r
+  /*                                                                       */\r
+  /*    format            :: This field indicates the format of the image  */\r
+  /*                         contained in the glyph slot.  Typically       */\r
+  /*                         @FT_GLYPH_FORMAT_BITMAP,                      */\r
+  /*                         @FT_GLYPH_FORMAT_OUTLINE, or                  */\r
+  /*                         @FT_GLYPH_FORMAT_COMPOSITE, but others are    */\r
+  /*                         possible.                                     */\r
+  /*                                                                       */\r
+  /*    bitmap            :: This field is used as a bitmap descriptor     */\r
+  /*                         when the slot format is                       */\r
+  /*                         @FT_GLYPH_FORMAT_BITMAP.  Note that the       */\r
+  /*                         address and content of the bitmap buffer can  */\r
+  /*                         change between calls of @FT_Load_Glyph and a  */\r
+  /*                         few other functions.                          */\r
+  /*                                                                       */\r
+  /*    bitmap_left       :: This is the bitmap's left bearing expressed   */\r
+  /*                         in integer pixels.  Of course, this is only   */\r
+  /*                         valid if the format is                        */\r
+  /*                         @FT_GLYPH_FORMAT_BITMAP.                      */\r
+  /*                                                                       */\r
+  /*    bitmap_top        :: This is the bitmap's top bearing expressed in */\r
+  /*                         integer pixels.  Remember that this is the    */\r
+  /*                         distance from the baseline to the top-most    */\r
+  /*                         glyph scanline, upwards y-coordinates being   */\r
+  /*                         *positive*.                                   */\r
+  /*                                                                       */\r
+  /*    outline           :: The outline descriptor for the current glyph  */\r
+  /*                         image if its format is                        */\r
+  /*                         @FT_GLYPH_FORMAT_OUTLINE.  Once a glyph is    */\r
+  /*                         loaded, `outline' can be transformed,         */\r
+  /*                         distorted, embolded, etc.  However, it must   */\r
+  /*                         not be freed.                                 */\r
+  /*                                                                       */\r
+  /*    num_subglyphs     :: The number of subglyphs in a composite glyph. */\r
+  /*                         This field is only valid for the composite    */\r
+  /*                         glyph format that should normally only be     */\r
+  /*                         loaded with the @FT_LOAD_NO_RECURSE flag.     */\r
+  /*                         For now this is internal to FreeType.         */\r
+  /*                                                                       */\r
+  /*    subglyphs         :: An array of subglyph descriptors for          */\r
+  /*                         composite glyphs.  There are `num_subglyphs'  */\r
+  /*                         elements in there.  Currently internal to     */\r
+  /*                         FreeType.                                     */\r
+  /*                                                                       */\r
+  /*    control_data      :: Certain font drivers can also return the      */\r
+  /*                         control data for a given glyph image (e.g.    */\r
+  /*                         TrueType bytecode, Type 1 charstrings, etc.). */\r
+  /*                         This field is a pointer to such data.         */\r
+  /*                                                                       */\r
+  /*    control_len       :: This is the length in bytes of the control    */\r
+  /*                         data.                                         */\r
+  /*                                                                       */\r
+  /*    other             :: Really wicked formats can use this pointer to */\r
+  /*                         present their own glyph image to client       */\r
+  /*                         applications.  Note that the application      */\r
+  /*                         needs to know about the image format.         */\r
+  /*                                                                       */\r
+  /*    lsb_delta         :: The difference between hinted and unhinted    */\r
+  /*                         left side bearing while autohinting is        */\r
+  /*                         active.  Zero otherwise.                      */\r
+  /*                                                                       */\r
+  /*    rsb_delta         :: The difference between hinted and unhinted    */\r
+  /*                         right side bearing while autohinting is       */\r
+  /*                         active.  Zero otherwise.                      */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    If @FT_Load_Glyph is called with default flags (see                */\r
+  /*    @FT_LOAD_DEFAULT) the glyph image is loaded in the glyph slot in   */\r
+  /*    its native format (e.g., an outline glyph for TrueType and Type 1  */\r
+  /*    formats).                                                          */\r
+  /*                                                                       */\r
+  /*    This image can later be converted into a bitmap by calling         */\r
+  /*    @FT_Render_Glyph.  This function finds the current renderer for    */\r
+  /*    the native image's format then invokes it.                         */\r
+  /*                                                                       */\r
+  /*    The renderer is in charge of transforming the native image through */\r
+  /*    the slot's face transformation fields, then convert it into a      */\r
+  /*    bitmap that is returned in `slot->bitmap'.                         */\r
+  /*                                                                       */\r
+  /*    Note that `slot->bitmap_left' and `slot->bitmap_top' are also used */\r
+  /*    to specify the position of the bitmap relative to the current pen  */\r
+  /*    position (e.g., coordinates (0,0) on the baseline).  Of course,    */\r
+  /*    `slot->format' is also changed to @FT_GLYPH_FORMAT_BITMAP.         */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Here a small pseudo code fragment which shows how to use           */\r
+  /*    `lsb_delta' and `rsb_delta':                                       */\r
+  /*                                                                       */\r
+  /*    {                                                                  */\r
+  /*      FT_Pos  origin_x       = 0;                                      */\r
+  /*      FT_Pos  prev_rsb_delta = 0;                                      */\r
+  /*                                                                       */\r
+  /*                                                                       */\r
+  /*      for all glyphs do                                                */\r
+  /*        <compute kern between current and previous glyph and add it to */\r
+  /*         `origin_x'>                                                   */\r
+  /*                                                                       */\r
+  /*        <load glyph with `FT_Load_Glyph'>                              */\r
+  /*                                                                       */\r
+  /*        if ( prev_rsb_delta - face->glyph->lsb_delta >= 32 )           */\r
+  /*          origin_x -= 64;                                              */\r
+  /*        else if ( prev_rsb_delta - face->glyph->lsb_delta < -32 )      */\r
+  /*          origin_x += 64;                                              */\r
+  /*                                                                       */\r
+  /*        prev_rsb_delta = face->glyph->rsb_delta;                       */\r
+  /*                                                                       */\r
+  /*        <save glyph image, or render glyph, or ...>                    */\r
+  /*                                                                       */\r
+  /*        origin_x += face->glyph->advance.x;                            */\r
+  /*      endfor                                                           */\r
+  /*    }                                                                  */\r
+  /*                                                                       */\r
+  typedef struct  FT_GlyphSlotRec_\r
+  {\r
+    FT_Library        library;\r
+    FT_Face           face;\r
+    FT_GlyphSlot      next;\r
+    FT_UInt           reserved;       /* retained for binary compatibility */\r
+    FT_Generic        generic;\r
+\r
+    FT_Glyph_Metrics  metrics;\r
+    FT_Fixed          linearHoriAdvance;\r
+    FT_Fixed          linearVertAdvance;\r
+    FT_Vector         advance;\r
+\r
+    FT_Glyph_Format   format;\r
+\r
+    FT_Bitmap         bitmap;\r
+    FT_Int            bitmap_left;\r
+    FT_Int            bitmap_top;\r
+\r
+    FT_Outline        outline;\r
+\r
+    FT_UInt           num_subglyphs;\r
+    FT_SubGlyph       subglyphs;\r
+\r
+    void*             control_data;\r
+    long              control_len;\r
+\r
+    FT_Pos            lsb_delta;\r
+    FT_Pos            rsb_delta;\r
+\r
+    void*             other;\r
+\r
+    FT_Slot_Internal  internal;\r
+\r
+  } FT_GlyphSlotRec;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /*                         F U N C T I O N S                             */\r
+  /*                                                                       */\r
+  /*************************************************************************/\r
+  /*************************************************************************/\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Init_FreeType                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Initialize a new FreeType library object.  The set of modules      */\r
+  /*    that are registered by this function is determined at build time.  */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    alibrary :: A handle to a new library object.                      */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Init_FreeType( FT_Library  *alibrary );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Done_FreeType                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Destroy a given FreeType library object and all of its children,   */\r
+  /*    including resources, drivers, faces, sizes, etc.                   */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    library :: A handle to the target library object.                  */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Done_FreeType( FT_Library  library );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Enum>                                                                */\r
+  /*    FT_OPEN_XXX                                                        */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A list of bit-field constants used within the `flags' field of the */\r
+  /*    @FT_Open_Args structure.                                           */\r
+  /*                                                                       */\r
+  /* <Values>                                                              */\r
+  /*    FT_OPEN_MEMORY      :: This is a memory-based stream.              */\r
+  /*                                                                       */\r
+  /*    FT_OPEN_STREAM      :: Copy the stream from the `stream' field.    */\r
+  /*                                                                       */\r
+  /*    FT_OPEN_PATHNAME    :: Create a new input stream from a C          */\r
+  /*                           path name.                                  */\r
+  /*                                                                       */\r
+  /*    FT_OPEN_DRIVER      :: Use the `driver' field.                     */\r
+  /*                                                                       */\r
+  /*    FT_OPEN_PARAMS      :: Use the `num_params' and `params' fields.   */\r
+  /*                                                                       */\r
+  /*    ft_open_memory      :: Deprecated; use @FT_OPEN_MEMORY instead.    */\r
+  /*                                                                       */\r
+  /*    ft_open_stream      :: Deprecated; use @FT_OPEN_STREAM instead.    */\r
+  /*                                                                       */\r
+  /*    ft_open_pathname    :: Deprecated; use @FT_OPEN_PATHNAME instead.  */\r
+  /*                                                                       */\r
+  /*    ft_open_driver      :: Deprecated; use @FT_OPEN_DRIVER instead.    */\r
+  /*                                                                       */\r
+  /*    ft_open_params      :: Deprecated; use @FT_OPEN_PARAMS instead.    */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The `FT_OPEN_MEMORY', `FT_OPEN_STREAM', and `FT_OPEN_PATHNAME'     */\r
+  /*    flags are mutually exclusive.                                      */\r
+  /*                                                                       */\r
+#define FT_OPEN_MEMORY    0x1\r
+#define FT_OPEN_STREAM    0x2\r
+#define FT_OPEN_PATHNAME  0x4\r
+#define FT_OPEN_DRIVER    0x8\r
+#define FT_OPEN_PARAMS    0x10\r
+\r
+#define ft_open_memory    FT_OPEN_MEMORY     /* deprecated */\r
+#define ft_open_stream    FT_OPEN_STREAM     /* deprecated */\r
+#define ft_open_pathname  FT_OPEN_PATHNAME   /* deprecated */\r
+#define ft_open_driver    FT_OPEN_DRIVER     /* deprecated */\r
+#define ft_open_params    FT_OPEN_PARAMS     /* deprecated */\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_Parameter                                                       */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A simple structure used to pass more or less generic parameters    */\r
+  /*    to @FT_Open_Face.                                                  */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    tag  :: A four-byte identification tag.                            */\r
+  /*                                                                       */\r
+  /*    data :: A pointer to the parameter data.                           */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The ID and function of parameters are driver-specific.             */\r
+  /*                                                                       */\r
+  typedef struct  FT_Parameter_\r
+  {\r
+    FT_ULong    tag;\r
+    FT_Pointer  data;\r
+\r
+  } FT_Parameter;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_Open_Args                                                       */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A structure used to indicate how to open a new font file or        */\r
+  /*    stream.  A pointer to such a structure can be used as a parameter  */\r
+  /*    for the functions @FT_Open_Face and @FT_Attach_Stream.             */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    flags       :: A set of bit flags indicating how to use the        */\r
+  /*                   structure.                                          */\r
+  /*                                                                       */\r
+  /*    memory_base :: The first byte of the file in memory.               */\r
+  /*                                                                       */\r
+  /*    memory_size :: The size in bytes of the file in memory.            */\r
+  /*                                                                       */\r
+  /*    pathname    :: A pointer to an 8-bit file pathname.                */\r
+  /*                                                                       */\r
+  /*    stream      :: A handle to a source stream object.                 */\r
+  /*                                                                       */\r
+  /*    driver      :: This field is exclusively used by @FT_Open_Face;    */\r
+  /*                   it simply specifies the font driver to use to open  */\r
+  /*                   the face.  If set to 0, FreeType tries to load the  */\r
+  /*                   face with each one of the drivers in its list.      */\r
+  /*                                                                       */\r
+  /*    num_params  :: The number of extra parameters.                     */\r
+  /*                                                                       */\r
+  /*    params      :: Extra parameters passed to the font driver when     */\r
+  /*                   opening a new face.                                 */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The stream type is determined by the contents of `flags' which     */\r
+  /*    are tested in the following order by @FT_Open_Face:                */\r
+  /*                                                                       */\r
+  /*    If the `FT_OPEN_MEMORY' bit is set, assume that this is a          */\r
+  /*    memory file of `memory_size' bytes, located at `memory_address'.   */\r
+  /*    The data are are not copied, and the client is responsible for     */\r
+  /*    releasing and destroying them _after_ the corresponding call to    */\r
+  /*    @FT_Done_Face.                                                     */\r
+  /*                                                                       */\r
+  /*    Otherwise, if the `FT_OPEN_STREAM' bit is set, assume that a       */\r
+  /*    custom input stream `stream' is used.                              */\r
+  /*                                                                       */\r
+  /*    Otherwise, if the `FT_OPEN_PATHNAME' bit is set, assume that this  */\r
+  /*    is a normal file and use `pathname' to open it.                    */\r
+  /*                                                                       */\r
+  /*    If the `FT_OPEN_DRIVER' bit is set, @FT_Open_Face only tries to    */\r
+  /*    open the file with the driver whose handler is in `driver'.        */\r
+  /*                                                                       */\r
+  /*    If the `FT_OPEN_PARAMS' bit is set, the parameters given by        */\r
+  /*    `num_params' and `params' is used.  They are ignored otherwise.    */\r
+  /*                                                                       */\r
+  /*    Ideally, both the `pathname' and `params' fields should be tagged  */\r
+  /*    as `const'; this is missing for API backwards compatibility.  With */\r
+  /*    other words, applications should treat them as read-only.          */\r
+  /*                                                                       */\r
+  typedef struct  FT_Open_Args_\r
+  {\r
+    FT_UInt         flags;\r
+    const FT_Byte*  memory_base;\r
+    FT_Long         memory_size;\r
+    FT_String*      pathname;\r
+    FT_Stream       stream;\r
+    FT_Module       driver;\r
+    FT_Int          num_params;\r
+    FT_Parameter*   params;\r
+\r
+  } FT_Open_Args;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_New_Face                                                        */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This function calls @FT_Open_Face to open a font by its pathname.  */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    library    :: A handle to the library resource.                    */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    pathname   :: A path to the font file.                             */\r
+  /*                                                                       */\r
+  /*    face_index :: The index of the face within the font.  The first    */\r
+  /*                  face has index 0.                                    */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    aface      :: A handle to a new face object.  If `face_index' is   */\r
+  /*                  greater than or equal to zero, it must be non-NULL.  */\r
+  /*                  See @FT_Open_Face for more details.                  */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_New_Face( FT_Library   library,\r
+               const char*  filepathname,\r
+               FT_Long      face_index,\r
+               FT_Face     *aface );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_New_Memory_Face                                                 */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This function calls @FT_Open_Face to open a font which has been    */\r
+  /*    loaded into memory.                                                */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    library    :: A handle to the library resource.                    */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    file_base  :: A pointer to the beginning of the font data.         */\r
+  /*                                                                       */\r
+  /*    file_size  :: The size of the memory chunk used by the font data.  */\r
+  /*                                                                       */\r
+  /*    face_index :: The index of the face within the font.  The first    */\r
+  /*                  face has index 0.                                    */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    aface      :: A handle to a new face object.  If `face_index' is   */\r
+  /*                  greater than or equal to zero, it must be non-NULL.  */\r
+  /*                  See @FT_Open_Face for more details.                  */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    You must not deallocate the memory before calling @FT_Done_Face.   */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_New_Memory_Face( FT_Library      library,\r
+                      const FT_Byte*  file_base,\r
+                      FT_Long         file_size,\r
+                      FT_Long         face_index,\r
+                      FT_Face        *aface );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Open_Face                                                       */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Create a face object from a given resource described by            */\r
+  /*    @FT_Open_Args.                                                     */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    library    :: A handle to the library resource.                    */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    args       :: A pointer to an `FT_Open_Args' structure which must  */\r
+  /*                  be filled by the caller.                             */\r
+  /*                                                                       */\r
+  /*    face_index :: The index of the face within the font.  The first    */\r
+  /*                  face has index 0.                                    */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    aface      :: A handle to a new face object.  If `face_index' is   */\r
+  /*                  greater than or equal to zero, it must be non-NULL.  */\r
+  /*                  See note below.                                      */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Unlike FreeType 1.x, this function automatically creates a glyph   */\r
+  /*    slot for the face object which can be accessed directly through    */\r
+  /*    `face->glyph'.                                                     */\r
+  /*                                                                       */\r
+  /*    FT_Open_Face can be used to quickly check whether the font         */\r
+  /*    format of a given font resource is supported by FreeType.  If the  */\r
+  /*    `face_index' field is negative, the function's return value is 0   */\r
+  /*    if the font format is recognized, or non-zero otherwise;           */\r
+  /*    the function returns a more or less empty face handle in `*aface'  */\r
+  /*    (if `aface' isn't NULL).  The only useful field in this special    */\r
+  /*    case is `face->num_faces' which gives the number of faces within   */\r
+  /*    the font file.  After examination, the returned @FT_Face structure */\r
+  /*    should be deallocated with a call to @FT_Done_Face.                */\r
+  /*                                                                       */\r
+  /*    Each new face object created with this function also owns a        */\r
+  /*    default @FT_Size object, accessible as `face->size'.               */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Open_Face( FT_Library           library,\r
+                const FT_Open_Args*  args,\r
+                FT_Long              face_index,\r
+                FT_Face             *aface );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Attach_File                                                     */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This function calls @FT_Attach_Stream to attach a file.            */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face         :: The target face object.                            */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    filepathname :: The pathname.                                      */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Attach_File( FT_Face      face,\r
+                  const char*  filepathname );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Attach_Stream                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    `Attach' data to a face object.  Normally, this is used to read    */\r
+  /*    additional information for the face object.  For example, you can  */\r
+  /*    attach an AFM file that comes with a Type 1 font to get the        */\r
+  /*    kerning values and other metrics.                                  */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face       :: The target face object.                              */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    parameters :: A pointer to @FT_Open_Args which must be filled by   */\r
+  /*                  the caller.                                          */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The meaning of the `attach' (i.e., what really happens when the    */\r
+  /*    new file is read) is not fixed by FreeType itself.  It really      */\r
+  /*    depends on the font format (and thus the font driver).             */\r
+  /*                                                                       */\r
+  /*    Client applications are expected to know what they are doing       */\r
+  /*    when invoking this function.  Most drivers simply do not implement */\r
+  /*    file attachments.                                                  */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Attach_Stream( FT_Face        face,\r
+                    FT_Open_Args*  parameters );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Done_Face                                                       */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Discard a given face object, as well as all of its child slots and */\r
+  /*    sizes.                                                             */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face :: A handle to a target face object.                          */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Done_Face( FT_Face  face );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Select_Size                                                     */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Select a bitmap strike.                                            */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face         :: A handle to a target face object.                  */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    strike_index :: The index of the bitmap strike in the              */\r
+  /*                    `available_sizes' field of @FT_FaceRec structure.  */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Select_Size( FT_Face  face,\r
+                  FT_Int   strike_index );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Enum>                                                                */\r
+  /*    FT_Size_Request_Type                                               */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    An enumeration type that lists the supported size request types.   */\r
+  /*                                                                       */\r
+  /* <Values>                                                              */\r
+  /*    FT_SIZE_REQUEST_TYPE_NOMINAL ::                                    */\r
+  /*      The nominal size.  The `units_per_EM' field of @FT_FaceRec is    */\r
+  /*      used to determine both scaling values.                           */\r
+  /*                                                                       */\r
+  /*    FT_SIZE_REQUEST_TYPE_REAL_DIM ::                                   */\r
+  /*      The real dimension.  The sum of the the `Ascender' and (minus    */\r
+  /*      of) the `Descender' fields of @FT_FaceRec are used to determine  */\r
+  /*      both scaling values.                                             */\r
+  /*                                                                       */\r
+  /*    FT_SIZE_REQUEST_TYPE_BBOX ::                                       */\r
+  /*      The font bounding box.  The width and height of the `bbox' field */\r
+  /*      of @FT_FaceRec are used to determine the horizontal and vertical */\r
+  /*      scaling value, respectively.                                     */\r
+  /*                                                                       */\r
+  /*    FT_SIZE_REQUEST_TYPE_CELL ::                                       */\r
+  /*      The `max_advance_width' field of @FT_FaceRec is used to          */\r
+  /*      determine the horizontal scaling value; the vertical scaling     */\r
+  /*      value is determined the same way as                              */\r
+  /*      @FT_SIZE_REQUEST_TYPE_REAL_DIM does.  Finally, both scaling      */\r
+  /*      values are set to the smaller one.  This type is useful if you   */\r
+  /*      want to specify the font size for, say, a window of a given      */\r
+  /*      dimension and 80x24 cells.                                       */\r
+  /*                                                                       */\r
+  /*    FT_SIZE_REQUEST_TYPE_SCALES ::                                     */\r
+  /*      Specify the scaling values directly.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The above descriptions only apply to scalable formats.  For bitmap */\r
+  /*    formats, the behaviour is up to the driver.                        */\r
+  /*                                                                       */\r
+  /*    See the note section of @FT_Size_Metrics if you wonder how size    */\r
+  /*    requesting relates to scaling values.                              */\r
+  /*                                                                       */\r
+  typedef enum  FT_Size_Request_Type_\r
+  {\r
+    FT_SIZE_REQUEST_TYPE_NOMINAL,\r
+    FT_SIZE_REQUEST_TYPE_REAL_DIM,\r
+    FT_SIZE_REQUEST_TYPE_BBOX,\r
+    FT_SIZE_REQUEST_TYPE_CELL,\r
+    FT_SIZE_REQUEST_TYPE_SCALES,\r
+\r
+    FT_SIZE_REQUEST_TYPE_MAX\r
+\r
+  } FT_Size_Request_Type;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    FT_Size_RequestRec                                                 */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A structure used to model a size request.                          */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    type           :: See @FT_Size_Request_Type.                       */\r
+  /*                                                                       */\r
+  /*    width          :: The desired width.                               */\r
+  /*                                                                       */\r
+  /*    height         :: The desired height.                              */\r
+  /*                                                                       */\r
+  /*    horiResolution :: The horizontal resolution.  If set to zero,      */\r
+  /*                      `width' is treated as a 26.6 fractional pixel    */\r
+  /*                      value.                                           */\r
+  /*                                                                       */\r
+  /*    vertResolution :: The vertical resolution.  If set to zero,        */\r
+  /*                      `height' is treated as a 26.6 fractional pixel   */\r
+  /*                      value.                                           */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    If `width' is zero, then the horizontal scaling value is set      */\r
+  /*    equal to the vertical scaling value, and vice versa.               */\r
+  /*                                                                       */\r
+  typedef struct  FT_Size_RequestRec_\r
+  {\r
+    FT_Size_Request_Type  type;\r
+    FT_Long               width;\r
+    FT_Long               height;\r
+    FT_UInt               horiResolution;\r
+    FT_UInt               vertResolution;\r
+\r
+  } FT_Size_RequestRec, *FT_Size_Request;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Request_Size                                                    */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Resize the scale of the active @FT_Size object in a face.          */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face :: A handle to a target face object.                          */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    req  :: A pointer to a @FT_Size_RequestRec.                        */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Although drivers may select the bitmap strike matching the         */\r
+  /*    request, you should not rely on this if you intend to select a     */\r
+  /*    particular bitmap strike.  Use @FT_Select_Size instead in that     */\r
+  /*    case.                                                              */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Request_Size( FT_Face          face,\r
+                   FT_Size_Request  req );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Set_Char_Size                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This function calls @FT_Request_Size to request the nominal size   */\r
+  /*    (in points).                                                       */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face            :: A handle to a target face object.               */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    char_width      :: The nominal width, in 26.6 fractional points.   */\r
+  /*                                                                       */\r
+  /*    char_height     :: The nominal height, in 26.6 fractional points.  */\r
+  /*                                                                       */\r
+  /*    horz_resolution :: The horizontal resolution in dpi.               */\r
+  /*                                                                       */\r
+  /*    vert_resolution :: The vertical resolution in dpi.                 */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    If either the character width or height is zero, it is set equal   */\r
+  /*    to the other value.                                                */\r
+  /*                                                                       */\r
+  /*    If either the horizontal or vertical resolution is zero, it is set */\r
+  /*    equal to the other value.                                          */\r
+  /*                                                                       */\r
+  /*    A character width or height smaller than 1pt is set to 1pt; if     */\r
+  /*    both resolution values are zero, they are set to 72dpi.            */\r
+  /*                                                                       */\r
+\r
+  FT_EXPORT( FT_Error )\r
+  FT_Set_Char_Size( FT_Face     face,\r
+                    FT_F26Dot6  char_width,\r
+                    FT_F26Dot6  char_height,\r
+                    FT_UInt     horz_resolution,\r
+                    FT_UInt     vert_resolution );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Set_Pixel_Sizes                                                 */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This function calls @FT_Request_Size to request the nominal size   */\r
+  /*    (in pixels).                                                       */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face         :: A handle to the target face object.                */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    pixel_width  :: The nominal width, in pixels.                      */\r
+  /*                                                                       */\r
+  /*    pixel_height :: The nominal height, in pixels.                     */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Set_Pixel_Sizes( FT_Face  face,\r
+                      FT_UInt  pixel_width,\r
+                      FT_UInt  pixel_height );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Load_Glyph                                                      */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A function used to load a single glyph into the glyph slot of a    */\r
+  /*    face object.                                                       */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face        :: A handle to the target face object where the glyph  */\r
+  /*                   is loaded.                                          */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    glyph_index :: The index of the glyph in the font file.  For       */\r
+  /*                   CID-keyed fonts (either in PS or in CFF format)     */\r
+  /*                   this argument specifies the CID value.              */\r
+  /*                                                                       */\r
+  /*    load_flags  :: A flag indicating what to load for this glyph.  The */\r
+  /*                   @FT_LOAD_XXX constants can be used to control the   */\r
+  /*                   glyph loading process (e.g., whether the outline    */\r
+  /*                   should be scaled, whether to load bitmaps or not,   */\r
+  /*                   whether to hint the outline, etc).                  */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The loaded glyph may be transformed.  See @FT_Set_Transform for    */\r
+  /*    the details.                                                       */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Load_Glyph( FT_Face   face,\r
+                 FT_UInt   glyph_index,\r
+                 FT_Int32  load_flags );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Load_Char                                                       */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A function used to load a single glyph into the glyph slot of a    */\r
+  /*    face object, according to its character code.                      */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face        :: A handle to a target face object where the glyph    */\r
+  /*                   is loaded.                                          */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    char_code   :: The glyph's character code, according to the        */\r
+  /*                   current charmap used in the face.                   */\r
+  /*                                                                       */\r
+  /*    load_flags  :: A flag indicating what to load for this glyph.  The */\r
+  /*                   @FT_LOAD_XXX constants can be used to control the   */\r
+  /*                   glyph loading process (e.g., whether the outline    */\r
+  /*                   should be scaled, whether to load bitmaps or not,   */\r
+  /*                   whether to hint the outline, etc).                  */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    This function simply calls @FT_Get_Char_Index and @FT_Load_Glyph.  */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Load_Char( FT_Face   face,\r
+                FT_ULong  char_code,\r
+                FT_Int32  load_flags );\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @enum:\r
+   *   FT_LOAD_XXX\r
+   *\r
+   * @description:\r
+   *   A list of bit-field constants used with @FT_Load_Glyph to indicate\r
+   *   what kind of operations to perform during glyph loading.\r
+   *\r
+   * @values:\r
+   *   FT_LOAD_DEFAULT ::\r
+   *     Corresponding to 0, this value is used as the default glyph load\r
+   *     operation.  In this case, the following happens:\r
+   *\r
+   *     1. FreeType looks for a bitmap for the glyph corresponding to the\r
+   *        face's current size.  If one is found, the function returns.\r
+   *        The bitmap data can be accessed from the glyph slot (see note\r
+   *        below).\r
+   *\r
+   *     2. If no embedded bitmap is searched or found, FreeType looks for a\r
+   *        scalable outline.  If one is found, it is loaded from the font\r
+   *        file, scaled to device pixels, then `hinted' to the pixel grid\r
+   *        in order to optimize it.  The outline data can be accessed from\r
+   *        the glyph slot (see note below).\r
+   *\r
+   *     Note that by default, the glyph loader doesn't render outlines into\r
+   *     bitmaps.  The following flags are used to modify this default\r
+   *     behaviour to more specific and useful cases.\r
+   *\r
+   *   FT_LOAD_NO_SCALE ::\r
+   *     Don't scale the outline glyph loaded, but keep it in font units.\r
+   *\r
+   *     This flag implies @FT_LOAD_NO_HINTING and @FT_LOAD_NO_BITMAP, and\r
+   *     unsets @FT_LOAD_RENDER.\r
+   *\r
+   *   FT_LOAD_NO_HINTING ::\r
+   *     Disable hinting.  This generally generates `blurrier' bitmap glyph\r
+   *     when the glyph is rendered in any of the anti-aliased modes.  See\r
+   *     also the note below.\r
+   *\r
+   *     This flag is implied by @FT_LOAD_NO_SCALE.\r
+   *\r
+   *   FT_LOAD_RENDER ::\r
+   *     Call @FT_Render_Glyph after the glyph is loaded.  By default, the\r
+   *     glyph is rendered in @FT_RENDER_MODE_NORMAL mode.  This can be\r
+   *     overridden by @FT_LOAD_TARGET_XXX or @FT_LOAD_MONOCHROME.\r
+   *\r
+   *     This flag is unset by @FT_LOAD_NO_SCALE.\r
+   *\r
+   *   FT_LOAD_NO_BITMAP ::\r
+   *     Ignore bitmap strikes when loading.  Bitmap-only fonts ignore this\r
+   *     flag.\r
+   *\r
+   *     @FT_LOAD_NO_SCALE always sets this flag.\r
+   *\r
+   *   FT_LOAD_VERTICAL_LAYOUT ::\r
+   *     Load the glyph for vertical text layout.  _Don't_ use it as it is\r
+   *     problematic currently.\r
+   *\r
+   *   FT_LOAD_FORCE_AUTOHINT ::\r
+   *     Indicates that the auto-hinter is preferred over the font's native\r
+   *     hinter.  See also the note below.\r
+   *\r
+   *   FT_LOAD_CROP_BITMAP ::\r
+   *     Indicates that the font driver should crop the loaded bitmap glyph\r
+   *     (i.e., remove all space around its black bits).  Not all drivers\r
+   *     implement this.\r
+   *\r
+   *   FT_LOAD_PEDANTIC ::\r
+   *     Indicates that the font driver should perform pedantic verifications\r
+   *     during glyph loading.  This is mostly used to detect broken glyphs\r
+   *     in fonts.  By default, FreeType tries to handle broken fonts also.\r
+   *\r
+   *   FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ::\r
+   *     Indicates that the font driver should ignore the global advance\r
+   *     width defined in the font.  By default, that value is used as the\r
+   *     advance width for all glyphs when the face has\r
+   *     @FT_FACE_FLAG_FIXED_WIDTH set.\r
+   *\r
+   *     This flag exists for historical reasons (to support buggy CJK\r
+   *     fonts).\r
+   *\r
+   *   FT_LOAD_NO_RECURSE ::\r
+   *     This flag is only used internally.  It merely indicates that the\r
+   *     font driver should not load composite glyphs recursively.  Instead,\r
+   *     it should set the `num_subglyph' and `subglyphs' values of the\r
+   *     glyph slot accordingly, and set `glyph->format' to\r
+   *     @FT_GLYPH_FORMAT_COMPOSITE.\r
+   *\r
+   *     The description of sub-glyphs is not available to client\r
+   *     applications for now.\r
+   *\r
+   *     This flag implies @FT_LOAD_NO_SCALE and @FT_LOAD_IGNORE_TRANSFORM.\r
+   *\r
+   *   FT_LOAD_IGNORE_TRANSFORM ::\r
+   *     Indicates that the transform matrix set by @FT_Set_Transform should\r
+   *     be ignored.\r
+   *\r
+   *   FT_LOAD_MONOCHROME ::\r
+   *     This flag is used with @FT_LOAD_RENDER to indicate that you want to\r
+   *     render an outline glyph to a 1-bit monochrome bitmap glyph, with\r
+   *     8 pixels packed into each byte of the bitmap data.\r
+   *\r
+   *     Note that this has no effect on the hinting algorithm used.  You\r
+   *     should use @FT_LOAD_TARGET_MONO instead so that the\r
+   *     monochrome-optimized hinting algorithm is used.\r
+   *\r
+   *   FT_LOAD_LINEAR_DESIGN ::\r
+   *     Indicates that the `linearHoriAdvance' and `linearVertAdvance'\r
+   *     fields of @FT_GlyphSlotRec should be kept in font units.  See\r
+   *     @FT_GlyphSlotRec for details.\r
+   *\r
+   *   FT_LOAD_NO_AUTOHINT ::\r
+   *     Disable auto-hinter.  See also the note below.\r
+   *\r
+   * @note:\r
+   *   By default, hinting is enabled and the font's native hinter (see\r
+   *   @FT_FACE_FLAG_HINTER) is preferred over the auto-hinter.  You can\r
+   *   disable hinting by setting @FT_LOAD_NO_HINTING or change the\r
+   *   precedence by setting @FT_LOAD_FORCE_AUTOHINT.  You can also set\r
+   *   @FT_LOAD_NO_AUTOHINT in case you don't want the auto-hinter to be\r
+   *   used at all.\r
+   *\r
+   *   Besides deciding which hinter to use, you can also decide which\r
+   *   hinting algorithm to use.  See @FT_LOAD_TARGET_XXX for details.\r
+   */\r
+#define FT_LOAD_DEFAULT                      0x0\r
+#define FT_LOAD_NO_SCALE                     0x1\r
+#define FT_LOAD_NO_HINTING                   0x2\r
+#define FT_LOAD_RENDER                       0x4\r
+#define FT_LOAD_NO_BITMAP                    0x8\r
+#define FT_LOAD_VERTICAL_LAYOUT              0x10\r
+#define FT_LOAD_FORCE_AUTOHINT               0x20\r
+#define FT_LOAD_CROP_BITMAP                  0x40\r
+#define FT_LOAD_PEDANTIC                     0x80\r
+#define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH  0x200\r
+#define FT_LOAD_NO_RECURSE                   0x400\r
+#define FT_LOAD_IGNORE_TRANSFORM             0x800\r
+#define FT_LOAD_MONOCHROME                   0x1000\r
+#define FT_LOAD_LINEAR_DESIGN                0x2000\r
+\r
+  /* temporary hack! */\r
+#define FT_LOAD_SBITS_ONLY                   0x4000\r
+#define FT_LOAD_NO_AUTOHINT                  0x8000U\r
+\r
+  /* */\r
+\r
+\r
+  /**************************************************************************\r
+   *\r
+   * @enum:\r
+   *   FT_LOAD_TARGET_XXX\r
+   *\r
+   * @description:\r
+   *   A list of values that are used to select a specific hinting algorithm\r
+   *   to use by the hinter.  You should OR one of these values to your\r
+   *   `load_flags' when calling @FT_Load_Glyph.\r
+   *\r
+   *   Note that font's native hinters may ignore the hinting algorithm you\r
+   *   have specified (e.g., the TrueType bytecode interpreter).  You can set\r
+   *   @FT_LOAD_FORCE_AUTOHINT to ensure that the auto-hinter is used.\r
+   *\r
+   *   Also note that @FT_LOAD_TARGET_LIGHT is an exception, in that it\r
+   *   always implies @FT_LOAD_FORCE_AUTOHINT.\r
+   *\r
+   * @values:\r
+   *   FT_LOAD_TARGET_NORMAL ::\r
+   *     This corresponds to the default hinting algorithm, optimized for\r
+   *     standard gray-level rendering.  For monochrome output, use\r
+   *     @FT_LOAD_TARGET_MONO instead.\r
+   *\r
+   *   FT_LOAD_TARGET_LIGHT ::\r
+   *     A lighter hinting algorithm for non-monochrome modes.  Many\r
+   *     generated glyphs are more fuzzy but better resemble its original\r
+   *     shape.  A bit like rendering on Mac OS X.\r
+   *\r
+   *     As a special exception, this target implies @FT_LOAD_FORCE_AUTOHINT.\r
+   *\r
+   *   FT_LOAD_TARGET_MONO ::\r
+   *     Strong hinting algorithm that should only be used for monochrome\r
+   *     output.  The result is probably unpleasant if the glyph is rendered\r
+   *     in non-monochrome modes.\r
+   *\r
+   *   FT_LOAD_TARGET_LCD ::\r
+   *     A variant of @FT_LOAD_TARGET_NORMAL optimized for horizontally\r
+   *     decimated LCD displays.\r
+   *\r
+   *   FT_LOAD_TARGET_LCD_V ::\r
+   *     A variant of @FT_LOAD_TARGET_NORMAL optimized for vertically\r
+   *     decimated LCD displays.\r
+   *\r
+   * @note:\r
+   *   You should use only _one_ of the FT_LOAD_TARGET_XXX values in your\r
+   *   `load_flags'.  They can't be ORed.\r
+   *\r
+   *   If @FT_LOAD_RENDER is also set, the glyph is rendered in the\r
+   *   corresponding mode (i.e., the mode which matches the used algorithm\r
+   *   best) unless @FT_LOAD_MONOCHROME is set.\r
+   *\r
+   *   You can use a hinting algorithm that doesn't correspond to the same\r
+   *   rendering mode.  As an example, it is possible to use the `light'\r
+   *   hinting algorithm and have the results rendered in horizontal LCD\r
+   *   pixel mode, with code like\r
+   *\r
+   *     {\r
+   *       FT_Load_Glyph( face, glyph_index,\r
+   *                      load_flags | FT_LOAD_TARGET_LIGHT );\r
+   *\r
+   *       FT_Render_Glyph( face->glyph, FT_RENDER_MODE_LCD );\r
+   *     }\r
+   */\r
+\r
+#define FT_LOAD_TARGET_( x )      ( (FT_Int32)( (x) & 15 ) << 16 )\r
+\r
+#define FT_LOAD_TARGET_NORMAL     FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL )\r
+#define FT_LOAD_TARGET_LIGHT      FT_LOAD_TARGET_( FT_RENDER_MODE_LIGHT  )\r
+#define FT_LOAD_TARGET_MONO       FT_LOAD_TARGET_( FT_RENDER_MODE_MONO   )\r
+#define FT_LOAD_TARGET_LCD        FT_LOAD_TARGET_( FT_RENDER_MODE_LCD    )\r
+#define FT_LOAD_TARGET_LCD_V      FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V  )\r
+\r
+\r
+  /*\r
+   * @macro:\r
+   *   FT_LOAD_TARGET_MODE\r
+   *\r
+   * @description:\r
+   *   Return the @FT_Render_Mode corresponding to a given\r
+   *   @FT_LOAD_TARGET_XXX value.\r
+   */\r
+\r
+#define FT_LOAD_TARGET_MODE( x )  ( (FT_Render_Mode)( ( (x) >> 16 ) & 15 ) )\r
+\r
+  /* */\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Set_Transform                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A function used to set the transformation that is applied to glyph */\r
+  /*    images when they are loaded into a glyph slot through              */\r
+  /*    @FT_Load_Glyph.                                                    */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face   :: A handle to the source face object.                      */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    matrix :: A pointer to the transformation's 2x2 matrix.  Use 0 for */\r
+  /*              the identity matrix.                                     */\r
+  /*    delta  :: A pointer to the translation vector.  Use 0 for the null */\r
+  /*              vector.                                                  */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The transformation is only applied to scalable image formats after */\r
+  /*    the glyph has been loaded.  It means that hinting is unaltered by  */\r
+  /*    the transformation and is performed on the character size given in */\r
+  /*    the last call to @FT_Set_Char_Size or @FT_Set_Pixel_Sizes.         */\r
+  /*                                                                       */\r
+  /*    Note that this also transforms the `face.glyph.advance' field, but */\r
+  /*    *not* the values in `face.glyph.metrics'.                          */\r
+  /*                                                                       */\r
+  FT_EXPORT( void )\r
+  FT_Set_Transform( FT_Face     face,\r
+                    FT_Matrix*  matrix,\r
+                    FT_Vector*  delta );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Enum>                                                                */\r
+  /*    FT_Render_Mode                                                     */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    An enumeration type that lists the render modes supported by       */\r
+  /*    FreeType 2.  Each mode corresponds to a specific type of scanline  */\r
+  /*    conversion performed on the outline.                               */\r
+  /*                                                                       */\r
+  /*    For bitmap fonts the `bitmap->pixel_mode' field in the             */\r
+  /*    @FT_GlyphSlotRec structure gives the format of the returned        */\r
+  /*    bitmap.                                                            */\r
+  /*                                                                       */\r
+  /* <Values>                                                              */\r
+  /*    FT_RENDER_MODE_NORMAL ::                                           */\r
+  /*      This is the default render mode; it corresponds to 8-bit         */\r
+  /*      anti-aliased bitmaps, using 256 levels of opacity.               */\r
+  /*                                                                       */\r
+  /*    FT_RENDER_MODE_LIGHT ::                                            */\r
+  /*      This is equivalent to @FT_RENDER_MODE_NORMAL.  It is only        */\r
+  /*      defined as a separate value because render modes are also used   */\r
+  /*      indirectly to define hinting algorithm selectors.  See           */\r
+  /*      @FT_LOAD_TARGET_XXX for details.                                 */\r
+  /*                                                                       */\r
+  /*    FT_RENDER_MODE_MONO ::                                             */\r
+  /*      This mode corresponds to 1-bit bitmaps.                          */\r
+  /*                                                                       */\r
+  /*    FT_RENDER_MODE_LCD ::                                              */\r
+  /*      This mode corresponds to horizontal RGB and BGR sub-pixel        */\r
+  /*      displays, like LCD-screens.  It produces 8-bit bitmaps that are  */\r
+  /*      3 times the width of the original glyph outline in pixels, and   */\r
+  /*      which use the @FT_PIXEL_MODE_LCD mode.                           */\r
+  /*                                                                       */\r
+  /*    FT_RENDER_MODE_LCD_V ::                                            */\r
+  /*      This mode corresponds to vertical RGB and BGR sub-pixel displays */\r
+  /*      (like PDA screens, rotated LCD displays, etc.).  It produces     */\r
+  /*      8-bit bitmaps that are 3 times the height of the original        */\r
+  /*      glyph outline in pixels and use the @FT_PIXEL_MODE_LCD_V mode.   */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*   The LCD-optimized glyph bitmaps produced by FT_Render_Glyph are     */\r
+  /*   _not_ _filtered_ to reduce color-fringes.  It is up to the caller   */\r
+  /*   to perform this pass.                                               */\r
+  /*                                                                       */\r
+  typedef enum  FT_Render_Mode_\r
+  {\r
+    FT_RENDER_MODE_NORMAL = 0,\r
+    FT_RENDER_MODE_LIGHT,\r
+    FT_RENDER_MODE_MONO,\r
+    FT_RENDER_MODE_LCD,\r
+    FT_RENDER_MODE_LCD_V,\r
+\r
+    FT_RENDER_MODE_MAX\r
+\r
+  } FT_Render_Mode;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Enum>                                                                */\r
+  /*    ft_render_mode_xxx                                                 */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    These constants are deprecated.  Use the corresponding             */\r
+  /*    @FT_Render_Mode values instead.                                    */\r
+  /*                                                                       */\r
+  /* <Values>                                                              */\r
+  /*   ft_render_mode_normal :: see @FT_RENDER_MODE_NORMAL                 */\r
+  /*   ft_render_mode_mono   :: see @FT_RENDER_MODE_MONO                   */\r
+  /*                                                                       */\r
+#define ft_render_mode_normal  FT_RENDER_MODE_NORMAL\r
+#define ft_render_mode_mono    FT_RENDER_MODE_MONO\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Render_Glyph                                                    */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Convert a given glyph image to a bitmap.  It does so by inspecting */\r
+  /*    the glyph image format, finding the relevant renderer, and         */\r
+  /*    invoking it.                                                       */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    slot        :: A handle to the glyph slot containing the image to  */\r
+  /*                   convert.                                            */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    render_mode :: This is the render mode used to render the glyph    */\r
+  /*                   image into a bitmap.  See @FT_Render_Mode for a     */\r
+  /*                   list of possible values.                            */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Render_Glyph( FT_GlyphSlot    slot,\r
+                   FT_Render_Mode  render_mode );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Enum>                                                                */\r
+  /*    FT_Kerning_Mode                                                    */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    An enumeration used to specify which kerning values to return in   */\r
+  /*    @FT_Get_Kerning.                                                   */\r
+  /*                                                                       */\r
+  /* <Values>                                                              */\r
+  /*    FT_KERNING_DEFAULT  :: Return scaled and grid-fitted kerning       */\r
+  /*                           distances (value is 0).                     */\r
+  /*                                                                       */\r
+  /*    FT_KERNING_UNFITTED :: Return scaled but un-grid-fitted kerning    */\r
+  /*                           distances.                                  */\r
+  /*                                                                       */\r
+  /*    FT_KERNING_UNSCALED :: Return the kerning vector in original font  */\r
+  /*                           units.                                      */\r
+  /*                                                                       */\r
+  typedef enum  FT_Kerning_Mode_\r
+  {\r
+    FT_KERNING_DEFAULT  = 0,\r
+    FT_KERNING_UNFITTED,\r
+    FT_KERNING_UNSCALED\r
+\r
+  } FT_Kerning_Mode;\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Const>                                                               */\r
+  /*    ft_kerning_default                                                 */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This constant is deprecated.  Please use @FT_KERNING_DEFAULT       */\r
+  /*    instead.                                                           */\r
+  /*                                                                       */\r
+#define ft_kerning_default   FT_KERNING_DEFAULT\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Const>                                                               */\r
+  /*    ft_kerning_unfitted                                                */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This constant is deprecated.  Please use @FT_KERNING_UNFITTED      */\r
+  /*    instead.                                                           */\r
+  /*                                                                       */\r
+#define ft_kerning_unfitted  FT_KERNING_UNFITTED\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Const>                                                               */\r
+  /*    ft_kerning_unscaled                                                */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This constant is deprecated.  Please use @FT_KERNING_UNSCALED      */\r
+  /*    instead.                                                           */\r
+  /*                                                                       */\r
+#define ft_kerning_unscaled  FT_KERNING_UNSCALED\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Get_Kerning                                                     */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Return the kerning vector between two glyphs of a same face.       */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face        :: A handle to a source face object.                   */\r
+  /*                                                                       */\r
+  /*    left_glyph  :: The index of the left glyph in the kern pair.       */\r
+  /*                                                                       */\r
+  /*    right_glyph :: The index of the right glyph in the kern pair.      */\r
+  /*                                                                       */\r
+  /*    kern_mode   :: See @FT_Kerning_Mode for more information.          */\r
+  /*                   Determines the scale and dimension of the returned  */\r
+  /*                   kerning vector.                                     */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    akerning    :: The kerning vector.  This is either in font units   */\r
+  /*                   or in pixels (26.6 format) for scalable formats,    */\r
+  /*                   and in pixels for fixed-sizes formats.              */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    Only horizontal layouts (left-to-right & right-to-left) are        */\r
+  /*    supported by this method.  Other layouts, or more sophisticated    */\r
+  /*    kernings, are out of the scope of this API function -- they can be */\r
+  /*    implemented through format-specific interfaces.                    */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Get_Kerning( FT_Face     face,\r
+                  FT_UInt     left_glyph,\r
+                  FT_UInt     right_glyph,\r
+                  FT_UInt     kern_mode,\r
+                  FT_Vector  *akerning );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Get_Track_Kerning                                               */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Return the track kerning for a given face object at a given size.  */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face        :: A handle to a source face object.                   */\r
+  /*                                                                       */\r
+  /*    point_size  :: The point size in 16.16 fractional points.          */\r
+  /*                                                                       */\r
+  /*    degree      :: The degree of tightness.                            */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    akerning    :: The kerning in 16.16 fractional points.             */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Get_Track_Kerning( FT_Face    face,\r
+                        FT_Fixed   point_size,\r
+                        FT_Int     degree,\r
+                        FT_Fixed*  akerning );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Get_Glyph_Name                                                  */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Retrieve the ASCII name of a given glyph in a face.  This only     */\r
+  /*    works for those faces where @FT_HAS_GLYPH_NAMES(face) returns 1.   */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face        :: A handle to a source face object.                   */\r
+  /*                                                                       */\r
+  /*    glyph_index :: The glyph index.                                    */\r
+  /*                                                                       */\r
+  /*    buffer_max  :: The maximal number of bytes available in the        */\r
+  /*                   buffer.                                             */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    buffer      :: A pointer to a target buffer where the name is      */\r
+  /*                   copied to.                                          */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    An error is returned if the face doesn't provide glyph names or if */\r
+  /*    the glyph index is invalid.  In all cases of failure, the first    */\r
+  /*    byte of `buffer' is set to 0 to indicate an empty name.            */\r
+  /*                                                                       */\r
+  /*    The glyph name is truncated to fit within the buffer if it is too  */\r
+  /*    long.  The returned string is always zero-terminated.              */\r
+  /*                                                                       */\r
+  /*    This function is not compiled within the library if the config     */\r
+  /*    macro `FT_CONFIG_OPTION_NO_GLYPH_NAMES' is defined in              */\r
+  /*    `include/freetype/config/ftoptions.h'.                             */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Get_Glyph_Name( FT_Face     face,\r
+                     FT_UInt     glyph_index,\r
+                     FT_Pointer  buffer,\r
+                     FT_UInt     buffer_max );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Get_Postscript_Name                                             */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Retrieve the ASCII Postscript name of a given face, if available.  */\r
+  /*    This only works with Postscript and TrueType fonts.                */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face :: A handle to the source face object.                        */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    A pointer to the face's Postscript name.  NULL if unavailable.     */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The returned pointer is owned by the face and is destroyed with    */\r
+  /*    it.                                                                */\r
+  /*                                                                       */\r
+  FT_EXPORT( const char* )\r
+  FT_Get_Postscript_Name( FT_Face  face );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Select_Charmap                                                  */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Select a given charmap by its encoding tag (as listed in           */\r
+  /*    `freetype.h').                                                     */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face     :: A handle to the source face object.                    */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    encoding :: A handle to the selected encoding.                     */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    This function returns an error if no charmap in the face           */\r
+  /*    corresponds to the encoding queried here.                          */\r
+  /*                                                                       */\r
+  /*    Because many fonts contain more than a single cmap for Unicode     */\r
+  /*    encoding, this function has some special code to select the one    */\r
+  /*    which covers Unicode best.  It is thus preferable to               */\r
+  /*    @FT_Set_Charmap in this case.                                      */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Select_Charmap( FT_Face      face,\r
+                     FT_Encoding  encoding );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Set_Charmap                                                     */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Select a given charmap for character code to glyph index mapping.  */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    face    :: A handle to the source face object.                     */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    charmap :: A handle to the selected charmap.                       */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    FreeType error code.  0 means success.                             */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    This function returns an error if the charmap is not part of       */\r
+  /*    the face (i.e., if it is not listed in the `face->charmaps'        */\r
+  /*    table).                                                            */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Set_Charmap( FT_Face     face,\r
+                  FT_CharMap  charmap );\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @function:\r
+   *   FT_Get_Charmap_Index\r
+   *\r
+   * @description:\r
+   *   Retrieve index of a given charmap.\r
+   *\r
+   * @input:\r
+   *   charmap ::\r
+   *     A handle to a charmap.\r
+   *\r
+   * @return:\r
+   *   The index into the array of character maps within the face to which\r
+   *   `charmap' belongs.\r
+   *\r
+   */\r
+  FT_EXPORT( FT_Int )\r
+  FT_Get_Charmap_Index( FT_CharMap  charmap );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Get_Char_Index                                                  */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Return the glyph index of a given character code.  This function   */\r
+  /*    uses a charmap object to do the mapping.                           */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face     :: A handle to the source face object.                    */\r
+  /*                                                                       */\r
+  /*    charcode :: The character code.                                    */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The glyph index.  0 means `undefined character code'.              */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    If you use FreeType to manipulate the contents of font files       */\r
+  /*    directly, be aware that the glyph index returned by this function  */\r
+  /*    doesn't always correspond to the internal indices used within      */\r
+  /*    the file.  This is done to ensure that value 0 always corresponds  */\r
+  /*    to the `missing glyph'.                                            */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_UInt )\r
+  FT_Get_Char_Index( FT_Face   face,\r
+                     FT_ULong  charcode );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Get_First_Char                                                  */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This function is used to return the first character code in the    */\r
+  /*    current charmap of a given face.  It also returns the              */\r
+  /*    corresponding glyph index.                                         */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face    :: A handle to the source face object.                     */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    agindex :: Glyph index of first character code.  0 if charmap is   */\r
+  /*               empty.                                                  */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The charmap's first character code.                                */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    You should use this function with @FT_Get_Next_Char to be able to  */\r
+  /*    parse all character codes available in a given charmap.  The code  */\r
+  /*    should look like this:                                             */\r
+  /*                                                                       */\r
+  /*    {                                                                  */\r
+  /*      FT_ULong  charcode;                                              */\r
+  /*      FT_UInt   gindex;                                                */\r
+  /*                                                                       */\r
+  /*                                                                       */\r
+  /*      charcode = FT_Get_First_Char( face, &gindex );                   */\r
+  /*      while ( gindex != 0 )                                            */\r
+  /*      {                                                                */\r
+  /*        ... do something with (charcode,gindex) pair ...               */\r
+  /*                                                                       */\r
+  /*        charcode = FT_Get_Next_Char( face, charcode, &gindex );        */\r
+  /*      }                                                                */\r
+  /*    }                                                                  */\r
+  /*                                                                       */\r
+  /*    Note that `*agindex' is set to 0 if the charmap is empty.  The     */\r
+  /*    result itself can be 0 in two cases: if the charmap is empty or    */\r
+  /*    when the value 0 is the first valid character code.                */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_ULong )\r
+  FT_Get_First_Char( FT_Face   face,\r
+                     FT_UInt  *agindex );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Get_Next_Char                                                   */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This function is used to return the next character code in the     */\r
+  /*    current charmap of a given face following the value `char_code',   */\r
+  /*    as well as the corresponding glyph index.                          */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face      :: A handle to the source face object.                   */\r
+  /*    char_code :: The starting character code.                          */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    agindex   :: Glyph index of first character code.  0 if charmap    */\r
+  /*                 is empty.                                             */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The charmap's next character code.                                 */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    You should use this function with @FT_Get_First_Char to walk       */\r
+  /*    over all character codes available in a given charmap.  See the    */\r
+  /*    note for this function for a simple code example.                  */\r
+  /*                                                                       */\r
+  /*    Note that `*agindex' is set to 0 when there are no more codes in   */\r
+  /*    the charmap.                                                       */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_ULong )\r
+  FT_Get_Next_Char( FT_Face    face,\r
+                    FT_ULong   char_code,\r
+                    FT_UInt   *agindex );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Get_Name_Index                                                  */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Return the glyph index of a given glyph name.  This function uses  */\r
+  /*    driver specific objects to do the translation.                     */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face       :: A handle to the source face object.                  */\r
+  /*                                                                       */\r
+  /*    glyph_name :: The glyph name.                                      */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The glyph index.  0 means `undefined character code'.              */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_UInt )\r
+  FT_Get_Name_Index( FT_Face     face,\r
+                     FT_String*  glyph_name );\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @macro:\r
+   *   FT_SUBGLYPH_FLAG_XXX\r
+   *\r
+   * @description:\r
+   *   A list of constants used to describe subglyphs.  Please refer to the\r
+   *   TrueType specification for the meaning of the various flags.\r
+   *\r
+   * @values:\r
+   *   FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS ::\r
+   *   FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES ::\r
+   *   FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID ::\r
+   *   FT_SUBGLYPH_FLAG_SCALE ::\r
+   *   FT_SUBGLYPH_FLAG_XY_SCALE ::\r
+   *   FT_SUBGLYPH_FLAG_2X2 ::\r
+   *   FT_SUBGLYPH_FLAG_USE_MY_METRICS ::\r
+   *\r
+   */\r
+#define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS          1\r
+#define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES      2\r
+#define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID        4\r
+#define FT_SUBGLYPH_FLAG_SCALE                   8\r
+#define FT_SUBGLYPH_FLAG_XY_SCALE             0x40\r
+#define FT_SUBGLYPH_FLAG_2X2                  0x80\r
+#define FT_SUBGLYPH_FLAG_USE_MY_METRICS      0x200\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   * @func:\r
+   *   FT_Get_SubGlyph_Info\r
+   *\r
+   * @description:\r
+   *   Retrieve a description of a given subglyph.  Only use it if\r
+   *   `glyph->format' is @FT_GLYPH_FORMAT_COMPOSITE, or an error is\r
+   *   returned.\r
+   *\r
+   * @input:\r
+   *   glyph ::\r
+   *     The source glyph slot.\r
+   *\r
+   *   sub_index ::\r
+   *     The index of subglyph.  Must be less than `glyph->num_subglyphs'.\r
+   *\r
+   * @output:\r
+   *   p_index ::\r
+   *     The glyph index of the subglyph.\r
+   *\r
+   *   p_flags ::\r
+   *     The subglyph flags, see @FT_SUBGLYPH_FLAG_XXX.\r
+   *\r
+   *   p_arg1 ::\r
+   *     The subglyph's first argument (if any).\r
+   *\r
+   *   p_arg2 ::\r
+   *     The subglyph's second argument (if any).\r
+   *\r
+   *   p_transform ::\r
+   *     The subglyph transformation (if any).\r
+   *\r
+   * @return:\r
+   *   FreeType error code.  0 means success.\r
+   *\r
+   * @note:\r
+   *   The values of `*p_arg1', `*p_arg2', and `*p_transform' must be\r
+   *   interpreted depending on the flags returned in `*p_flags'.  See the\r
+   *   TrueType specification for details.\r
+   *\r
+   */\r
+  FT_EXPORT( FT_Error )\r
+  FT_Get_SubGlyph_Info( FT_GlyphSlot  glyph,\r
+                        FT_UInt       sub_index,\r
+                        FT_Int       *p_index,\r
+                        FT_UInt      *p_flags,\r
+                        FT_Int       *p_arg1,\r
+                        FT_Int       *p_arg2,\r
+                        FT_Matrix    *p_transform );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Section>                                                             */\r
+  /*    computations                                                       */\r
+  /*                                                                       */\r
+  /* <Title>                                                               */\r
+  /*    Computations                                                       */\r
+  /*                                                                       */\r
+  /* <Abstract>                                                            */\r
+  /*    Crunching fixed numbers and vectors.                               */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    This section contains various functions used to perform            */\r
+  /*    computations on 16.16 fixed-float numbers or 2d vectors.           */\r
+  /*                                                                       */\r
+  /* <Order>                                                               */\r
+  /*    FT_MulDiv                                                          */\r
+  /*    FT_MulFix                                                          */\r
+  /*    FT_DivFix                                                          */\r
+  /*    FT_RoundFix                                                        */\r
+  /*    FT_CeilFix                                                         */\r
+  /*    FT_FloorFix                                                        */\r
+  /*    FT_Vector_Transform                                                */\r
+  /*    FT_Matrix_Multiply                                                 */\r
+  /*    FT_Matrix_Invert                                                   */\r
+  /*                                                                       */\r
+  /*************************************************************************/\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_MulDiv                                                          */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A very simple function used to perform the computation `(a*b)/c'   */\r
+  /*    with maximal accuracy (it uses a 64-bit intermediate integer       */\r
+  /*    whenever necessary).                                               */\r
+  /*                                                                       */\r
+  /*    This function isn't necessarily as fast as some processor specific */\r
+  /*    operations, but is at least completely portable.                   */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    a :: The first multiplier.                                         */\r
+  /*    b :: The second multiplier.                                        */\r
+  /*    c :: The divisor.                                                  */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The result of `(a*b)/c'.  This function never traps when trying to */\r
+  /*    divide by zero; it simply returns `MaxInt' or `MinInt' depending   */\r
+  /*    on the signs of `a' and `b'.                                       */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Long )\r
+  FT_MulDiv( FT_Long  a,\r
+             FT_Long  b,\r
+             FT_Long  c );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_MulFix                                                          */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A very simple function used to perform the computation             */\r
+  /*    `(a*b)/0x10000' with maximal accuracy.  Most of the time this is   */\r
+  /*    used to multiply a given value by a 16.16 fixed float factor.      */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    a :: The first multiplier.                                         */\r
+  /*    b :: The second multiplier.  Use a 16.16 factor here whenever      */\r
+  /*         possible (see note below).                                    */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The result of `(a*b)/0x10000'.                                     */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    This function has been optimized for the case where the absolute   */\r
+  /*    value of `a' is less than 2048, and `b' is a 16.16 scaling factor. */\r
+  /*    As this happens mainly when scaling from notional units to         */\r
+  /*    fractional pixels in FreeType, it resulted in noticeable speed     */\r
+  /*    improvements between versions 2.x and 1.x.                         */\r
+  /*                                                                       */\r
+  /*    As a conclusion, always try to place a 16.16 factor as the         */\r
+  /*    _second_ argument of this function; this can make a great          */\r
+  /*    difference.                                                        */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Long )\r
+  FT_MulFix( FT_Long  a,\r
+             FT_Long  b );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_DivFix                                                          */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A very simple function used to perform the computation             */\r
+  /*    `(a*0x10000)/b' with maximal accuracy.  Most of the time, this is  */\r
+  /*    used to divide a given value by a 16.16 fixed float factor.        */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    a :: The first multiplier.                                         */\r
+  /*    b :: The second multiplier.  Use a 16.16 factor here whenever      */\r
+  /*         possible (see note below).                                    */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The result of `(a*0x10000)/b'.                                     */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The optimization for FT_DivFix() is simple: If (a << 16) fits in   */\r
+  /*    32 bits, then the division is computed directly.  Otherwise, we    */\r
+  /*    use a specialized version of @FT_MulDiv.                           */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Long )\r
+  FT_DivFix( FT_Long  a,\r
+             FT_Long  b );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_RoundFix                                                        */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A very simple function used to round a 16.16 fixed number.         */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    a :: The number to be rounded.                                     */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The result of `(a + 0x8000) & -0x10000'.                           */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Fixed )\r
+  FT_RoundFix( FT_Fixed  a );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_CeilFix                                                         */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A very simple function used to compute the ceiling function of a   */\r
+  /*    16.16 fixed number.                                                */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    a :: The number for which the ceiling function is to be computed.  */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The result of `(a + 0x10000 - 1) & -0x10000'.                      */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Fixed )\r
+  FT_CeilFix( FT_Fixed  a );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_FloorFix                                                        */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A very simple function used to compute the floor function of a     */\r
+  /*    16.16 fixed number.                                                */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    a :: The number for which the floor function is to be computed.    */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The result of `a & -0x10000'.                                      */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Fixed )\r
+  FT_FloorFix( FT_Fixed  a );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Vector_Transform                                                */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Transform a single vector through a 2x2 matrix.                    */\r
+  /*                                                                       */\r
+  /* <InOut>                                                               */\r
+  /*    vector :: The target vector to transform.                          */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    matrix :: A pointer to the source 2x2 matrix.                      */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The result is undefined if either `vector' or `matrix' is invalid. */\r
+  /*                                                                       */\r
+  FT_EXPORT( void )\r
+  FT_Vector_Transform( FT_Vector*        vec,\r
+                       const FT_Matrix*  matrix );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Section>                                                             */\r
+  /*    version                                                            */\r
+  /*                                                                       */\r
+  /* <Title>                                                               */\r
+  /*    FreeType Version                                                   */\r
+  /*                                                                       */\r
+  /* <Abstract>                                                            */\r
+  /*    Functions and macros related to FreeType versions.                 */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Note that those functions and macros are of limited use because    */\r
+  /*    even a new release of FreeType with only documentation changes     */\r
+  /*    increases the version number.                                      */\r
+  /*                                                                       */\r
+  /*************************************************************************/\r
+\r
+\r
+  /*************************************************************************\r
+   *\r
+   *  @enum:\r
+   *    FREETYPE_XXX\r
+   *\r
+   *  @description:\r
+   *    These three macros identify the FreeType source code version.\r
+   *    Use @FT_Library_Version to access them at runtime.\r
+   *\r
+   *  @values:\r
+   *    FREETYPE_MAJOR :: The major version number.\r
+   *    FREETYPE_MINOR :: The minor version number.\r
+   *    FREETYPE_PATCH :: The patch level.\r
+   *\r
+   *  @note:\r
+   *    The version number of FreeType if built as a dynamic link library\r
+   *    with the `libtool' package is _not_ controlled by these three\r
+   *    macros.\r
+   */\r
+#define FREETYPE_MAJOR  2\r
+#define FREETYPE_MINOR  3\r
+#define FREETYPE_PATCH  5\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Library_Version                                                 */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Return the version of the FreeType library being used.  This is    */\r
+  /*    useful when dynamically linking to the library, since one cannot   */\r
+  /*    use the macros @FREETYPE_MAJOR, @FREETYPE_MINOR, and               */\r
+  /*    @FREETYPE_PATCH.                                                   */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    library :: A source library handle.                                */\r
+  /*                                                                       */\r
+  /* <Output>                                                              */\r
+  /*    amajor  :: The major version number.                               */\r
+  /*                                                                       */\r
+  /*    aminor  :: The minor version number.                               */\r
+  /*                                                                       */\r
+  /*    apatch  :: The patch version number.                               */\r
+  /*                                                                       */\r
+  /* <Note>                                                                */\r
+  /*    The reason why this function takes a `library' argument is because */\r
+  /*    certain programs implement library initialization in a custom way  */\r
+  /*    that doesn't use @FT_Init_FreeType.                                */\r
+  /*                                                                       */\r
+  /*    In such cases, the library version might not be available before   */\r
+  /*    the library object has been created.                               */\r
+  /*                                                                       */\r
+  FT_EXPORT( void )\r
+  FT_Library_Version( FT_Library   library,\r
+                      FT_Int      *amajor,\r
+                      FT_Int      *aminor,\r
+                      FT_Int      *apatch );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Face_CheckTrueTypePatents                                       */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Parse all bytecode instructions of a TrueType font file to check   */\r
+  /*    whether any of the patented opcodes are used.  This is only useful */\r
+  /*    if you want to be able to use the unpatented hinter with           */\r
+  /*    fonts that do *not* use these opcodes.                             */\r
+  /*                                                                       */\r
+  /*    Note that this function parses *all* glyph instructions in the     */\r
+  /*    font file, which may be slow.                                      */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face :: A face handle.                                             */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    1 if this is a TrueType font that uses one of the patented         */\r
+  /*    opcodes, 0 otherwise.                                              */\r
+  /*                                                                       */\r
+  /* <Since>                                                               */\r
+  /*    2.3.5                                                              */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Bool )\r
+  FT_Face_CheckTrueTypePatents( FT_Face  face );\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Function>                                                            */\r
+  /*    FT_Face_SetUnpatentedHinting                                       */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    Enable or disable the unpatented hinter for a given face.          */\r
+  /*    Only enable it if you have determined that the face doesn't        */\r
+  /*    use any patented opcodes (see @FT_Face_CheckTrueTypePatents).      */\r
+  /*                                                                       */\r
+  /* <Input>                                                               */\r
+  /*    face  :: A face handle.                                            */\r
+  /*                                                                       */\r
+  /*    value :: New boolean setting.                                      */\r
+  /*                                                                       */\r
+  /* <Return>                                                              */\r
+  /*    The old setting value.  This will always be false if this is not   */\r
+  /*    a SFNT font, or if the unpatented hinter is not compiled in this   */\r
+  /*    instance of the library.                                           */\r
+  /*                                                                       */\r
+  /* <Since>                                                               */\r
+  /*    2.3.5                                                              */\r
+  /*                                                                       */\r
+  FT_EXPORT( FT_Bool )\r
+  FT_Face_SetUnpatentedHinting( FT_Face  face,\r
+                                FT_Bool  value );\r
+\r
+  /* */\r
+\r
+\r
+FT_END_HEADER\r
+\r
+#endif /* __FREETYPE_H__ */\r
+\r
+\r
+/* END */\r