cidtoken.h 3.93 KB
Newer Older
Werner Lemberg's avatar
   
Werner Lemberg committed
1
2
/***************************************************************************/
/*                                                                         */
3
/*  cidtoken.h                                                             */
Werner Lemberg's avatar
   
Werner Lemberg committed
4
5
6
/*                                                                         */
/*    CID token definitions (specification only).                          */
/*                                                                         */
Werner Lemberg's avatar
   
Werner Lemberg committed
7
/*  Copyright 1996-2001, 2002, 2003 by                                     */
Werner Lemberg's avatar
   
Werner Lemberg committed
8
9
10
11
12
13
14
15
16
/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
/*                                                                         */
/*  This file is part of the FreeType project, and may only be used,       */
/*  modified, and distributed under the terms of the FreeType project      */
/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
/*  this file you indicate that you have read the license and              */
/*  understand and accept it fully.                                        */
/*                                                                         */
/***************************************************************************/
17

Werner Lemberg's avatar
   
Werner Lemberg committed
18

Werner Lemberg's avatar
   
Werner Lemberg committed
19
#undef  FT_STRUCTURE
20
#define FT_STRUCTURE  CID_FaceInfoRec
Werner Lemberg's avatar
   
Werner Lemberg committed
21
#undef  T1CODE
22
#define T1CODE        T1_FIELD_LOCATION_CID_INFO
23

Werner Lemberg's avatar
   
Werner Lemberg committed
24
25
26
27
28
29
30
31
32
33
34
  T1_FIELD_STRING( "CIDFontName", cid_font_name )
  T1_FIELD_NUM   ( "CIDFontVersion", cid_version )
  T1_FIELD_NUM   ( "CIDFontType", cid_font_type )
  T1_FIELD_STRING( "Registry", registry )
  T1_FIELD_STRING( "Ordering", ordering )
  T1_FIELD_NUM   ( "Supplement", supplement )
  T1_FIELD_NUM   ( "UIDBase", uid_base )
  T1_FIELD_NUM   ( "CIDMapOffset", cidmap_offset )
  T1_FIELD_NUM   ( "FDBytes", fd_bytes )
  T1_FIELD_NUM   ( "GDBytes", gd_bytes )
  T1_FIELD_NUM   ( "CIDCount", cid_count )
Werner Lemberg's avatar
   
Werner Lemberg committed
35
36


Werner Lemberg's avatar
   
Werner Lemberg committed
37
#undef  FT_STRUCTURE
38
#define FT_STRUCTURE  PS_FontInfoRec
39
#undef  T1CODE
40
#define T1CODE        T1_FIELD_LOCATION_FONT_INFO
41

Werner Lemberg's avatar
   
Werner Lemberg committed
42
43
44
45
46
47
48
49
50
  T1_FIELD_STRING     ( "version", version )
  T1_FIELD_STRING     ( "Notice", notice )
  T1_FIELD_STRING     ( "FullName", full_name )
  T1_FIELD_STRING     ( "FamilyName", family_name )
  T1_FIELD_STRING     ( "Weight", weight )
  T1_FIELD_FIXED_P    ( "ItalicAngle", italic_angle )
  T1_FIELD_TYPE_BOOL_P( "isFixedPitch", is_fixed_pitch )
  T1_FIELD_FIXED_P    ( "UnderlinePosition", underline_position )
  T1_FIELD_FIXED_P    ( "UnderlineThickness", underline_thickness )
51

Werner Lemberg's avatar
   
Werner Lemberg committed
52

Werner Lemberg's avatar
   
Werner Lemberg committed
53
#undef  FT_STRUCTURE
54
#define FT_STRUCTURE  CID_FaceDictRec
55
#undef  T1CODE
56
#define T1CODE        T1_FIELD_LOCATION_FONT_DICT
57

Werner Lemberg's avatar
   
Werner Lemberg committed
58
59
60
61
62
63
64
65
  T1_FIELD_NUM  ( "PaintType", paint_type )
  T1_FIELD_NUM  ( "FontType", font_type )
  T1_FIELD_NUM  ( "SubrMapOffset", subrmap_offset )
  T1_FIELD_NUM  ( "SDBytes", sd_bytes )
  T1_FIELD_NUM  ( "SubrCount", num_subrs )
  T1_FIELD_NUM  ( "lenBuildCharArray", len_buildchar )
  T1_FIELD_FIXED( "ForceBoldThreshold", forcebold_threshold )
  T1_FIELD_FIXED( "ExpansionFactor", expansion_factor )
Werner Lemberg's avatar
   
Werner Lemberg committed
66
  T1_FIELD_FIXED( "StrokeWidth", stroke_width )
Werner Lemberg's avatar
   
Werner Lemberg committed
67
68


Werner Lemberg's avatar
   
Werner Lemberg committed
69
#undef  FT_STRUCTURE
70
#define FT_STRUCTURE  PS_PrivateRec
71
#undef  T1CODE
72
#define T1CODE        T1_FIELD_LOCATION_PRIVATE
73

74
75
76
77
  T1_FIELD_NUM       ( "UniqueID", unique_id )
  T1_FIELD_NUM       ( "lenIV", lenIV )
  T1_FIELD_NUM       ( "LanguageGroup", language_group )
  T1_FIELD_NUM       ( "password", password )
Werner Lemberg's avatar
   
Werner Lemberg committed
78

Werner Lemberg's avatar
   
Werner Lemberg committed
79
  T1_FIELD_FIXED_1000( "BlueScale", blue_scale )
80
81
  T1_FIELD_NUM       ( "BlueShift", blue_shift )
  T1_FIELD_NUM       ( "BlueFuzz",  blue_fuzz )
Werner Lemberg's avatar
   
Werner Lemberg committed
82

83
84
85
86
  T1_FIELD_NUM_TABLE ( "BlueValues", blue_values, 14 )
  T1_FIELD_NUM_TABLE ( "OtherBlues", other_blues, 10 )
  T1_FIELD_NUM_TABLE ( "FamilyBlues", family_blues, 14 )
  T1_FIELD_NUM_TABLE ( "FamilyOtherBlues", family_other_blues, 10 )
87

88
89
90
91
92
93
  T1_FIELD_NUM_TABLE2( "StdHW", standard_width,  1 )
  T1_FIELD_NUM_TABLE2( "StdVW", standard_height, 1 )
  T1_FIELD_NUM_TABLE2( "MinFeature", min_feature, 2 )

  T1_FIELD_NUM_TABLE ( "StemSnapH", snap_widths, 12 )
  T1_FIELD_NUM_TABLE ( "StemSnapV", snap_heights, 12 )
Werner Lemberg's avatar
   
Werner Lemberg committed
94

95

Werner Lemberg's avatar
   
Werner Lemberg committed
96
/* END */