misc/libfreetype/src/gxvalid/gxvcommn.h
author nemo
Sat, 10 Mar 2012 16:10:38 -0500
changeset 6762 85ba0c55d077
parent 5172 88f2e05288ba
permissions -rw-r--r--
Set default empty ammo sets. Current mission handling appears to not pass any default ammo set, so script was never getting a chance to set its own.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
/***************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
/*  gxvcommn.h                                                             */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
/*    TrueTypeGX/AAT common tables validation (specification).             */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
/*  Copyright 2004, 2005 by suzuki toshiya, Masatake YAMATO, Red Hat K.K., */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
/*  This file is part of the FreeType project, and may only be used,       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
/*  modified, and distributed under the terms of the FreeType project      */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
/*  this file you indicate that you have read the license and              */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
/*  understand and accept it fully.                                        */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
/***************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
/***************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
/* gxvalid is derived from both gxlayout module and otvalid module.        */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
/* Development of gxlayout is supported by the Information-technology      */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
/* Promotion Agency(IPA), Japan.                                           */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
/***************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
  /*
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
   * keywords in variable naming
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
   * ---------------------------
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
   *  table: Of type FT_Bytes, pointing to the start of this table/subtable.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
   *  limit: Of type FT_Bytes, pointing to the end of this table/subtable,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
   *         including padding for alignment.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
   *  offset: Of type FT_UInt, the number of octets from the start to target.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
   *  length: Of type FT_UInt, the number of octets from the start to the
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
   *          end in this table/subtable, including padding for alignment.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
   *
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
   *  _MIN, _MAX: Should be added to the tail of macros, as INT_MIN, etc.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
   */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
#ifndef __GXVCOMMN_H__
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
#define __GXVCOMMN_H__
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    43
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    44
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    45
#include <ft2build.h>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
#include "gxvalid.h"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    47
#include FT_INTERNAL_DEBUG_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    48
#include FT_SFNT_NAMES_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    49
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    50
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    51
FT_BEGIN_HEADER
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    52
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    53
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
  /*****                         VALIDATION                            *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
  typedef struct GXV_ValidatorRec_*  GXV_Validator;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    64
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    65
#define DUMMY_LIMIT 0
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    66
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    67
  typedef void
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    68
  (*GXV_Validate_Func)( FT_Bytes       table,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    69
                        FT_Bytes       limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    70
                        GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    71
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    72
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    73
  /* ====================== LookupTable Validator ======================== */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    74
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    75
  typedef union  GXV_LookupValueDesc_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    76
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    77
    FT_UShort u;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    78
    FT_Short  s;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    79
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    80
  } GXV_LookupValueDesc;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    81
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    82
  typedef const GXV_LookupValueDesc* GXV_LookupValueCPtr;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    83
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    84
  typedef enum  GXV_LookupValue_SignSpec_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    85
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    86
    GXV_LOOKUPVALUE_UNSIGNED = 0,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    87
    GXV_LOOKUPVALUE_SIGNED
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    88
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    89
  } GXV_LookupValue_SignSpec;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    90
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    91
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    92
  typedef void
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    93
  (*GXV_Lookup_Value_Validate_Func)( FT_UShort            glyph,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    94
                                     GXV_LookupValueCPtr  value_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    95
                                     GXV_Validator        valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    96
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    97
  typedef GXV_LookupValueDesc
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    98
  (*GXV_Lookup_Fmt4_Transit_Func)( FT_UShort            relative_gindex,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    99
                                   GXV_LookupValueCPtr  base_value_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   100
                                   FT_Bytes             lookuptbl_limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   101
                                   GXV_Validator        valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   102
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   103
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   104
  /* ====================== StateTable Validator ========================= */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   105
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   106
  typedef enum  GXV_GlyphOffset_Format_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   107
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   108
    GXV_GLYPHOFFSET_NONE   = -1,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   109
    GXV_GLYPHOFFSET_UCHAR  = 2,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   110
    GXV_GLYPHOFFSET_CHAR,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   111
    GXV_GLYPHOFFSET_USHORT = 4,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   112
    GXV_GLYPHOFFSET_SHORT,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   113
    GXV_GLYPHOFFSET_ULONG  = 8,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   114
    GXV_GLYPHOFFSET_LONG
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   115
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   116
  } GXV_GlyphOffset_Format;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   117
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   118
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   119
#define GXV_GLYPHOFFSET_FMT( table )           \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   120
        ( valid->table.entry_glyphoffset_fmt )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   121
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   122
#define GXV_GLYPHOFFSET_SIZE( table )              \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   123
        ( valid->table.entry_glyphoffset_fmt / 2 )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   124
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   125
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   126
  /* ----------------------- 16bit StateTable ---------------------------- */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   127
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   128
  typedef union  GXV_StateTable_GlyphOffsetDesc_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   129
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   130
    FT_Byte    uc;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   131
    FT_UShort  u;       /* same as GXV_LookupValueDesc */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   132
    FT_ULong   ul;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   133
    FT_Char    c;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   134
    FT_Short   s;       /* same as GXV_LookupValueDesc */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   135
    FT_Long    l;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   136
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   137
  } GXV_StateTable_GlyphOffsetDesc;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   138
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   139
  typedef const GXV_StateTable_GlyphOffsetDesc* GXV_StateTable_GlyphOffsetCPtr;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   140
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   141
  typedef void
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   142
  (*GXV_StateTable_Subtable_Setup_Func)( FT_UShort      table_size,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   143
                                         FT_UShort      classTable,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   144
                                         FT_UShort      stateArray,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   145
                                         FT_UShort      entryTable,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   146
                                         FT_UShort*     classTable_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   147
                                         FT_UShort*     stateArray_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   148
                                         FT_UShort*     entryTable_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   149
                                         GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   150
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   151
  typedef void
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   152
  (*GXV_StateTable_Entry_Validate_Func)(
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   153
     FT_Byte                         state,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   154
     FT_UShort                       flags,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   155
     GXV_StateTable_GlyphOffsetCPtr  glyphOffset_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   156
     FT_Bytes                        statetable_table,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   157
     FT_Bytes                        statetable_limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   158
     GXV_Validator                   valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   159
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   160
  typedef void
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   161
  (*GXV_StateTable_OptData_Load_Func)( FT_Bytes       table,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   162
                                       FT_Bytes       limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   163
                                       GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   164
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   165
  typedef struct  GXV_StateTable_ValidatorRec_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   166
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   167
    GXV_GlyphOffset_Format              entry_glyphoffset_fmt;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   168
    void*                               optdata;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   169
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   170
    GXV_StateTable_Subtable_Setup_Func  subtable_setup_func;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   171
    GXV_StateTable_Entry_Validate_Func  entry_validate_func;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   172
    GXV_StateTable_OptData_Load_Func    optdata_load_func;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   173
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   174
  } GXV_StateTable_ValidatorRec, *GXV_StateTable_ValidatorRecData;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   175
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   176
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   177
  /* ---------------------- 32bit XStateTable ---------------------------- */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   178
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   179
  typedef GXV_StateTable_GlyphOffsetDesc  GXV_XStateTable_GlyphOffsetDesc;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   180
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   181
  typedef const GXV_XStateTable_GlyphOffsetDesc* GXV_XStateTable_GlyphOffsetCPtr;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   182
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   183
  typedef void
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   184
  (*GXV_XStateTable_Subtable_Setup_Func)( FT_ULong       table_size,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   185
                                          FT_ULong       classTable,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   186
                                          FT_ULong       stateArray,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   187
                                          FT_ULong       entryTable,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   188
                                          FT_ULong*      classTable_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   189
                                          FT_ULong*      stateArray_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   190
                                          FT_ULong*      entryTable_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   191
                                          GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   192
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   193
  typedef void
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   194
  (*GXV_XStateTable_Entry_Validate_Func)(
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   195
     FT_UShort                       state,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   196
     FT_UShort                       flags,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   197
     GXV_StateTable_GlyphOffsetCPtr  glyphOffset_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   198
     FT_Bytes                        xstatetable_table,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   199
     FT_Bytes                        xstatetable_limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   200
     GXV_Validator                   valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   201
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   202
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   203
  typedef GXV_StateTable_OptData_Load_Func  GXV_XStateTable_OptData_Load_Func;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   204
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   205
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   206
  typedef struct  GXV_XStateTable_ValidatorRec_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   207
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   208
    int                                  entry_glyphoffset_fmt;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   209
    void*                                optdata;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   210
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   211
    GXV_XStateTable_Subtable_Setup_Func  subtable_setup_func;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   212
    GXV_XStateTable_Entry_Validate_Func  entry_validate_func;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   213
    GXV_XStateTable_OptData_Load_Func    optdata_load_func;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   214
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   215
    FT_ULong                             nClasses;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   216
    FT_UShort                            maxClassID;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   217
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   218
  } GXV_XStateTable_ValidatorRec, *GXV_XStateTable_ValidatorRecData;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   219
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   220
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   221
  /* ===================================================================== */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   222
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   223
  typedef struct  GXV_ValidatorRec_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   224
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   225
    FT_Validator  root;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   226
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   227
    FT_Face       face;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   228
    void*         table_data;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   229
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   230
    FT_ULong      subtable_length;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   231
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   232
    GXV_LookupValue_SignSpec        lookupval_sign;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   233
    GXV_Lookup_Value_Validate_Func  lookupval_func;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   234
    GXV_Lookup_Fmt4_Transit_Func    lookupfmt4_trans;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   235
    FT_Bytes                        lookuptbl_head;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   236
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   237
    GXV_StateTable_ValidatorRec     statetable;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   238
    GXV_XStateTable_ValidatorRec    xstatetable;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   239
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   240
#ifdef FT_DEBUG_LEVEL_TRACE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   241
    FT_UInt             debug_indent;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   242
    const FT_String*    debug_function_name[3];
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   243
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   244
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   245
  } GXV_ValidatorRec;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   246
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   247
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   248
#define GXV_TABLE_DATA( tag, field )                           \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   249
        ( ( (GXV_ ## tag ## _Data)valid->table_data )->field )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   250
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   251
#undef  FT_INVALID_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   252
#define FT_INVALID_( _prefix, _error )                         \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   253
          ft_validator_error( valid->root, _prefix ## _error )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   254
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   255
#define GXV_LIMIT_CHECK( _count )                                     \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   256
          FT_BEGIN_STMNT                                              \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   257
            if ( p + _count > ( limit? limit : valid->root->limit ) ) \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   258
              FT_INVALID_TOO_SHORT;                                   \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   259
          FT_END_STMNT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   260
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   261
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   262
#ifdef FT_DEBUG_LEVEL_TRACE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   263
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   264
#define GXV_INIT  valid->debug_indent = 0
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   265
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   266
#define GXV_NAME_ENTER( name )                             \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   267
          FT_BEGIN_STMNT                                   \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   268
            valid->debug_indent += 2;                      \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   269
            FT_TRACE4(( "%*.s", valid->debug_indent, 0 )); \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   270
            FT_TRACE4(( "%s table\n", name ));             \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   271
          FT_END_STMNT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   272
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   273
#define GXV_EXIT  valid->debug_indent -= 2
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   274
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   275
#define GXV_TRACE( s )                                     \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   276
          FT_BEGIN_STMNT                                   \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   277
            FT_TRACE4(( "%*.s", valid->debug_indent, 0 )); \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   278
            FT_TRACE4( s );                                \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   279
          FT_END_STMNT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   280
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   281
#else /* !FT_DEBUG_LEVEL_TRACE */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   282
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   283
#define GXV_INIT                do { } while ( 0 )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   284
#define GXV_NAME_ENTER( name )  do { } while ( 0 )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   285
#define GXV_EXIT                do { } while ( 0 )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   286
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   287
#define GXV_TRACE( s )          do { } while ( 0 )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   288
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   289
#endif  /* !FT_DEBUG_LEVEL_TRACE */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   290
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   291
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   292
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   293
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   294
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   295
  /*****                    32bit alignment checking                   *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   296
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   297
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   298
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   299
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   300
#define GXV_32BIT_ALIGNMENT_VALIDATE( a ) \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   301
          FT_BEGIN_STMNT                  \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   302
            {                             \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   303
              if ( 0 != ( (a) % 4 ) )     \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   304
                FT_INVALID_OFFSET ;       \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   305
            }                             \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   306
          FT_END_STMNT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   307
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   308
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   309
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   310
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   311
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   312
  /*****                    Dumping Binary Data                        *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   313
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   314
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   315
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   316
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   317
#define GXV_TRACE_HEXDUMP( p, len )                     \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   318
          FT_BEGIN_STMNT                                \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   319
            {                                           \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   320
              FT_Bytes  b;                              \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   321
                                                        \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   322
                                                        \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   323
              for ( b = p; b < (FT_Bytes)p + len; b++ ) \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   324
                FT_TRACE1(("\\x%02x", *b)) ;            \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   325
            }                                           \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   326
          FT_END_STMNT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   327
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   328
#define GXV_TRACE_HEXDUMP_C( p, len )                   \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   329
          FT_BEGIN_STMNT                                \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   330
            {                                           \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   331
              FT_Bytes  b;                              \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   332
                                                        \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   333
                                                        \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   334
              for ( b = p; b < (FT_Bytes)p + len; b++ ) \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   335
                if ( 0x40 < *b && *b < 0x7e )           \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   336
                  FT_TRACE1(("%c", *b)) ;               \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   337
                else                                    \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   338
                  FT_TRACE1(("\\x%02x", *b)) ;          \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   339
            }                                           \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   340
          FT_END_STMNT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   341
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   342
#define GXV_TRACE_HEXDUMP_SFNTNAME( n )               \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   343
          GXV_TRACE_HEXDUMP( n.string, n.string_len )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   344
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   345
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   346
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   347
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   348
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   349
  /*****                         LOOKUP TABLE                          *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   350
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   351
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   352
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   353
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   354
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   355
  gxv_BinSrchHeader_validate( FT_Bytes       p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   356
                              FT_Bytes       limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   357
                              FT_UShort*     unitSize_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   358
                              FT_UShort*     nUnits_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   359
                              GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   360
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   361
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   362
  gxv_LookupTable_validate( FT_Bytes       table,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   363
                            FT_Bytes       limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   364
                            GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   365
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   366
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   367
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   368
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   369
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   370
  /*****                          Glyph ID                             *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   371
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   372
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   373
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   374
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   375
  FT_LOCAL( FT_Int )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   376
  gxv_glyphid_validate( FT_UShort      gid,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   377
                        GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   378
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   379
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   380
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   381
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   382
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   383
  /*****                        CONTROL POINT                          *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   384
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   385
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   386
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   387
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   388
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   389
  gxv_ctlPoint_validate( FT_UShort      gid,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   390
                         FT_Short       ctl_point,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   391
                         GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   392
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   393
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   394
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   395
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   396
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   397
  /*****                          SFNT NAME                            *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   398
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   399
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   400
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   401
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   402
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   403
  gxv_sfntName_validate( FT_UShort      name_index,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   404
                         FT_UShort      min_index,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   405
                         FT_UShort      max_index,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   406
                         GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   407
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   408
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   409
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   410
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   411
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   412
  /*****                          STATE TABLE                          *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   413
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   414
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   415
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   416
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   417
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   418
  gxv_StateTable_subtable_setup( FT_UShort      table_size,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   419
                                 FT_UShort      classTable,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   420
                                 FT_UShort      stateArray,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   421
                                 FT_UShort      entryTable,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   422
                                 FT_UShort*     classTable_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   423
                                 FT_UShort*     stateArray_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   424
                                 FT_UShort*     entryTable_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   425
                                 GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   426
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   427
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   428
  gxv_XStateTable_subtable_setup( FT_ULong       table_size,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   429
                                  FT_ULong       classTable,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   430
                                  FT_ULong       stateArray,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   431
                                  FT_ULong       entryTable,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   432
                                  FT_ULong*      classTable_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   433
                                  FT_ULong*      stateArray_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   434
                                  FT_ULong*      entryTable_length_p,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   435
                                  GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   436
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   437
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   438
  gxv_StateTable_validate( FT_Bytes       table,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   439
                           FT_Bytes       limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   440
                           GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   441
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   442
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   443
  gxv_XStateTable_validate( FT_Bytes       table,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   444
                            FT_Bytes       limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   445
                            GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   446
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   447
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   448
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   449
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   450
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   451
  /*****                 UTILITY MACROS AND FUNCTIONS                  *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   452
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   453
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   454
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   455
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   456
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   457
  gxv_array_getlimits_byte( FT_Bytes       table,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   458
                            FT_Bytes       limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   459
                            FT_Byte*       min,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   460
                            FT_Byte*       max,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   461
                            GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   462
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   463
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   464
  gxv_array_getlimits_ushort( FT_Bytes       table,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   465
                              FT_Bytes       limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   466
                              FT_UShort*     min,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   467
                              FT_UShort*     max,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   468
                              GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   469
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   470
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   471
  gxv_set_length_by_ushort_offset( FT_UShort*     offset,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   472
                                   FT_UShort**    length,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   473
                                   FT_UShort*     buff,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   474
                                   FT_UInt        nmemb,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   475
                                   FT_UShort      limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   476
                                   GXV_Validator  valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   477
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   478
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   479
  gxv_set_length_by_ulong_offset( FT_ULong*      offset,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   480
                                  FT_ULong**     length,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   481
                                  FT_ULong*      buff,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   482
                                  FT_UInt        nmemb,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   483
                                  FT_ULong       limit,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   484
                                  GXV_Validator  valid);
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   485
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   486
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   487
#define GXV_SUBTABLE_OFFSET_CHECK( _offset )          \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   488
          FT_BEGIN_STMNT                              \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   489
            if ( (_offset) > valid->subtable_length ) \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   490
              FT_INVALID_OFFSET;                      \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   491
          FT_END_STMNT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   492
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   493
#define GXV_SUBTABLE_LIMIT_CHECK( _count )                  \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   494
          FT_BEGIN_STMNT                                    \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   495
            if ( ( p + (_count) - valid->subtable_start ) > \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   496
                   valid->subtable_length )                 \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   497
              FT_INVALID_TOO_SHORT;                         \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   498
          FT_END_STMNT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   499
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   500
#define GXV_USHORT_TO_SHORT( _us )                                    \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   501
          ( ( 0x8000U < ( _us ) ) ? ( ( _us ) - 0x8000U ) : ( _us ) )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   502
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   503
#define GXV_STATETABLE_HEADER_SIZE  ( 2 + 2 + 2 + 2 )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   504
#define GXV_STATEHEADER_SIZE        GXV_STATETABLE_HEADER_SIZE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   505
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   506
#define GXV_XSTATETABLE_HEADER_SIZE  ( 4 + 4 + 4 + 4 )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   507
#define GXV_XSTATEHEADER_SIZE        GXV_XSTATETABLE_HEADER_SIZE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   508
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   509
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   510
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   511
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   512
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   513
  /*****                        Table overlapping                      *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   514
  /*****                                                               *****/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   515
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   516
  /*************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   517
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   518
  typedef struct  GXV_odtect_DataRec_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   519
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   520
    FT_Bytes    start;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   521
    FT_ULong    length;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   522
    FT_String*  name;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   523
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   524
  } GXV_odtect_DataRec,  *GXV_odtect_Data;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   525
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   526
  typedef struct  GXV_odtect_RangeRec_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   527
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   528
    FT_UInt          nRanges;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   529
    GXV_odtect_Data  range;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   530
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   531
  } GXV_odtect_RangeRec, *GXV_odtect_Range;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   532
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   533
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   534
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   535
  gxv_odtect_add_range( FT_Bytes          start,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   536
                        FT_ULong          length,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   537
                        const FT_String*  name,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   538
                        GXV_odtect_Range  odtect );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   539
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   540
  FT_LOCAL( void )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   541
  gxv_odtect_validate( GXV_odtect_Range  odtect,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   542
                       GXV_Validator     valid );
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   543
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   544
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   545
#define GXV_ODTECT( n, odtect )                              \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   546
          GXV_odtect_DataRec   odtect ## _range[n];          \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   547
          GXV_odtect_RangeRec  odtect ## _rec = { 0, NULL }; \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   548
          GXV_odtect_Range     odtect = NULL
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   549
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   550
#define GXV_ODTECT_INIT( odtect )                      \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   551
          FT_BEGIN_STMNT                               \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   552
            odtect ## _rec.nRanges = 0;                \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   553
            odtect ## _rec.range   = odtect ## _range; \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   554
            odtect                 = & odtect ## _rec; \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   555
          FT_END_STMNT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   556
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   557
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   558
 /* */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   559
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   560
FT_END_HEADER
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   561
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   562
#endif /* __GXVCOMMN_H__ */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   563
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   564
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   565
/* END */