pngshim.h 1.9 KB
Newer Older
M
Ming, Bai 已提交
1 2
/***************************************************************************/
/*                                                                         */
G
Grissiom 已提交
3
/*  pngshim.h                                                              */
M
Ming, Bai 已提交
4
/*                                                                         */
G
Grissiom 已提交
5
/*    PNG Bitmap glyph support.                                            */
M
Ming, Bai 已提交
6
/*                                                                         */
7 8
/*  Copyright 2013-2015 by                                                 */
/*  Google, Inc.                                                           */
G
Grissiom 已提交
9
/*  Written by Stuart Gill and Behdad Esfahbod.                            */
M
Ming, Bai 已提交
10 11 12 13 14 15 16 17 18 19
/*                                                                         */
/*  This file is part of the FreeType project, and may only be used,       */
/*  modified, and distributed under the terms of the FreeType project      */
/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
/*  this file you indicate that you have read the license and              */
/*  understand and accept it fully.                                        */
/*                                                                         */
/***************************************************************************/


G
Grissiom 已提交
20 21
#ifndef __PNGSHIM_H__
#define __PNGSHIM_H__
M
Ming, Bai 已提交
22 23


G
Grissiom 已提交
24 25
#include <ft2build.h>
#include "ttload.h"
M
Ming, Bai 已提交
26 27


G
Grissiom 已提交
28
FT_BEGIN_HEADER
M
Ming, Bai 已提交
29

G
Grissiom 已提交
30
#ifdef FT_CONFIG_OPTION_USE_PNG
M
Ming, Bai 已提交
31

G
Grissiom 已提交
32 33 34 35 36 37 38 39 40 41
  FT_LOCAL( FT_Error )
  Load_SBit_Png( FT_GlyphSlot     slot,
                 FT_Int           x_offset,
                 FT_Int           y_offset,
                 FT_Int           pix_bits,
                 TT_SBit_Metrics  metrics,
                 FT_Memory        memory,
                 FT_Byte*         data,
                 FT_UInt          png_len,
                 FT_Bool          populate_map_and_metrics );
M
Ming, Bai 已提交
42

G
Grissiom 已提交
43
#endif
M
Ming, Bai 已提交
44 45 46

FT_END_HEADER

G
Grissiom 已提交
47
#endif /* __PNGSHIM_H__ */
M
Ming, Bai 已提交
48 49 50


/* END */