OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2009 Red Hat, Inc. | 2 * Copyright © 2009 Red Hat, Inc. |
3 * Copyright © 2011 Google, Inc. | 3 * Copyright © 2011 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #define HB_FONT_FUNCS_IMPLEMENT_CALLBACKS \ | 43 #define HB_FONT_FUNCS_IMPLEMENT_CALLBACKS \ |
44 HB_FONT_FUNC_IMPLEMENT (glyph) \ | 44 HB_FONT_FUNC_IMPLEMENT (glyph) \ |
45 HB_FONT_FUNC_IMPLEMENT (glyph_h_advance) \ | 45 HB_FONT_FUNC_IMPLEMENT (glyph_h_advance) \ |
46 HB_FONT_FUNC_IMPLEMENT (glyph_v_advance) \ | 46 HB_FONT_FUNC_IMPLEMENT (glyph_v_advance) \ |
47 HB_FONT_FUNC_IMPLEMENT (glyph_h_origin) \ | 47 HB_FONT_FUNC_IMPLEMENT (glyph_h_origin) \ |
48 HB_FONT_FUNC_IMPLEMENT (glyph_v_origin) \ | 48 HB_FONT_FUNC_IMPLEMENT (glyph_v_origin) \ |
49 HB_FONT_FUNC_IMPLEMENT (glyph_h_kerning) \ | 49 HB_FONT_FUNC_IMPLEMENT (glyph_h_kerning) \ |
50 HB_FONT_FUNC_IMPLEMENT (glyph_v_kerning) \ | 50 HB_FONT_FUNC_IMPLEMENT (glyph_v_kerning) \ |
51 HB_FONT_FUNC_IMPLEMENT (glyph_extents) \ | 51 HB_FONT_FUNC_IMPLEMENT (glyph_extents) \ |
52 HB_FONT_FUNC_IMPLEMENT (glyph_contour_point) \ | 52 HB_FONT_FUNC_IMPLEMENT (glyph_contour_point) \ |
| 53 HB_FONT_FUNC_IMPLEMENT (glyph_name) \ |
| 54 HB_FONT_FUNC_IMPLEMENT (glyph_from_name) \ |
53 /* ^--- Add new callbacks here */ | 55 /* ^--- Add new callbacks here */ |
54 | 56 |
55 struct _hb_font_funcs_t { | 57 struct _hb_font_funcs_t { |
56 hb_object_header_t header; | 58 hb_object_header_t header; |
57 | 59 |
58 hb_bool_t immutable; | 60 hb_bool_t immutable; |
59 | 61 |
60 /* Don't access these directly. Call hb_font_get_*() instead. */ | 62 /* Don't access these directly. Call hb_font_get_*() instead. */ |
61 | 63 |
62 struct { | 64 struct { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 } | 156 } |
155 | 157 |
156 | 158 |
157 private: | 159 private: |
158 inline hb_position_t em_scale (int16_t v, int scale) { return v * (int64_t) sc
ale / hb_face_get_upem (this->face); } | 160 inline hb_position_t em_scale (int16_t v, int scale) { return v * (int64_t) sc
ale / hb_face_get_upem (this->face); } |
159 }; | 161 }; |
160 | 162 |
161 | 163 |
162 | 164 |
163 #endif /* HB_FONT_PRIVATE_HH */ | 165 #endif /* HB_FONT_PRIVATE_HH */ |
OLD | NEW |