freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 2a9850c: * src/base/ftobjs.c (ft_glyphslot_reset_bima


From: Alexei Podtelezhnikov
Subject: [freetype2] master 2a9850c: * src/base/ftobjs.c (ft_glyphslot_reset_bimap): Tiny rounding tweak.
Date: Thu, 20 Sep 2018 22:41:13 -0400 (EDT)

branch: master
commit 2a9850c4fc2fd75021359346c9ffc7478f12d449
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>

    * src/base/ftobjs.c (ft_glyphslot_reset_bimap): Tiny rounding tweak.
    
    This adds pixels in case a contour goes through the center
    and they need to be turned on in the b/w rasterizer.
---
 ChangeLog         | 7 +++++++
 src/base/ftobjs.c | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 38c792a..0a15593 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2018-09-20  Alexei Podtelezhnikov  <address@hidden>
 
+       * src/base/ftobjs.c (ft_glyphslot_reset_bimap): Tiny rounding tweak.
+
+       This adds pixels in case a contour goes through the center
+       and they need to be turned on in the b/w rasterizer.
+
+2018-09-20  Alexei Podtelezhnikov  <address@hidden>
+
        [pcf] Replace charmap implementation.
 
        PCF comes with charmap lookup table, aka PCF encodings.  Using it
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index f3d8299..6509a4a 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -404,7 +404,7 @@
           cbox.xMin = cbox.xMax = ( cbox.xMin + cbox.xMax ) / 2;
       }
 
-      pbox.xMin += ( cbox.xMin + 32 ) >> 6;
+      pbox.xMin += ( cbox.xMin + 31 ) >> 6;
       pbox.xMax += ( cbox.xMax + 32 ) >> 6;
 
       if ( pbox.yMax - pbox.yMin <= 1 )
@@ -418,7 +418,7 @@
           cbox.yMin = cbox.yMax = ( cbox.yMin + cbox.yMax ) / 2;
       }
 
-      pbox.yMin += ( cbox.yMin + 32 ) >> 6;
+      pbox.yMin += ( cbox.yMin + 31 ) >> 6;
       pbox.yMax += ( cbox.yMax + 32 ) >> 6;
 
       break;



reply via email to

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