4 |
/* */ |
/* */ |
5 |
/* The FreeType glyph rasterizer (body). */ |
/* The FreeType glyph rasterizer (body). */ |
6 |
/* */ |
/* */ |
7 |
/* Copyright 1996-2001, 2002, 2003 by */ |
/* Copyright 1996-2001, 2002, 2003, 2005 by */ |
8 |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 |
/* */ |
/* */ |
10 |
/* This file is part of the FreeType project, and may only be used, */ |
/* This file is part of the FreeType project, and may only be used, */ |
2984 |
Set_High_Precision( RAS_VARS ras.outline.flags & |
Set_High_Precision( RAS_VARS ras.outline.flags & |
2985 |
FT_OUTLINE_HIGH_PRECISION ); |
FT_OUTLINE_HIGH_PRECISION ); |
2986 |
ras.scale_shift = ras.precision_shift; |
ras.scale_shift = ras.precision_shift; |
2987 |
|
/* Drop-out mode 2 is hard-coded since this is the only mode used */ |
2988 |
|
/* on Windows platforms. Using other modes, as specified by the */ |
2989 |
|
/* font, results in misplaced pixels. */ |
2990 |
ras.dropOutControl = 2; |
ras.dropOutControl = 2; |
2991 |
ras.second_pass = (FT_Byte)( !( ras.outline.flags & |
ras.second_pass = (FT_Byte)( !( ras.outline.flags & |
2992 |
FT_OUTLINE_SINGLE_PASS ) ); |
FT_OUTLINE_SINGLE_PASS ) ); |
3051 |
Set_High_Precision( RAS_VARS ras.outline.flags & |
Set_High_Precision( RAS_VARS ras.outline.flags & |
3052 |
FT_OUTLINE_HIGH_PRECISION ); |
FT_OUTLINE_HIGH_PRECISION ); |
3053 |
ras.scale_shift = ras.precision_shift + 1; |
ras.scale_shift = ras.precision_shift + 1; |
3054 |
|
/* Drop-out mode 2 is hard-coded since this is the only mode used */ |
3055 |
|
/* on Windows platforms. Using other modes, as specified by the */ |
3056 |
|
/* font, results in misplaced pixels. */ |
3057 |
ras.dropOutControl = 2; |
ras.dropOutControl = 2; |
3058 |
ras.second_pass = !( ras.outline.flags & FT_OUTLINE_SINGLE_PASS ); |
ras.second_pass = !( ras.outline.flags & FT_OUTLINE_SINGLE_PASS ); |
3059 |
|
|