misc/libfreetype/src/type1/t1tokens.h
author sheepluva
Tue, 04 Sep 2012 13:18:26 +0200
changeset 7669 a85e1c167b69
parent 5172 88f2e05288ba
permissions -rw-r--r--
I didn't want to do this since it seems less clean, but... moving the stats-fix into CheckForWin, since that function is the one sending the damage stats (whyyyy?) therefore it's not sufficient to update stats after calling it, some of the stats won't be transfered to frontend then
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
/*  t1tokens.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
/*    Type 1 tokenizer (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 1996-2001, 2002, 2003, 2004, 2006, 2008, 2009 by             */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
/*  This file is part of the FreeType project, and may only be used,       */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
/*  modified, and distributed under the terms of the FreeType project      */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
/*  this file you indicate that you have read the license and              */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
/*  understand and accept it fully.                                        */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
/*                                                                         */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
/***************************************************************************/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
#undef  FT_STRUCTURE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
#define FT_STRUCTURE  PS_FontInfoRec
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
#undef  T1CODE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
#define T1CODE        T1_FIELD_LOCATION_FONT_INFO
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
  T1_FIELD_STRING( "version",            version,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
                   T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
  T1_FIELD_STRING( "Notice",             notice,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
                   T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
  T1_FIELD_STRING( "FullName",           full_name,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
                   T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
  T1_FIELD_STRING( "FamilyName",         family_name,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
                   T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
  T1_FIELD_STRING( "Weight",             weight,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
                   T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
  /* we use pointers to detect modifications made by synthetic fonts */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
  T1_FIELD_NUM   ( "ItalicAngle",        italic_angle,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
                   T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
  T1_FIELD_BOOL  ( "isFixedPitch",       is_fixed_pitch,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
                   T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
  T1_FIELD_NUM   ( "UnderlinePosition",  underline_position,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
                   T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
  T1_FIELD_NUM   ( "UnderlineThickness", underline_thickness,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    43
                   T1_FIELD_DICT_FONTDICT )
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
#undef  FT_STRUCTURE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
#define FT_STRUCTURE  PS_FontExtraRec
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    47
#undef  T1CODE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    48
#define T1CODE        T1_FIELD_LOCATION_FONT_EXTRA
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
  T1_FIELD_NUM   ( "FSType", fs_type,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    51
                   T1_FIELD_DICT_FONTDICT )
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
#undef  FT_STRUCTURE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
#define FT_STRUCTURE  PS_PrivateRec
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
#undef  T1CODE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
#define T1CODE        T1_FIELD_LOCATION_PRIVATE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
  T1_FIELD_NUM       ( "UniqueID",         unique_id,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
                       T1_FIELD_DICT_FONTDICT | T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
  T1_FIELD_NUM       ( "lenIV",            lenIV,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
  T1_FIELD_NUM       ( "LanguageGroup",    language_group,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    64
  T1_FIELD_NUM       ( "password",         password,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    65
                       T1_FIELD_DICT_PRIVATE )
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
  T1_FIELD_FIXED_1000( "BlueScale",        blue_scale,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    68
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    69
  T1_FIELD_NUM       ( "BlueShift",        blue_shift,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    70
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    71
  T1_FIELD_NUM       ( "BlueFuzz",         blue_fuzz,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    72
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    73
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    74
  T1_FIELD_NUM_TABLE ( "BlueValues",       blue_values,        14,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    75
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    76
  T1_FIELD_NUM_TABLE ( "OtherBlues",       other_blues,        10,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    77
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    78
  T1_FIELD_NUM_TABLE ( "FamilyBlues",      family_blues,       14,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    79
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    80
  T1_FIELD_NUM_TABLE ( "FamilyOtherBlues", family_other_blues, 10,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    81
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    82
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    83
  T1_FIELD_NUM_TABLE2( "StdHW",            standard_width,      1,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    84
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    85
  T1_FIELD_NUM_TABLE2( "StdVW",            standard_height,     1,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    86
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    87
  T1_FIELD_NUM_TABLE2( "MinFeature",       min_feature,         2,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    88
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    89
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    90
  T1_FIELD_NUM_TABLE ( "StemSnapH",        snap_widths,        12,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    91
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    92
  T1_FIELD_NUM_TABLE ( "StemSnapV",        snap_heights,       12,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    93
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    94
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    95
  T1_FIELD_FIXED     ( "ExpansionFactor",  expansion_factor,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    96
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    97
  T1_FIELD_BOOL      ( "ForceBold",        force_bold,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    98
                       T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    99
                         
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   100
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   101
#undef  FT_STRUCTURE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   102
#define FT_STRUCTURE  T1_FontRec
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   103
#undef  T1CODE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   104
#define T1CODE        T1_FIELD_LOCATION_FONT_DICT
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
  T1_FIELD_KEY  ( "FontName",    font_name,    T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   107
  T1_FIELD_NUM  ( "PaintType",   paint_type,   T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   108
  T1_FIELD_NUM  ( "FontType",    font_type,    T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   109
  T1_FIELD_FIXED( "StrokeWidth", stroke_width, T1_FIELD_DICT_FONTDICT )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   110
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   111
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   112
#undef  FT_STRUCTURE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   113
#define FT_STRUCTURE  FT_BBox
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   114
#undef  T1CODE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   115
#define T1CODE        T1_FIELD_LOCATION_BBOX
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   116
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   117
  T1_FIELD_BBOX( "FontBBox", xMin, T1_FIELD_DICT_FONTDICT )
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
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   120
#ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT
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
#undef  FT_STRUCTURE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   123
#define FT_STRUCTURE  T1_FaceRec
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   124
#undef  T1CODE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   125
#define T1CODE        T1_FIELD_LOCATION_FACE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   126
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   127
  T1_FIELD_NUM( "NDV", ndv_idx, T1_FIELD_DICT_PRIVATE )
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   128
  T1_FIELD_NUM( "CDV", cdv_idx, T1_FIELD_DICT_PRIVATE )
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
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   131
#undef  FT_STRUCTURE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   132
#define FT_STRUCTURE  PS_BlendRec
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   133
#undef  T1CODE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   134
#define T1CODE        T1_FIELD_LOCATION_BLEND
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   135
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   136
  T1_FIELD_NUM_TABLE( "DesignVector", default_design_vector,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   137
                      T1_MAX_MM_DESIGNS, T1_FIELD_DICT_FONTDICT )
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
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   140
#endif /* T1_CONFIG_OPTION_NO_MM_SUPPORT */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   141
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   142
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   143
/* END */