Debug options, to be reverted later

This commit is contained in:
Anurag Thakur 2023-08-12 23:29:01 +05:30
parent 3926f77efd
commit ca85076134
3 changed files with 9 additions and 5 deletions

View File

@ -430,8 +430,8 @@ FT_BEGIN_HEADER
* Do not `#undef` these macros here since the build system might define
* them for certain configurations only.
*/
/* #define FT_DEBUG_LEVEL_ERROR */
/* #define FT_DEBUG_LEVEL_TRACE */
#define FT_DEBUG_LEVEL_ERROR
#define FT_DEBUG_LEVEL_TRACE
/**************************************************************************
@ -647,7 +647,7 @@ FT_BEGIN_HEADER
* Do not `#undef` this macro here, since the build system might define it
* for certain configurations only.
*/
#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
// #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
/**************************************************************************
@ -681,7 +681,7 @@ FT_BEGIN_HEADER
* [1]
* https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
*/
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
// #define TT_CONFIG_OPTION_SUBPIXEL_HINTING
/**************************************************************************

View File

@ -38,7 +38,7 @@ FONT_MODULES += truetype
# TrueType preload font driver.
#
# This driver needs the `sfnt' module.
FONT_MODULES += preload
#FONT_MODULES += preload
# PostScript Type 1 font driver.
#

View File

@ -4908,6 +4908,10 @@
pixel_modes[slot->bitmap.pixel_mode],
slot->bitmap.pixel_mode ));
if(pitch<0)
{
pitch = -pitch;
}
for ( i = 0; i < rows; i++ )
for ( j = 0; j < pitch; j++ )
coverage += bitmap.buffer[i * pitch + j];