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

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

Issue 503073002: roll harfbuzz 0d2c2f238bf0a847ecd55a70cc0f081f18a053ac:d457e3f0ff9b27616a34e4cc110d3edbf8796841 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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/google.patch ('k') | third_party/harfbuzz-ng/src/hb-ot-font.cc » ('j') | 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 © 2012,2013 Mozilla Foundation. 2 * Copyright © 2012,2013 Mozilla Foundation.
3 * Copyright © 2012,2013 Google, Inc. 3 * Copyright © 2012,2013 Google, Inc.
4 * 4 *
5 * This is part of HarfBuzz, a text shaping library. 5 * This is part of HarfBuzz, a text shaping library.
6 * 6 *
7 * Permission is hereby granted, without written agreement and without 7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this 8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the 9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in 10 * above copyright notice and the following two paragraphs appear in
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 #define kStylisticAlternativesType 35 320 #define kStylisticAlternativesType 35
321 #define kSwashAlternatesOffSelector 3 321 #define kSwashAlternatesOffSelector 3
322 #define kSwashAlternatesOnSelector 2 322 #define kSwashAlternatesOnSelector 2
323 #define kThirdWidthTextSelector 3 323 #define kThirdWidthTextSelector 3
324 #define kTraditionalNamesCharactersSelector 14 324 #define kTraditionalNamesCharactersSelector 14
325 #define kUpperCasePetiteCapsSelector 2 325 #define kUpperCasePetiteCapsSelector 2
326 #define kUpperCaseSmallCapsSelector 1 326 #define kUpperCaseSmallCapsSelector 1
327 #define kUpperCaseType 38 327 #define kUpperCaseType 38
328 328
329 /* Table data courtesy of Apple. */ 329 /* Table data courtesy of Apple. */
330 struct feature_mapping_t { 330 static const struct feature_mapping_t {
331 FourCharCode otFeatureTag; 331 FourCharCode otFeatureTag;
332 uint16_t aatFeatureType; 332 uint16_t aatFeatureType;
333 uint16_t selectorToEnable; 333 uint16_t selectorToEnable;
334 uint16_t selectorToDisable; 334 uint16_t selectorToDisable;
335 } feature_mappings[] = { 335 } feature_mappings[] = {
336 { 'c2pc', kUpperCaseType, kUpperCasePetiteCapsSelector, kDefaultUpperCaseSelector }, 336 { 'c2pc', kUpperCaseType, kUpperCasePetiteCapsSelector, kDefaultUpperCaseSelector },
337 { 'c2sc', kUpperCaseType, kUpperCaseSmallCapsSelector, kDefaultUpperCaseSelector }, 337 { 'c2sc', kUpperCaseType, kUpperCaseSmallCapsSelector, kDefaultUpperCaseSelector },
338 { 'calt', kContextualAlternatesType, kContextualAlternatesOnSelector, kContextualAlternatesOffSelector }, 338 { 'calt', kContextualAlternatesType, kContextualAlternatesOnSelector, kContextualAlternatesOffSelector },
339 { 'case', kCaseSensitiveLayoutType, kCaseSensitiveLayoutOnSelector, kCaseSensitiveLayoutOffSelector }, 339 { 'case', kCaseSensitiveLayoutType, kCaseSensitiveLayoutOnSelector, kCaseSensitiveLayoutOffSelector },
340 { 'clig', kLigaturesType, kContextualLigaturesOnSelector, kContextualLigaturesOffSelector }, 340 { 'clig', kLigaturesType, kContextualLigaturesOnSelector, kContextualLigaturesOffSelector },
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 1146
1147 hb_bool_t 1147 hb_bool_t
1148 _hb_coretext_aat_shape (hb_shape_plan_t *shape_plan, 1148 _hb_coretext_aat_shape (hb_shape_plan_t *shape_plan,
1149 hb_font_t *font, 1149 hb_font_t *font,
1150 hb_buffer_t *buffer, 1150 hb_buffer_t *buffer,
1151 const hb_feature_t *features, 1151 const hb_feature_t *features,
1152 unsigned int num_features) 1152 unsigned int num_features)
1153 { 1153 {
1154 return _hb_coretext_shape (shape_plan, font, buffer, features, num_features); 1154 return _hb_coretext_shape (shape_plan, font, buffer, features, num_features);
1155 } 1155 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/google.patch ('k') | third_party/harfbuzz-ng/src/hb-ot-font.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698