| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2010,2011 Google, Inc. | 2 * Copyright © 2010,2011 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 for (unsigned int i = 0; i < count; i++) | 114 for (unsigned int i = 0; i < count; i++) |
| 115 { | 115 { |
| 116 hb_glyph_info_t *info = &infos[i]; | 116 hb_glyph_info_t *info = &infos[i]; |
| 117 hb_glyph_position_t *pos = &positions[i]; | 117 hb_glyph_position_t *pos = &positions[i]; |
| 118 | 118 |
| 119 printf ("cluster %d glyph 0x%x at (%d,%d)+(%d,%d)\n", | 119 printf ("cluster %d glyph 0x%x at (%d,%d)+(%d,%d)\n", |
| 120 info->cluster, | 120 info->cluster, |
| 121 info->codepoint, | 121 info->codepoint, |
| 122 pos->x_offset, | 122 pos->x_offset, |
| 123 » pos->x_offset, | 123 » pos->y_offset, |
| 124 pos->x_advance, | 124 pos->x_advance, |
| 125 pos->y_advance); | 125 pos->y_advance); |
| 126 | 126 |
| 127 } | 127 } |
| 128 | 128 |
| 129 hb_buffer_destroy (buffer); | 129 hb_buffer_destroy (buffer); |
| 130 hb_font_destroy (font); | 130 hb_font_destroy (font); |
| 131 hb_face_destroy (face); | 131 hb_face_destroy (face); |
| 132 | 132 |
| 133 return 0; | 133 return 0; |
| 134 } | 134 } |
| 135 | 135 |
| 136 | 136 |
| OLD | NEW |