#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftstream.h>
#include <freetype/tttags.h>
#include FT_CONFIG_STANDARD_LIBRARY_H
#if defined( TT_CONFIG_OPTION_EMBEDDED_BITMAPS ) && \
defined( FT_CONFIG_OPTION_USE_PNG )
#define PNG_SKIP_SETJMP_CHECK …
#include <png.h>
#include "pngshim.h"
#include "sferrors.h"
static unsigned int
multiply_alpha( unsigned int alpha,
unsigned int color )
{ … }
static void
premultiply_data( png_structp png,
png_row_infop row_info,
png_bytep data )
{ … }
static void
convert_bytes_to_data( png_structp png,
png_row_infop row_info,
png_bytep data )
{ … }
static void
error_callback( png_structp png,
png_const_charp error_msg )
{ … }
static void
warning_callback( png_structp png,
png_const_charp error_msg )
{ … }
static void
read_data_from_FT_Stream( png_structp png,
png_bytep data,
png_size_t length )
{ … }
FT_LOCAL_DEF( 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,
FT_Bool metrics_only )
{ … }
#else
typedef int pngshim_dummy_;
#endif