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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-layout.cc

Issue 2306383002: Blacklist GDEF tables for Padauk fonts (Closed)
Patch Set: Created 4 years, 3 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/README.chromium ('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 © 1998-2004 David Turner and Werner Lemberg 2 * Copyright © 1998-2004 David Turner and Werner Lemberg
3 * Copyright © 2006 Behdad Esfahbod 3 * Copyright © 2006 Behdad Esfahbod
4 * Copyright © 2007,2008,2009 Red Hat, Inc. 4 * Copyright © 2007,2008,2009 Red Hat, Inc.
5 * Copyright © 2012,2013 Google, Inc. 5 * Copyright © 2012,2013 Google, Inc.
6 * 6 *
7 * This is part of HarfBuzz, a text shaping library. 7 * This is part of HarfBuzz, a text shaping library.
8 * 8 *
9 * Permission is hereby granted, without written agreement and without 9 * Permission is hereby granted, without written agreement and without
10 * license or royalty fees, to use, copy, modify, and distribute this 10 * license or royalty fees, to use, copy, modify, and distribute this
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 /* sha1sum:73da7f025b238a3f737aa1fde22577a6370f77b0 himalaya.ttf from Win dows 8 */ 113 /* sha1sum:73da7f025b238a3f737aa1fde22577a6370f77b0 himalaya.ttf from Win dows 8 */
114 || (192 == gdef_len && 7254 == gpos_len && 12638 == gsub_len) 114 || (192 == gdef_len && 7254 == gpos_len && 12638 == gsub_len)
115 /* sha1sum:6e80fd1c0b059bbee49272401583160dc1e6a427 himalaya.ttf from Win dows 8.1 */ 115 /* sha1sum:6e80fd1c0b059bbee49272401583160dc1e6a427 himalaya.ttf from Win dows 8.1 */
116 || (192 == gdef_len && 7254 == gpos_len && 12690 == gsub_len) 116 || (192 == gdef_len && 7254 == gpos_len && 12690 == gsub_len)
117 /* 8d9267aea9cd2c852ecfb9f12a6e834bfaeafe44 cantarell-fonts-0.0.21/otf/Ca ntarell-Regular.otf */ 117 /* 8d9267aea9cd2c852ecfb9f12a6e834bfaeafe44 cantarell-fonts-0.0.21/otf/Ca ntarell-Regular.otf */
118 /* 983988ff7b47439ab79aeaf9a45bd4a2c5b9d371 cantarell-fonts-0.0.21/otf/Ca ntarell-Oblique.otf */ 118 /* 983988ff7b47439ab79aeaf9a45bd4a2c5b9d371 cantarell-fonts-0.0.21/otf/Ca ntarell-Oblique.otf */
119 || (188 == gdef_len && 3852 == gpos_len && 248 == gsub_len) 119 || (188 == gdef_len && 3852 == gpos_len && 248 == gsub_len)
120 /* 2c0c90c6f6087ffbfea76589c93113a9cbb0e75f cantarell-fonts-0.0.21/otf/Ca ntarell-Bold.otf */ 120 /* 2c0c90c6f6087ffbfea76589c93113a9cbb0e75f cantarell-fonts-0.0.21/otf/Ca ntarell-Bold.otf */
121 /* 55461f5b853c6da88069ffcdf7f4dd3f8d7e3e6b cantarell-fonts-0.0.21/otf/Ca ntarell-Bold-Oblique.otf */ 121 /* 55461f5b853c6da88069ffcdf7f4dd3f8d7e3e6b cantarell-fonts-0.0.21/otf/Ca ntarell-Bold-Oblique.otf */
122 || (188 == gdef_len && 3426 == gpos_len && 264 == gsub_len) 122 || (188 == gdef_len && 3426 == gpos_len && 264 == gsub_len)
123 /* 6c93b63b64e8b2c93f5e824e78caca555dc887c7 padauk-2.80/Padauk-book.ttf */
124 || (1046 == gdef_len && 17112 == gpos_len && 71788 == gsub_len)
125 /* d89b1664058359b8ec82e35d3531931125991fb9 padauk-2.80/Padauk-bookbold.tt f */
126 || (1058 == gdef_len && 17514 == gpos_len && 71794 == gsub_len)
127 /* 824cfd193aaf6234b2b4dc0cf3c6ef576c0d00ef padauk-3.0/Padauk-book.ttf */
128 || (1330 == gdef_len && 57938 == gpos_len && 109904 == gsub_len)
129 /* 91fcc10cf15e012d27571e075b3b4dfe31754a8a padauk-3.0/Padauk-bookbold.ttf */
130 || (1330 == gdef_len && 58972 == gpos_len && 109904 == gsub_len)
123 ) 131 )
124 { 132 {
125 /* Many versions of Tahoma have bad GDEF tables that incorrectly classify some spacing marks 133 /* Many versions of Tahoma have bad GDEF tables that incorrectly classify some spacing marks
126 * such as certain IPA symbols as glyph class 3. So do older versions of M icrosoft Himalaya, 134 * such as certain IPA symbols as glyph class 3. So do older versions of M icrosoft Himalaya,
127 * and the version of Cantarell shipped by Ubuntu 16.04. 135 * and the version of Cantarell shipped by Ubuntu 16.04.
128 * Nuke the GDEF tables of these fonts to avoid unwanted width-zeroing. 136 * Nuke the GDEF tables of these fonts to avoid unwanted width-zeroing.
129 * See https://bugzilla.mozilla.org/show_bug.cgi?id=1279925 137 * See https://bugzilla.mozilla.org/show_bug.cgi?id=1279925
130 * https://bugzilla.mozilla.org/show_bug.cgi?id=1279693 138 * https://bugzilla.mozilla.org/show_bug.cgi?id=1279693
131 * https://bugzilla.mozilla.org/show_bug.cgi?id=1279875 139 * https://bugzilla.mozilla.org/show_bug.cgi?id=1279875
132 */ 140 */
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 apply (proxy, plan, font, buffer); 1183 apply (proxy, plan, font, buffer);
1176 } 1184 }
1177 1185
1178 HB_INTERNAL void 1186 HB_INTERNAL void
1179 hb_ot_layout_substitute_lookup (OT::hb_apply_context_t *c, 1187 hb_ot_layout_substitute_lookup (OT::hb_apply_context_t *c,
1180 const OT::SubstLookup &lookup, 1188 const OT::SubstLookup &lookup,
1181 const hb_ot_layout_lookup_accelerator_t &accel) 1189 const hb_ot_layout_lookup_accelerator_t &accel)
1182 { 1190 {
1183 apply_string<GSUBProxy> (c, lookup, accel); 1191 apply_string<GSUBProxy> (c, lookup, accel);
1184 } 1192 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698