• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /***************************************************************************/
2 /*                                                                         */
3 /*  pngshim.h                                                              */
4 /*                                                                         */
5 /*    PNG Bitmap glyph support.                                            */
6 /*                                                                         */
7 /*  Copyright 2013-2015 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 
43 #endif
44 
45 FT_END_HEADER
46 
47 #endif /* __PNGSHIM_H__ */
48 
49 
50 /* END */
51