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, | 1 /**************************************************************************** 2 * 3 * pngshim.h 4 * 5 * PNG Bitmap glyph support. 6 * 7 * Copyright (C) 2013-2019 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, |