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