OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2007,2008,2009 Red Hat, Inc. | 2 * Copyright © 2007,2008,2009 Red Hat, Inc. |
3 * | 3 * |
4 * This is part of HarfBuzz, a text shaping library. | 4 * This is part of HarfBuzz, a text shaping library. |
5 * | 5 * |
6 * Permission is hereby granted, without written agreement and without | 6 * Permission is hereby granted, without written agreement and without |
7 * license or royalty fees, to use, copy, modify, and distribute this | 7 * license or royalty fees, to use, copy, modify, and distribute this |
8 * software and its documentation for any purpose, provided that the | 8 * software and its documentation for any purpose, provided that the |
9 * above copyright notice and the following two paragraphs appear in | 9 * above copyright notice and the following two paragraphs appear in |
10 * all copies of this software. | 10 * all copies of this software. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 (const char *)g.get_script_tag(n_script)); | 117 (const char *)g.get_script_tag(n_script)); |
118 | 118 |
119 if (!script.has_default_lang_sys()) | 119 if (!script.has_default_lang_sys()) |
120 printf (" No default language system\n"); | 120 printf (" No default language system\n"); |
121 int num_langsys = script.get_lang_sys_count (); | 121 int num_langsys = script.get_lang_sys_count (); |
122 printf (" %d language system(s) found in script\n", num_langsys); | 122 printf (" %d language system(s) found in script\n", num_langsys); |
123 for (int n_langsys = script.has_default_lang_sys() ? -1 : 0; n_langsys
< num_langsys; n_langsys++) { | 123 for (int n_langsys = script.has_default_lang_sys() ? -1 : 0; n_langsys
< num_langsys; n_langsys++) { |
124 const LangSys &langsys = n_langsys == -1 | 124 const LangSys &langsys = n_langsys == -1 |
125 ? script.get_default_lang_sys () | 125 ? script.get_default_lang_sys () |
126 : script.get_lang_sys (n_langsys); | 126 : script.get_lang_sys (n_langsys); |
127 » printf (n_langsys == -1 | 127 » if (n_langsys == -1) |
128 » » ? " Default Language System\n" | 128 » printf (" Default Language System\n"); |
129 » » : " Language System %2d of %2d: %.4s\n", n_langsys, num_
langsys, | 129 » else |
130 » (const char *)script.get_lang_sys_tag (n_langsys)); | 130 » printf (" Language System %2d of %2d: %.4s\n", n_langsys, num
_langsys, |
| 131 » » (const char *)script.get_lang_sys_tag (n_langsys)); |
131 if (langsys.get_required_feature_index () == Index::NOT_FOUND_INDEX) | 132 if (langsys.get_required_feature_index () == Index::NOT_FOUND_INDEX) |
132 printf (" No required feature\n"); | 133 printf (" No required feature\n"); |
133 | 134 |
134 int num_features = langsys.get_feature_count (); | 135 int num_features = langsys.get_feature_count (); |
135 printf (" %d feature(s) found in language system\n", num_feat
ures); | 136 printf (" %d feature(s) found in language system\n", num_feat
ures); |
136 for (int n_feature = 0; n_feature < num_features; n_feature++) { | 137 for (int n_feature = 0; n_feature < num_features; n_feature++) { |
137 printf (" Feature index %2d of %2d: %d\n", n_feature, num_f
eatures, | 138 printf (" Feature index %2d of %2d: %d\n", n_feature, num_f
eatures, |
138 langsys.get_feature_index (n_feature)); | 139 langsys.get_feature_index (n_feature)); |
139 } | 140 } |
140 } | 141 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 break; | 186 break; |
186 } | 187 } |
187 } | 188 } |
188 } | 189 } |
189 } | 190 } |
190 | 191 |
191 return 0; | 192 return 0; |
192 } | 193 } |
193 | 194 |
194 | 195 |
OLD | NEW |