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

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

Issue 2622553002: Roll HarfBuzz to 1.4.1 (Closed)
Patch Set: Linux rebaselines Created 3 years, 11 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-private.hh ('k') | third_party/harfbuzz-ng/src/hb-shape-plan.h » ('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 © 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
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
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 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-private.hh ('k') | third_party/harfbuzz-ng/src/hb-shape-plan.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698