[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] gsoc-anurag-2023 ca8507613 1/2: Debug options, to be reverte
From: |
Werner Lemberg |
Subject: |
[freetype2] gsoc-anurag-2023 ca8507613 1/2: Debug options, to be reverted later |
Date: |
Sat, 12 Aug 2023 14:13:45 -0400 (EDT) |
branch: gsoc-anurag-2023
commit ca8507613418e7c6f64ed667aea959fbcc02c084
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Debug options, to be reverted later
---
include/freetype/config/ftoption.h | 8 ++++----
modules.cfg | 2 +-
src/base/ftobjs.c | 4 ++++
3 files changed, 9 insertions(+), 5 deletions(-)
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];
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] gsoc-anurag-2023 ca8507613 1/2: Debug options, to be reverted later,
Werner Lemberg <=