From e5bcbf95a8134e4629613bc02381bf8eef9501ad Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 1 Apr 2005 23:57:31 +0000 Subject: [PATCH] Add comment about hard-coded dropout mode. --- src/raster/ftraster.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c index 0ba27e828..76aaa2e06 100644 --- a/src/raster/ftraster.c +++ b/src/raster/ftraster.c @@ -4,7 +4,7 @@ /* */ /* The FreeType glyph rasterizer (body). */ /* */ -/* Copyright 1996-2001, 2002, 2003 by */ +/* Copyright 1996-2001, 2002, 2003, 2005 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -2984,6 +2984,9 @@ Set_High_Precision( RAS_VARS ras.outline.flags & FT_OUTLINE_HIGH_PRECISION ); ras.scale_shift = ras.precision_shift; + /* Drop-out mode 2 is hard-coded since this is the only mode used */ + /* on Windows platforms. Using other modes, as specified by the */ + /* font, results in misplaced pixels. */ ras.dropOutControl = 2; ras.second_pass = (FT_Byte)( !( ras.outline.flags & FT_OUTLINE_SINGLE_PASS ) ); @@ -3048,6 +3051,9 @@ Set_High_Precision( RAS_VARS ras.outline.flags & FT_OUTLINE_HIGH_PRECISION ); ras.scale_shift = ras.precision_shift + 1; + /* Drop-out mode 2 is hard-coded since this is the only mode used */ + /* on Windows platforms. Using other modes, as specified by the */ + /* font, results in misplaced pixels. */ ras.dropOutControl = 2; ras.second_pass = !( ras.outline.flags & FT_OUTLINE_SINGLE_PASS );