Skip to content
Commits on Source (2)
......@@ -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
/**************************************************************************
......
......@@ -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.
#
......
......@@ -2636,6 +2636,7 @@
driver = FT_DRIVER( cur[0] );
// TODO: Check the args for a "preload" flag and act accordingly
if ( args->flags & FT_OPEN_PARAMS )
{
num_params = args->num_params;
......@@ -2726,6 +2727,7 @@
/* face->driver instead. */
FT_List_Add( &face->driver->faces_list, node );
// TODO: The preload logic should be performed here
/* now allocate a glyph slot object for the face */
FT_TRACE4(( "FT_Open_Face: Creating glyph slot\n" ));
......@@ -4908,6 +4910,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];
......