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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-font.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
OLDNEW
1 /* 1 /*
2 * Copyright © 2011,2014 Google, Inc. 2 * Copyright © 2011,2014 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 /* 32-bit subtables. */ 348 /* 32-bit subtables. */
349 if (!subtable) subtable = cmap->find_subtable (3, 10); 349 if (!subtable) subtable = cmap->find_subtable (3, 10);
350 if (!subtable) subtable = cmap->find_subtable (0, 6); 350 if (!subtable) subtable = cmap->find_subtable (0, 6);
351 if (!subtable) subtable = cmap->find_subtable (0, 4); 351 if (!subtable) subtable = cmap->find_subtable (0, 4);
352 /* 16-bit subtables. */ 352 /* 16-bit subtables. */
353 if (!subtable) subtable = cmap->find_subtable (3, 1); 353 if (!subtable) subtable = cmap->find_subtable (3, 1);
354 if (!subtable) subtable = cmap->find_subtable (0, 3); 354 if (!subtable) subtable = cmap->find_subtable (0, 3);
355 if (!subtable) subtable = cmap->find_subtable (0, 2); 355 if (!subtable) subtable = cmap->find_subtable (0, 2);
356 if (!subtable) subtable = cmap->find_subtable (0, 1); 356 if (!subtable) subtable = cmap->find_subtable (0, 1);
357 if (!subtable) subtable = cmap->find_subtable (0, 0); 357 if (!subtable) subtable = cmap->find_subtable (0, 0);
358 if (!subtable)(subtable = cmap->find_subtable (3, 0)) && (symbol = true); 358 if (!subtable)
359 {
360 subtable = cmap->find_subtable (3, 0);
361 if (subtable) symbol = true;
362 }
359 /* Meh. */ 363 /* Meh. */
360 if (!subtable) subtable = &OT::Null(OT::CmapSubtable); 364 if (!subtable) subtable = &OT::Null(OT::CmapSubtable);
361 365
362 /* UVS subtable. */ 366 /* UVS subtable. */
363 if (!subtable_uvs) 367 if (!subtable_uvs)
364 { 368 {
365 const OT::CmapSubtable *st = cmap->find_subtable (0, 5); 369 const OT::CmapSubtable *st = cmap->find_subtable (0, 5);
366 if (st && st->u.format == 14) 370 if (st && st->u.format == 14)
367 subtable_uvs = &st->u.format14; 371 subtable_uvs = &st->u.format14;
368 } 372 }
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 { 653 {
650 hb_ot_font_t *ot_font = _hb_ot_font_create (font->face); 654 hb_ot_font_t *ot_font = _hb_ot_font_create (font->face);
651 if (unlikely (!ot_font)) 655 if (unlikely (!ot_font))
652 return; 656 return;
653 657
654 hb_font_set_funcs (font, 658 hb_font_set_funcs (font,
655 _hb_ot_get_font_funcs (), 659 _hb_ot_get_font_funcs (),
656 ot_font, 660 ot_font,
657 (hb_destroy_func_t) _hb_ot_font_destroy); 661 (hb_destroy_func_t) _hb_ot_font_destroy);
658 } 662 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-open-type-private.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698