Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

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