| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2009 Red Hat, Inc. | 2 * Copyright © 2009 Red Hat, Inc. |
| 3 * Copyright © 2012 Google, Inc. | 3 * Copyright © 2012 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 * | 366 * |
| 367 * Since: 0.9.2 | 367 * Since: 0.9.2 |
| 368 **/ | 368 **/ |
| 369 hb_bool_t | 369 hb_bool_t |
| 370 hb_shape_full (hb_font_t *font, | 370 hb_shape_full (hb_font_t *font, |
| 371 hb_buffer_t *buffer, | 371 hb_buffer_t *buffer, |
| 372 const hb_feature_t *features, | 372 const hb_feature_t *features, |
| 373 unsigned int num_features, | 373 unsigned int num_features, |
| 374 const char * const *shaper_list) | 374 const char * const *shaper_list) |
| 375 { | 375 { |
| 376 hb_shape_plan_t *shape_plan = hb_shape_plan_create_cached (font->face, &buffer
->props, features, num_features, shaper_list); | 376 hb_shape_plan_t *shape_plan = hb_shape_plan_create_cached2 (font->face, &buffe
r->props, |
| 377 » » » » » » » features, num_feat
ures, |
| 378 » » » » » » » font->coords, font
->num_coords, |
| 379 » » » » » » » shaper_list); |
| 377 hb_bool_t res = hb_shape_plan_execute (shape_plan, font, buffer, features, num
_features); | 380 hb_bool_t res = hb_shape_plan_execute (shape_plan, font, buffer, features, num
_features); |
| 378 hb_shape_plan_destroy (shape_plan); | 381 hb_shape_plan_destroy (shape_plan); |
| 379 | 382 |
| 380 if (res) | 383 if (res) |
| 381 buffer->content_type = HB_BUFFER_CONTENT_TYPE_GLYPHS; | 384 buffer->content_type = HB_BUFFER_CONTENT_TYPE_GLYPHS; |
| 382 return res; | 385 return res; |
| 383 } | 386 } |
| 384 | 387 |
| 385 /** | 388 /** |
| 386 * hb_shape: | 389 * hb_shape: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 397 * Since: 0.9.2 | 400 * Since: 0.9.2 |
| 398 **/ | 401 **/ |
| 399 void | 402 void |
| 400 hb_shape (hb_font_t *font, | 403 hb_shape (hb_font_t *font, |
| 401 hb_buffer_t *buffer, | 404 hb_buffer_t *buffer, |
| 402 const hb_feature_t *features, | 405 const hb_feature_t *features, |
| 403 unsigned int num_features) | 406 unsigned int num_features) |
| 404 { | 407 { |
| 405 hb_shape_full (font, buffer, features, num_features, NULL); | 408 hb_shape_full (font, buffer, features, num_features, NULL); |
| 406 } | 409 } |
| OLD | NEW |