OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2012 Google, Inc. | 2 * Copyright © 2012 Google, 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 * Since: 0.9.7 | 282 * Since: 0.9.7 |
283 **/ | 283 **/ |
284 hb_bool_t | 284 hb_bool_t |
285 hb_shape_plan_execute (hb_shape_plan_t *shape_plan, | 285 hb_shape_plan_execute (hb_shape_plan_t *shape_plan, |
286 hb_font_t *font, | 286 hb_font_t *font, |
287 hb_buffer_t *buffer, | 287 hb_buffer_t *buffer, |
288 const hb_feature_t *features, | 288 const hb_feature_t *features, |
289 unsigned int num_features) | 289 unsigned int num_features) |
290 { | 290 { |
291 DEBUG_MSG_FUNC (SHAPE_PLAN, shape_plan, | 291 DEBUG_MSG_FUNC (SHAPE_PLAN, shape_plan, |
292 » » "num_features=%d shaper_func=%p", | 292 » » "num_features=%d shaper_func=%p, shaper_name=%s", |
293 num_features, | 293 num_features, |
294 » » shape_plan->shaper_func); | 294 » » shape_plan->shaper_func, |
| 295 » » shape_plan->shaper_name); |
295 | 296 |
296 if (unlikely (!buffer->len)) | 297 if (unlikely (!buffer->len)) |
297 return true; | 298 return true; |
298 | 299 |
299 assert (!hb_object_is_inert (buffer)); | 300 assert (!hb_object_is_inert (buffer)); |
300 assert (buffer->content_type == HB_BUFFER_CONTENT_TYPE_UNICODE); | 301 assert (buffer->content_type == HB_BUFFER_CONTENT_TYPE_UNICODE); |
301 | 302 |
302 if (unlikely (hb_object_is_inert (shape_plan))) | 303 if (unlikely (hb_object_is_inert (shape_plan))) |
303 return false; | 304 return false; |
304 | 305 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 * | 492 * |
492 * Return value: (transfer none): | 493 * Return value: (transfer none): |
493 * | 494 * |
494 * Since: 0.9.7 | 495 * Since: 0.9.7 |
495 **/ | 496 **/ |
496 const char * | 497 const char * |
497 hb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan) | 498 hb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan) |
498 { | 499 { |
499 return shape_plan->shaper_name; | 500 return shape_plan->shaper_name; |
500 } | 501 } |
OLD | NEW |