OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Red Hat, Inc. | 2 * Copyright © 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 |
(...skipping 16 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "hb.h" | 30 #include "hb.h" |
31 | 31 |
32 #include "hb-font.h" | 32 #include "hb-font.h" |
33 | 33 |
34 #include <ft2build.h> | 34 #include <ft2build.h> |
35 #include FT_FREETYPE_H | 35 #include FT_FREETYPE_H |
36 | 36 |
37 HB_BEGIN_DECLS | 37 HB_BEGIN_DECLS |
38 | 38 |
39 | 39 /* Note: FreeType is not thread-safe. Hence, these functions are not either. */ |
40 hb_font_funcs_t * | |
41 hb_ft_get_font_funcs (void); | |
42 | 40 |
43 hb_face_t * | 41 hb_face_t * |
44 hb_ft_face_create (FT_Face ft_face, | 42 hb_ft_face_create (FT_Face ft_face, |
45 hb_destroy_func_t destroy); | 43 hb_destroy_func_t destroy); |
46 | 44 |
47 /* Note: This function is not thread-safe */ | |
48 hb_face_t * | 45 hb_face_t * |
49 hb_ft_face_create_cached (FT_Face ft_face); | 46 hb_ft_face_create_cached (FT_Face ft_face); |
50 | 47 |
51 hb_font_t * | 48 hb_font_t * |
52 hb_ft_font_create (FT_Face ft_face, | 49 hb_ft_font_create (FT_Face ft_face, |
53 hb_destroy_func_t destroy); | 50 hb_destroy_func_t destroy); |
54 | 51 |
55 | 52 |
| 53 |
| 54 /* Makes an hb_font_t use FreeType internally to implement font functions. */ |
| 55 void |
| 56 hb_ft_font_set_funcs (hb_font_t *font); |
| 57 |
| 58 FT_Face |
| 59 hb_ft_font_get_face (hb_font_t *font); |
| 60 |
| 61 |
56 HB_END_DECLS | 62 HB_END_DECLS |
57 | 63 |
58 #endif /* HB_FT_H */ | 64 #endif /* HB_FT_H */ |
OLD | NEW |