OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* pngshim.h */ | 3 /* pngshim.h */ |
4 /* */ | 4 /* */ |
5 /* PNG Bitmap glyph support. */ | 5 /* PNG Bitmap glyph support. */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2013 by Google, Inc. */ | 7 /* Copyright 2013 by Google, Inc. */ |
8 /* Written by Stuart Gill and Behdad Esfahbod. */ | 8 /* Written by Stuart Gill and Behdad Esfahbod. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
15 /* */ | 15 /* */ |
16 /***************************************************************************/ | 16 /***************************************************************************/ |
17 | 17 |
18 | 18 |
19 #ifndef __PNGSHIM_H__ | 19 #ifndef __PNGSHIM_H__ |
20 #define __PNGSHIM_H__ | 20 #define __PNGSHIM_H__ |
21 | 21 |
22 | 22 |
23 #include "../../include/ft2build.h" | 23 #include <ft2build.h> |
24 #include "ttload.h" | 24 #include "ttload.h" |
25 | 25 |
26 | 26 |
27 FT_BEGIN_HEADER | 27 FT_BEGIN_HEADER |
28 | 28 |
29 #ifdef FT_CONFIG_OPTION_USE_PNG | 29 #ifdef FT_CONFIG_OPTION_USE_PNG |
30 | 30 |
31 FT_LOCAL( FT_Error ) | 31 FT_LOCAL( FT_Error ) |
32 Load_SBit_Png( FT_Bitmap* map, | 32 Load_SBit_Png( FT_GlyphSlot slot, |
33 FT_Int x_offset, | 33 FT_Int x_offset, |
34 FT_Int y_offset, | 34 FT_Int y_offset, |
35 FT_Int pix_bits, | 35 FT_Int pix_bits, |
36 TT_SBit_Metrics metrics, | 36 TT_SBit_Metrics metrics, |
37 FT_Memory memory, | 37 FT_Memory memory, |
38 FT_Byte* data, | 38 FT_Byte* data, |
39 FT_UInt png_len ); | 39 FT_UInt png_len, |
| 40 FT_Bool populate_map_and_metrics ); |
40 | 41 |
41 #endif | 42 #endif |
42 | 43 |
43 FT_END_HEADER | 44 FT_END_HEADER |
44 | 45 |
45 #endif /* __PNGSHIM_H__ */ | 46 #endif /* __PNGSHIM_H__ */ |
46 | 47 |
47 | 48 |
48 /* END */ | 49 /* END */ |
OLD | NEW |