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

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

Issue 1408003004: Roll harfbuzz-ng to 1.0.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 2 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-ft.cc ('k') | third_party/harfbuzz-ng/src/hb-object-private.hh » ('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 © 2011 Martin Hosken 2 * Copyright © 2011 Martin Hosken
3 * Copyright © 2011 SIL International 3 * Copyright © 2011 SIL International
4 * Copyright © 2011,2012 Google, Inc. 4 * Copyright © 2011,2012 Google, Inc.
5 * 5 *
6 * This is part of HarfBuzz, a text shaping library. 6 * This is part of HarfBuzz, a text shaping library.
7 * 7 *
8 * Permission is hereby granted, without written agreement and without 8 * Permission is hereby granted, without written agreement and without
9 * license or royalty fees, to use, copy, modify, and distribute this 9 * license or royalty fees, to use, copy, modify, and distribute this
10 * software and its documentation for any purpose, provided that the 10 * software and its documentation for any purpose, provided that the
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 hb_blob_destroy (tlist->blob); 131 hb_blob_destroy (tlist->blob);
132 tlist = tlist->next; 132 tlist = tlist->next;
133 free (old); 133 free (old);
134 } 134 }
135 135
136 gr_face_destroy (data->grface); 136 gr_face_destroy (data->grface);
137 137
138 free (data); 138 free (data);
139 } 139 }
140 140
141 /*
142 * Since: 0.9.10
143 */
141 gr_face * 144 gr_face *
142 hb_graphite2_face_get_gr_face (hb_face_t *face) 145 hb_graphite2_face_get_gr_face (hb_face_t *face)
143 { 146 {
144 if (unlikely (!hb_graphite2_shaper_face_data_ensure (face))) return NULL; 147 if (unlikely (!hb_graphite2_shaper_face_data_ensure (face))) return NULL;
145 return HB_SHAPER_DATA_GET (face)->grface; 148 return HB_SHAPER_DATA_GET (face)->grface;
146 } 149 }
147 150
148 151
149 /* 152 /*
150 * shaper font data 153 * shaper font data
(...skipping 14 matching lines...) Expand all
165 168
166 return gr_make_font_with_advance_fn (font->x_scale, font, &hb_graphite2_get_ad vance, face_data->grface); 169 return gr_make_font_with_advance_fn (font->x_scale, font, &hb_graphite2_get_ad vance, face_data->grface);
167 } 170 }
168 171
169 void 172 void
170 _hb_graphite2_shaper_font_data_destroy (hb_graphite2_shaper_font_data_t *data) 173 _hb_graphite2_shaper_font_data_destroy (hb_graphite2_shaper_font_data_t *data)
171 { 174 {
172 gr_font_destroy (data); 175 gr_font_destroy (data);
173 } 176 }
174 177
178 /*
179 * Since: 0.9.10
180 */
175 gr_font * 181 gr_font *
176 hb_graphite2_font_get_gr_font (hb_font_t *font) 182 hb_graphite2_font_get_gr_font (hb_font_t *font)
177 { 183 {
178 if (unlikely (!hb_graphite2_shaper_font_data_ensure (font))) return NULL; 184 if (unlikely (!hb_graphite2_shaper_font_data_ensure (font))) return NULL;
179 return HB_SHAPER_DATA_GET (font); 185 return HB_SHAPER_DATA_GET (font);
180 } 186 }
181 187
182 188
183 /* 189 /*
184 * shaper shape_plan data 190 * shaper shape_plan data
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 pPos->y_offset = gr_slot_origin_Y (is) - curradvy; 400 pPos->y_offset = gr_slot_origin_Y (is) - curradvy;
395 } 401 }
396 hb_buffer_reverse_clusters (buffer); 402 hb_buffer_reverse_clusters (buffer);
397 } 403 }
398 404
399 if (feats) gr_featureval_destroy (feats); 405 if (feats) gr_featureval_destroy (feats);
400 gr_seg_destroy (seg); 406 gr_seg_destroy (seg);
401 407
402 return true; 408 return true;
403 } 409 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ft.cc ('k') | third_party/harfbuzz-ng/src/hb-object-private.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698