freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 00ae29fcd: [pshinter] Tune PSH_STRONG_THRESHOLD_MAXIM


From: Werner Lemberg
Subject: [freetype2] master 00ae29fcd: [pshinter] Tune PSH_STRONG_THRESHOLD_MAXIMUM value.
Date: Sun, 13 Feb 2022 00:00:38 -0500 (EST)

branch: master
commit 00ae29fcd26a3425db5b3f15793796cb6e958411
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    [pshinter] Tune PSH_STRONG_THRESHOLD_MAXIMUM value.
    
    Before the change, the hinting engine frequently confused horizontal
    stem and serif hints making some stems too thin and some serifs too
    thick. The value was tuned using serif fonts from the URW+ base 35
    collection.
    
    * src/pshinter/pshalgo.c [PSH_STRONG_THRESHOLD_MAXIMUM]: s/30/12/.
---
 src/pshinter/pshalgo.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/pshinter/pshalgo.c b/src/pshinter/pshalgo.c
index a237f6c41..dca539766 100644
--- a/src/pshinter/pshalgo.c
+++ b/src/pshinter/pshalgo.c
@@ -1548,8 +1548,9 @@
   /* the accepted shift for strong points in fractional pixels */
 #define PSH_STRONG_THRESHOLD  32
 
-  /* the maximum shift value in font units */
-#define PSH_STRONG_THRESHOLD_MAXIMUM  30
+  /* the maximum shift value in font units tuned to distinguish */
+  /* between stems and serifs in URW+ font collection           */
+#define PSH_STRONG_THRESHOLD_MAXIMUM  12
 
 
   /* find strong points in a glyph */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]