Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: third_party/harfbuzz-ng/src/main.cc

Issue 10510004: Roll harfbuzz-ng 3b8fd9c48f4bde368bf2d465c148b9743a9216ee (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/harfbuzz-ng/src/indic.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/indic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698