Werner Lemberg | 7fa51b5 | 2000-07-08 19:51:42 +0000 | [diff] [blame] | 1 | /***************************************************************************/ |
| 2 | /* */ |
Werner Lemberg | b5084e1 | 2000-10-28 17:10:06 +0000 | [diff] [blame] | 3 | /* t1tokens.h */ |
Werner Lemberg | 7fa51b5 | 2000-07-08 19:51:42 +0000 | [diff] [blame] | 4 | /* */ |
Werner Lemberg | b5084e1 | 2000-10-28 17:10:06 +0000 | [diff] [blame] | 5 | /* Type 1 tokenizer (specification). */ |
Werner Lemberg | 7fa51b5 | 2000-07-08 19:51:42 +0000 | [diff] [blame] | 6 | /* */ |
Werner Lemberg | 15b60bb | 2009-03-03 21:35:32 +0000 | [diff] [blame] | 7 | /* Copyright 1996-2001, 2002, 2003, 2004, 2006, 2008, 2009 by */ |
Werner Lemberg | 7fa51b5 | 2000-07-08 19:51:42 +0000 | [diff] [blame] | 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
| 9 | /* */ |
| 10 | /* This file is part of the FreeType project, and may only be used, */ |
| 11 | /* modified, and distributed under the terms of the FreeType project */ |
| 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
| 13 | /* this file you indicate that you have read the license and */ |
| 14 | /* understand and accept it fully. */ |
| 15 | /* */ |
| 16 | /***************************************************************************/ |
| 17 | |
David Turner | 2dfb5ac | 2000-01-27 14:02:04 +0000 | [diff] [blame] | 18 | |
Werner Lemberg | e72c9fe | 2000-07-31 18:59:02 +0000 | [diff] [blame] | 19 | #undef FT_STRUCTURE |
David Turner | 2964417 | 2002-02-28 18:59:37 +0000 | [diff] [blame] | 20 | #define FT_STRUCTURE PS_FontInfoRec |
David Turner | 34f1c2f | 2000-08-23 22:47:44 +0000 | [diff] [blame] | 21 | #undef T1CODE |
David Turner | 429978b | 2002-03-14 10:09:35 +0000 | [diff] [blame] | 22 | #define T1CODE T1_FIELD_LOCATION_FONT_INFO |
David Turner | 1c9a1ca | 2000-05-24 21:12:02 +0000 | [diff] [blame] | 23 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 24 | T1_FIELD_STRING( "version", version, |
| 25 | T1_FIELD_DICT_FONTDICT ) |
| 26 | T1_FIELD_STRING( "Notice", notice, |
| 27 | T1_FIELD_DICT_FONTDICT ) |
| 28 | T1_FIELD_STRING( "FullName", full_name, |
| 29 | T1_FIELD_DICT_FONTDICT ) |
| 30 | T1_FIELD_STRING( "FamilyName", family_name, |
| 31 | T1_FIELD_DICT_FONTDICT ) |
| 32 | T1_FIELD_STRING( "Weight", weight, |
| 33 | T1_FIELD_DICT_FONTDICT ) |
David Turner | 1c9a1ca | 2000-05-24 21:12:02 +0000 | [diff] [blame] | 34 | |
Werner Lemberg | 65ba724 | 2003-05-30 09:12:50 +0000 | [diff] [blame] | 35 | /* we use pointers to detect modifications made by synthetic fonts */ |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 36 | T1_FIELD_NUM ( "ItalicAngle", italic_angle, |
| 37 | T1_FIELD_DICT_FONTDICT ) |
| 38 | T1_FIELD_BOOL ( "isFixedPitch", is_fixed_pitch, |
| 39 | T1_FIELD_DICT_FONTDICT ) |
| 40 | T1_FIELD_NUM ( "UnderlinePosition", underline_position, |
| 41 | T1_FIELD_DICT_FONTDICT ) |
| 42 | T1_FIELD_NUM ( "UnderlineThickness", underline_thickness, |
| 43 | T1_FIELD_DICT_FONTDICT ) |
David Turner | 01ca4da | 2009-03-03 13:28:59 +0000 | [diff] [blame] | 44 | |
| 45 | #undef FT_STRUCTURE |
| 46 | #define FT_STRUCTURE PS_FontExtraRec |
| 47 | #undef T1CODE |
| 48 | #define T1CODE T1_FIELD_LOCATION_FONT_EXTRA |
| 49 | |
Werner Lemberg | 05bf687 | 2008-12-18 06:32:10 +0000 | [diff] [blame] | 50 | T1_FIELD_NUM ( "FSType", fs_type, |
| 51 | T1_FIELD_DICT_FONTDICT ) |
David Turner | 1c9a1ca | 2000-05-24 21:12:02 +0000 | [diff] [blame] | 52 | |
Werner Lemberg | e72c9fe | 2000-07-31 18:59:02 +0000 | [diff] [blame] | 53 | #undef FT_STRUCTURE |
David Turner | 2964417 | 2002-02-28 18:59:37 +0000 | [diff] [blame] | 54 | #define FT_STRUCTURE PS_PrivateRec |
David Turner | 34f1c2f | 2000-08-23 22:47:44 +0000 | [diff] [blame] | 55 | #undef T1CODE |
David Turner | 429978b | 2002-03-14 10:09:35 +0000 | [diff] [blame] | 56 | #define T1CODE T1_FIELD_LOCATION_PRIVATE |
David Turner | 1c9a1ca | 2000-05-24 21:12:02 +0000 | [diff] [blame] | 57 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 58 | T1_FIELD_NUM ( "UniqueID", unique_id, |
| 59 | T1_FIELD_DICT_FONTDICT | T1_FIELD_DICT_PRIVATE ) |
| 60 | T1_FIELD_NUM ( "lenIV", lenIV, |
| 61 | T1_FIELD_DICT_PRIVATE ) |
| 62 | T1_FIELD_NUM ( "LanguageGroup", language_group, |
| 63 | T1_FIELD_DICT_PRIVATE ) |
| 64 | T1_FIELD_NUM ( "password", password, |
| 65 | T1_FIELD_DICT_PRIVATE ) |
Werner Lemberg | 7fa51b5 | 2000-07-08 19:51:42 +0000 | [diff] [blame] | 66 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 67 | T1_FIELD_FIXED_1000( "BlueScale", blue_scale, |
| 68 | T1_FIELD_DICT_PRIVATE ) |
| 69 | T1_FIELD_NUM ( "BlueShift", blue_shift, |
| 70 | T1_FIELD_DICT_PRIVATE ) |
| 71 | T1_FIELD_NUM ( "BlueFuzz", blue_fuzz, |
| 72 | T1_FIELD_DICT_PRIVATE ) |
Werner Lemberg | 7fa51b5 | 2000-07-08 19:51:42 +0000 | [diff] [blame] | 73 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 74 | T1_FIELD_NUM_TABLE ( "BlueValues", blue_values, 14, |
| 75 | T1_FIELD_DICT_PRIVATE ) |
| 76 | T1_FIELD_NUM_TABLE ( "OtherBlues", other_blues, 10, |
| 77 | T1_FIELD_DICT_PRIVATE ) |
| 78 | T1_FIELD_NUM_TABLE ( "FamilyBlues", family_blues, 14, |
| 79 | T1_FIELD_DICT_PRIVATE ) |
| 80 | T1_FIELD_NUM_TABLE ( "FamilyOtherBlues", family_other_blues, 10, |
| 81 | T1_FIELD_DICT_PRIVATE ) |
David Turner | 1c9a1ca | 2000-05-24 21:12:02 +0000 | [diff] [blame] | 82 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 83 | T1_FIELD_NUM_TABLE2( "StdHW", standard_width, 1, |
| 84 | T1_FIELD_DICT_PRIVATE ) |
| 85 | T1_FIELD_NUM_TABLE2( "StdVW", standard_height, 1, |
| 86 | T1_FIELD_DICT_PRIVATE ) |
| 87 | T1_FIELD_NUM_TABLE2( "MinFeature", min_feature, 2, |
| 88 | T1_FIELD_DICT_PRIVATE ) |
Werner Lemberg | 7fa51b5 | 2000-07-08 19:51:42 +0000 | [diff] [blame] | 89 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 90 | T1_FIELD_NUM_TABLE ( "StemSnapH", snap_widths, 12, |
| 91 | T1_FIELD_DICT_PRIVATE ) |
| 92 | T1_FIELD_NUM_TABLE ( "StemSnapV", snap_heights, 12, |
| 93 | T1_FIELD_DICT_PRIVATE ) |
David Turner | 1c9a1ca | 2000-05-24 21:12:02 +0000 | [diff] [blame] | 94 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 95 | T1_FIELD_FIXED ( "ExpansionFactor", expansion_factor, |
| 96 | T1_FIELD_DICT_PRIVATE ) |
Werner Lemberg | 7fd2018 | 2008-08-04 18:46:37 +0000 | [diff] [blame] | 97 | T1_FIELD_BOOL ( "ForceBold", force_bold, |
| 98 | T1_FIELD_DICT_PRIVATE ) |
| 99 | |
Werner Lemberg | 7fa51b5 | 2000-07-08 19:51:42 +0000 | [diff] [blame] | 100 | |
Werner Lemberg | e72c9fe | 2000-07-31 18:59:02 +0000 | [diff] [blame] | 101 | #undef FT_STRUCTURE |
David Turner | 2964417 | 2002-02-28 18:59:37 +0000 | [diff] [blame] | 102 | #define FT_STRUCTURE T1_FontRec |
David Turner | 34f1c2f | 2000-08-23 22:47:44 +0000 | [diff] [blame] | 103 | #undef T1CODE |
David Turner | 429978b | 2002-03-14 10:09:35 +0000 | [diff] [blame] | 104 | #define T1CODE T1_FIELD_LOCATION_FONT_DICT |
David Turner | 1c9a1ca | 2000-05-24 21:12:02 +0000 | [diff] [blame] | 105 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 106 | T1_FIELD_KEY ( "FontName", font_name, T1_FIELD_DICT_FONTDICT ) |
| 107 | T1_FIELD_NUM ( "PaintType", paint_type, T1_FIELD_DICT_FONTDICT ) |
| 108 | T1_FIELD_NUM ( "FontType", font_type, T1_FIELD_DICT_FONTDICT ) |
Jens Claudius | 9950adc | 2006-08-13 12:14:36 +0000 | [diff] [blame] | 109 | T1_FIELD_FIXED( "StrokeWidth", stroke_width, T1_FIELD_DICT_FONTDICT ) |
David Turner | 1c9a1ca | 2000-05-24 21:12:02 +0000 | [diff] [blame] | 110 | |
Werner Lemberg | 1a380e0 | 2006-07-14 18:28:08 +0000 | [diff] [blame] | 111 | |
David Turner | 8db6a07 | 2002-07-11 11:26:21 +0000 | [diff] [blame] | 112 | #undef FT_STRUCTURE |
| 113 | #define FT_STRUCTURE FT_BBox |
| 114 | #undef T1CODE |
| 115 | #define T1CODE T1_FIELD_LOCATION_BBOX |
| 116 | |
Jens Claudius | 9950adc | 2006-08-13 12:14:36 +0000 | [diff] [blame] | 117 | T1_FIELD_BBOX( "FontBBox", xMin, T1_FIELD_DICT_FONTDICT ) |
David Turner | 8db6a07 | 2002-07-11 11:26:21 +0000 | [diff] [blame] | 118 | |
Werner Lemberg | d1b7475 | 2000-08-24 16:29:15 +0000 | [diff] [blame] | 119 | |
Werner Lemberg | 1a380e0 | 2006-07-14 18:28:08 +0000 | [diff] [blame] | 120 | #ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT |
| 121 | |
| 122 | #undef FT_STRUCTURE |
| 123 | #define FT_STRUCTURE T1_FaceRec |
| 124 | #undef T1CODE |
| 125 | #define T1CODE T1_FIELD_LOCATION_FACE |
| 126 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 127 | T1_FIELD_NUM( "NDV", ndv_idx, T1_FIELD_DICT_PRIVATE ) |
| 128 | T1_FIELD_NUM( "CDV", cdv_idx, T1_FIELD_DICT_PRIVATE ) |
Werner Lemberg | 1a380e0 | 2006-07-14 18:28:08 +0000 | [diff] [blame] | 129 | |
| 130 | |
| 131 | #undef FT_STRUCTURE |
| 132 | #define FT_STRUCTURE PS_BlendRec |
| 133 | #undef T1CODE |
| 134 | #define T1CODE T1_FIELD_LOCATION_BLEND |
| 135 | |
Werner Lemberg | 1234299 | 2006-08-19 11:18:09 +0000 | [diff] [blame] | 136 | T1_FIELD_NUM_TABLE( "DesignVector", default_design_vector, |
| 137 | T1_MAX_MM_DESIGNS, T1_FIELD_DICT_FONTDICT ) |
Werner Lemberg | 1a380e0 | 2006-07-14 18:28:08 +0000 | [diff] [blame] | 138 | |
| 139 | |
| 140 | #endif /* T1_CONFIG_OPTION_NO_MM_SUPPORT */ |
| 141 | |
| 142 | |
Werner Lemberg | 7fa51b5 | 2000-07-08 19:51:42 +0000 | [diff] [blame] | 143 | /* END */ |