shithub: freetype+ttf2subf

Download patch

ref: 0409ef32686188c1947298e0fca9fbeadd23c1c3
parent: f33b237c961c41c8bda3fb2dfbc3bc71f9cfabc4
author: Werner Lemberg <[email protected]>
date: Thu Jun 11 13:32:31 EDT 2009

Increase precision for B/W rasterizer.

* src/raster/ftraster.c (Set_High_Precision): Add two more bits to
the precision.  This corrects rendering of some small glyphs, for
example, glyph `xi' in verdana.ttf at 13 ppem.  Testing with ftbench
on my GNU/Linux box I don't see a performance degradation.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-06-11  Werner Lemberg  <[email protected]>
+
+	Increase precision for B/W rasterizer.
+
+	* src/raster/ftraster.c (Set_High_Precision): Add two more bits to
+	the precision.  This corrects rendering of some small glyphs, for
+	example, glyph `xi' in verdana.ttf at 13 ppem.  Testing with ftbench
+	on my GNU/Linux box I don't see a performance degradation.
+
 2009-06-08  Michael Zucchi  <[email protected]>
 
 	Handle FT_STROKER_LINECAP_BUTT.
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -588,9 +588,9 @@
   {
     if ( High )
     {
-      ras.precision_bits   = 10;
-      ras.precision_step   = 128;
-      ras.precision_jitter = 24;
+      ras.precision_bits   = 12;
+      ras.precision_step   = 256;
+      ras.precision_jitter = 50;
     }
     else
     {