diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h index 1976b33af..2ee6144ec 100644 --- a/include/freetype/config/ftoption.h +++ b/include/freetype/config/ftoption.h @@ -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 /************************************************************************** diff --git a/modules.cfg b/modules.cfg index 8ffee3780..548893213 100644 --- a/modules.cfg +++ b/modules.cfg @@ -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. # diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index 89a25bc73..ff56638eb 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -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];