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

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

Issue 2163983005: Roll HarfBuzz to 1.3.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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-common.h ('k') | third_party/harfbuzz-ng/src/hb-coretext.cc » ('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,2010 Red Hat, Inc. 2 * Copyright © 2009,2010 Red Hat, Inc.
3 * Copyright © 2011,2012 Google, Inc. 3 * Copyright © 2011,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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 tag[i] = str[i]; 81 tag[i] = str[i];
82 for (; i < 4; i++) 82 for (; i < 4; i++)
83 tag[i] = ' '; 83 tag[i] = ' ';
84 84
85 return HB_TAG_CHAR4 (tag); 85 return HB_TAG_CHAR4 (tag);
86 } 86 }
87 87
88 /** 88 /**
89 * hb_tag_to_string: 89 * hb_tag_to_string:
90 * @tag: 90 * @tag:
91 * @buf: (array fixed-size=4): 91 * @buf: (out caller-allocates) (array fixed-size=4) (element-type uint8_t):
92 * 92 *
93 * 93 *
94 * 94 *
95 * Since: 0.9.5 95 * Since: 0.9.5
96 **/ 96 **/
97 void 97 void
98 hb_tag_to_string (hb_tag_t tag, char *buf) 98 hb_tag_to_string (hb_tag_t tag, char *buf)
99 { 99 {
100 buf[0] = (char) (uint8_t) (tag >> 24); 100 buf[0] = (char) (uint8_t) (tag >> 24);
101 buf[1] = (char) (uint8_t) (tag >> 16); 101 buf[1] = (char) (uint8_t) (tag >> 16);
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 case HB_SCRIPT_MANICHAEAN: 500 case HB_SCRIPT_MANICHAEAN:
501 case HB_SCRIPT_MENDE_KIKAKUI: 501 case HB_SCRIPT_MENDE_KIKAKUI:
502 case HB_SCRIPT_NABATAEAN: 502 case HB_SCRIPT_NABATAEAN:
503 case HB_SCRIPT_OLD_NORTH_ARABIAN: 503 case HB_SCRIPT_OLD_NORTH_ARABIAN:
504 case HB_SCRIPT_PALMYRENE: 504 case HB_SCRIPT_PALMYRENE:
505 case HB_SCRIPT_PSALTER_PAHLAVI: 505 case HB_SCRIPT_PSALTER_PAHLAVI:
506 506
507 /* Unicode-8.0 additions */ 507 /* Unicode-8.0 additions */
508 case HB_SCRIPT_OLD_HUNGARIAN: 508 case HB_SCRIPT_OLD_HUNGARIAN:
509 509
510 /* Unicode-9.0 additions */
511 case HB_SCRIPT_ADLAM:
512
510 return HB_DIRECTION_RTL; 513 return HB_DIRECTION_RTL;
511 } 514 }
512 515
513 return HB_DIRECTION_LTR; 516 return HB_DIRECTION_LTR;
514 } 517 }
515 518
516 519
517 /* hb_user_data_array_t */ 520 /* hb_user_data_array_t */
518 521
519 bool 522 bool
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 * 598 *
596 * Since: 0.9.30 599 * Since: 0.9.30
597 **/ 600 **/
598 hb_bool_t 601 hb_bool_t
599 hb_version_atleast (unsigned int major, 602 hb_version_atleast (unsigned int major,
600 unsigned int minor, 603 unsigned int minor,
601 unsigned int micro) 604 unsigned int micro)
602 { 605 {
603 return HB_VERSION_ATLEAST (major, minor, micro); 606 return HB_VERSION_ATLEAST (major, minor, micro);
604 } 607 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-common.h ('k') | third_party/harfbuzz-ng/src/hb-coretext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698