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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 printf (" %d lookup(s) found in table\n", num_lookups); | 163 printf (" %d lookup(s) found in table\n", num_lookups); |
164 for (int n_lookup = 0; n_lookup < num_lookups; n_lookup++) { | 164 for (int n_lookup = 0; n_lookup < num_lookups; n_lookup++) { |
165 const Lookup &lookup = g.get_lookup (n_lookup); | 165 const Lookup &lookup = g.get_lookup (n_lookup); |
166 printf (" Lookup %2d of %2d: type %d, props 0x%04X\n", n_lookup, nu
m_lookups, | 166 printf (" Lookup %2d of %2d: type %d, props 0x%04X\n", n_lookup, nu
m_lookups, |
167 lookup.get_type(), lookup.get_props()); | 167 lookup.get_type(), lookup.get_props()); |
168 } | 168 } |
169 | 169 |
170 } | 170 } |
171 break; | 171 break; |
172 | 172 |
173 case GDEF::Tag: | 173 case GDEF::tableTag: |
174 { | 174 { |
175 | 175 |
176 const GDEF &gdef = *CastP<GDEF> (font_data + table.offset); | 176 const GDEF &gdef = *CastP<GDEF> (font_data + table.offset); |
177 | 177 |
178 printf (" Has %sglyph classes\n", | 178 printf (" Has %sglyph classes\n", |
179 gdef.has_glyph_classes () ? "" : "no "); | 179 gdef.has_glyph_classes () ? "" : "no "); |
180 printf (" Has %smark attachment types\n", | 180 printf (" Has %smark attachment types\n", |
181 gdef.has_mark_attachment_types () ? "" : "no "); | 181 gdef.has_mark_attachment_types () ? "" : "no "); |
182 printf (" Has %sattach points\n", | 182 printf (" Has %sattach points\n", |
183 gdef.has_attach_points () ? "" : "no "); | 183 gdef.has_attach_points () ? "" : "no "); |
184 printf (" Has %slig carets\n", | 184 printf (" Has %slig carets\n", |
185 gdef.has_lig_carets () ? "" : "no "); | 185 gdef.has_lig_carets () ? "" : "no "); |
186 printf (" Has %smark sets\n", | 186 printf (" Has %smark sets\n", |
187 gdef.has_mark_sets () ? "" : "no "); | 187 gdef.has_mark_sets () ? "" : "no "); |
188 break; | 188 break; |
189 } | 189 } |
190 } | 190 } |
191 } | 191 } |
192 } | 192 } |
193 | 193 |
194 return 0; | 194 return 0; |
195 } | 195 } |
196 | 196 |
197 | 197 |
OLD | NEW |