OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2011,2012 Google, Inc. | 2 * Copyright © 2011,2012 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 hb_codepoint_t a, | 84 hb_codepoint_t a, |
85 hb_codepoint_t b, | 85 hb_codepoint_t b, |
86 hb_codepoint_t *ab) | 86 hb_codepoint_t *ab) |
87 { | 87 { |
88 return (bool) c->unicode->compose (a, b, ab); | 88 return (bool) c->unicode->compose (a, b, ab); |
89 } | 89 } |
90 | 90 |
91 static inline void | 91 static inline void |
92 set_glyph (hb_glyph_info_t &info, hb_font_t *font) | 92 set_glyph (hb_glyph_info_t &info, hb_font_t *font) |
93 { | 93 { |
94 font->get_nominal_glyph (info.codepoint, &info.glyph_index()); | 94 (void) font->get_nominal_glyph (info.codepoint, &info.glyph_index()); |
95 } | 95 } |
96 | 96 |
97 static inline void | 97 static inline void |
98 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) | 98 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) |
99 { | 99 { |
100 buffer->cur().glyph_index() = glyph; | 100 buffer->cur().glyph_index() = glyph; |
101 buffer->output_glyph (unichar); /* This is very confusing indeed. */ | 101 buffer->output_glyph (unichar); /* This is very confusing indeed. */ |
102 _hb_glyph_info_set_unicode_props (&buffer->prev(), buffer); | 102 _hb_glyph_info_set_unicode_props (&buffer->prev(), buffer); |
103 } | 103 } |
104 | 104 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 | 406 |
407 /* Blocked, or doesn't compose. */ | 407 /* Blocked, or doesn't compose. */ |
408 buffer->next_glyph (); | 408 buffer->next_glyph (); |
409 | 409 |
410 if (_hb_glyph_info_get_modified_combining_class (&buffer->prev()) == 0) | 410 if (_hb_glyph_info_get_modified_combining_class (&buffer->prev()) == 0) |
411 starter = buffer->out_len - 1; | 411 starter = buffer->out_len - 1; |
412 } | 412 } |
413 buffer->swap_buffers (); | 413 buffer->swap_buffers (); |
414 | 414 |
415 } | 415 } |
OLD | NEW |