OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2012,2013 Google, Inc. | 2 * Copyright © 2012,2013 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 * | 56 * |
57 * | 57 * |
58 * Return value: | 58 * Return value: |
59 * | 59 * |
60 * Since: 1.0 | 60 * Since: 1.0 |
61 **/ | 61 **/ |
62 hb_buffer_serialize_format_t | 62 hb_buffer_serialize_format_t |
63 hb_buffer_serialize_format_from_string (const char *str, int len) | 63 hb_buffer_serialize_format_from_string (const char *str, int len) |
64 { | 64 { |
65 /* Upper-case it. */ | 65 /* Upper-case it. */ |
66 return (hb_buffer_serialize_format_t) (hb_tag_from_string (str, len) & ~0x2020
2020); | 66 return (hb_buffer_serialize_format_t) (hb_tag_from_string (str, len) & ~0x2020
2020u); |
67 } | 67 } |
68 | 68 |
69 /** | 69 /** |
70 * hb_buffer_serialize_format_to_string: | 70 * hb_buffer_serialize_format_to_string: |
71 * @format: | 71 * @format: |
72 * | 72 * |
73 * | 73 * |
74 * | 74 * |
75 * Return value: | 75 * Return value: |
76 * | 76 * |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 return _hb_buffer_deserialize_glyphs_json (buffer, | 390 return _hb_buffer_deserialize_glyphs_json (buffer, |
391 buf, buf_len, end_ptr, | 391 buf, buf_len, end_ptr, |
392 font); | 392 font); |
393 | 393 |
394 default: | 394 default: |
395 case HB_BUFFER_SERIALIZE_FORMAT_INVALID: | 395 case HB_BUFFER_SERIALIZE_FORMAT_INVALID: |
396 return false; | 396 return false; |
397 | 397 |
398 } | 398 } |
399 } | 399 } |
OLD | NEW |