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

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

Issue 2858683002: Roll HarfBuzz to 1.4.6 (Closed)
Patch Set: Rebase Created 3 years, 7 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/hb-common.cc ('k') | third_party/harfbuzz-ng/src/hb-face.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 release_table_data); 62 release_table_data);
63 } 63 }
64 64
65 hb_face_t * 65 hb_face_t *
66 hb_coretext_face_create (CGFontRef cg_font) 66 hb_coretext_face_create (CGFontRef cg_font)
67 { 67 {
68 return hb_face_create_for_tables (reference_table, CGFontRetain (cg_font), (hb _destroy_func_t) CGFontRelease); 68 return hb_face_create_for_tables (reference_table, CGFontRetain (cg_font), (hb _destroy_func_t) CGFontRelease);
69 } 69 }
70 70
71 71
72 HB_SHAPER_DATA_ENSURE_DECLARE(coretext, face) 72 HB_SHAPER_DATA_ENSURE_DEFINE(coretext, face)
73 HB_SHAPER_DATA_ENSURE_DECLARE(coretext, font) 73 HB_SHAPER_DATA_ENSURE_DEFINE(coretext, font)
74 74
75 75
76 /* 76 /*
77 * shaper face data 77 * shaper face data
78 */ 78 */
79 79
80 static CTFontDescriptorRef 80 static CTFontDescriptorRef
81 get_last_resort_font_desc (void) 81 get_last_resort_font_desc (void)
82 { 82 {
83 // TODO Handle allocation failures? 83 // TODO Handle allocation failures?
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 CFRelease (range_records[i].font); 1215 CFRelease (range_records[i].font);
1216 1216
1217 return ret; 1217 return ret;
1218 } 1218 }
1219 1219
1220 1220
1221 /* 1221 /*
1222 * AAT shaper 1222 * AAT shaper
1223 */ 1223 */
1224 1224
1225 HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, face)
1226 HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, font)
1227
1225 /* 1228 /*
1226 * shaper face data 1229 * shaper face data
1227 */ 1230 */
1228 1231
1229 struct hb_coretext_aat_shaper_face_data_t {}; 1232 struct hb_coretext_aat_shaper_face_data_t {};
1230 1233
1231 hb_coretext_aat_shaper_face_data_t * 1234 hb_coretext_aat_shaper_face_data_t *
1232 _hb_coretext_aat_shaper_face_data_create (hb_face_t *face) 1235 _hb_coretext_aat_shaper_face_data_create (hb_face_t *face)
1233 { 1236 {
1234 hb_blob_t *mort_blob = face->reference_table (HB_CORETEXT_TAG_MORT); 1237 hb_blob_t *mort_blob = face->reference_table (HB_CORETEXT_TAG_MORT);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 1304
1302 hb_bool_t 1305 hb_bool_t
1303 _hb_coretext_aat_shape (hb_shape_plan_t *shape_plan, 1306 _hb_coretext_aat_shape (hb_shape_plan_t *shape_plan,
1304 hb_font_t *font, 1307 hb_font_t *font,
1305 hb_buffer_t *buffer, 1308 hb_buffer_t *buffer,
1306 const hb_feature_t *features, 1309 const hb_feature_t *features,
1307 unsigned int num_features) 1310 unsigned int num_features)
1308 { 1311 {
1309 return _hb_coretext_shape (shape_plan, font, buffer, features, num_features); 1312 return _hb_coretext_shape (shape_plan, font, buffer, features, num_features);
1310 } 1313 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-common.cc ('k') | third_party/harfbuzz-ng/src/hb-face.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698