From 0409ef32686188c1947298e0fca9fbeadd23c1c3 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 11 Jun 2009 17:32:31 +0200 Subject: [PATCH] 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. --- ChangeLog | 9 +++++++++ src/raster/ftraster.c | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 36b621027..6edf1050c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-06-11 Werner Lemberg + + 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 Handle FT_STROKER_LINECAP_BUTT. diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c index 12a8dff3e..5ade13bef 100644 --- 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 {