OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2007,2008,2009 Red Hat, Inc. | 2 * Copyright © 2007,2008,2009 Red Hat, 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. |
11 * | 11 * |
12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR | 12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES | 13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN | 14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH | 15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
16 * DAMAGE. | 16 * DAMAGE. |
17 * | 17 * |
18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, | 18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | 19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS | 20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO | 21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
23 * | 23 * |
24 * Red Hat Author(s): Behdad Esfahbod | 24 * Red Hat Author(s): Behdad Esfahbod |
25 */ | 25 */ |
26 | 26 |
| 27 #ifndef HB_OT_H_IN |
| 28 #error "Include <hb-ot.h> instead." |
| 29 #endif |
| 30 |
27 #ifndef HB_OT_LAYOUT_H | 31 #ifndef HB_OT_LAYOUT_H |
28 #define HB_OT_LAYOUT_H | 32 #define HB_OT_LAYOUT_H |
29 | 33 |
30 #include "hb-common.h" | 34 #include "hb.h" |
31 #include "hb-buffer.h" | |
32 #include "hb-font.h" | |
33 | 35 |
34 #include "hb-ot-tag.h" | 36 #include "hb-ot-tag.h" |
35 | 37 |
36 HB_BEGIN_DECLS | 38 HB_BEGIN_DECLS |
37 | 39 |
38 | 40 |
39 #define HB_OT_TAG_GDEF HB_TAG('G','D','E','F') | 41 #define HB_OT_TAG_GDEF HB_TAG('G','D','E','F') |
40 #define HB_OT_TAG_GSUB HB_TAG('G','S','U','B') | 42 #define HB_OT_TAG_GSUB HB_TAG('G','S','U','B') |
41 #define HB_OT_TAG_GPOS HB_TAG('G','P','O','S') | 43 #define HB_OT_TAG_GPOS HB_TAG('G','P','O','S') |
42 | 44 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 hb_bool_t | 175 hb_bool_t |
174 hb_ot_layout_substitute_lookup (hb_face_t *face, | 176 hb_ot_layout_substitute_lookup (hb_face_t *face, |
175 hb_buffer_t *buffer, | 177 hb_buffer_t *buffer, |
176 unsigned int lookup_index, | 178 unsigned int lookup_index, |
177 hb_mask_t mask); | 179 hb_mask_t mask); |
178 | 180 |
179 /* Should be called after all the substitute_lookup's are done */ | 181 /* Should be called after all the substitute_lookup's are done */ |
180 void | 182 void |
181 hb_ot_layout_substitute_finish (hb_buffer_t *buffer); | 183 hb_ot_layout_substitute_finish (hb_buffer_t *buffer); |
182 | 184 |
| 185 |
| 186 void |
| 187 hb_ot_layout_substitute_closure_lookup (hb_face_t *face, |
| 188 hb_set_t *glyphs, |
| 189 unsigned int lookup_index); |
| 190 |
183 /* | 191 /* |
184 * GPOS | 192 * GPOS |
185 */ | 193 */ |
186 | 194 |
187 hb_bool_t | 195 hb_bool_t |
188 hb_ot_layout_has_positioning (hb_face_t *face); | 196 hb_ot_layout_has_positioning (hb_face_t *face); |
189 | 197 |
190 /* Should be called before all the position_lookup's are done. Resets positions
to zero. */ | 198 /* Should be called before all the position_lookup's are done. Resets positions
to zero. */ |
191 void | 199 void |
192 hb_ot_layout_position_start (hb_buffer_t *buffer); | 200 hb_ot_layout_position_start (hb_buffer_t *buffer); |
193 | 201 |
194 hb_bool_t | 202 hb_bool_t |
195 hb_ot_layout_position_lookup (hb_font_t *font, | 203 hb_ot_layout_position_lookup (hb_font_t *font, |
196 hb_buffer_t *buffer, | 204 hb_buffer_t *buffer, |
197 unsigned int lookup_index, | 205 unsigned int lookup_index, |
198 hb_mask_t mask); | 206 hb_mask_t mask); |
199 | 207 |
200 /* Should be called after all the position_lookup's are done */ | 208 /* Should be called after all the position_lookup's are done */ |
201 void | 209 void |
202 hb_ot_layout_position_finish (hb_buffer_t *buffer); | 210 hb_ot_layout_position_finish (hb_buffer_t *buffer); |
203 | 211 |
204 | 212 |
205 HB_END_DECLS | 213 HB_END_DECLS |
206 | 214 |
207 #endif /* HB_OT_LAYOUT_H */ | 215 #endif /* HB_OT_LAYOUT_H */ |
OLD | NEW |