* src/truetyoe/ttdriver.c (Set_Char_Sizes): fixed a small rounding bug.
Actually, it seems that previous versions of FreeType didn't perform TrueType rounding exactly as appropriate.
This commit is contained in:
parent
562731d487
commit
1c044d7d29
@ -1,3 +1,9 @@
|
||||
2003-03-15 David Turner <david@freetype.org>
|
||||
|
||||
* src/truetyoe/ttdriver.c (Set_Char_Sizes): fixed a small rounding bug.
|
||||
Actually, it seems that previous versions of FreeType didn't perform
|
||||
TrueType rounding exactly as appropriate.
|
||||
|
||||
2003-03-14 David Turner <david@freetype.org>
|
||||
|
||||
* src/truetype/ttdriver.c: fixing the small TrueType native rendering
|
||||
|
@ -207,8 +207,8 @@
|
||||
/* we need to use rounding in the following computations. Otherwise,
|
||||
* the resulting hinted outlines will be very slightly distorted
|
||||
*/
|
||||
dim_x = ( ( ( char_width * horz_resolution ) / 72 ) + 32 ) & -64;
|
||||
dim_y = ( ( ( char_height * vert_resolution ) / 72 ) + 32 ) & -64;
|
||||
dim_x = ( ( char_width * horz_resolution + (36+32*72) ) / 72 ) & -64;
|
||||
dim_y = ( ( char_height * vert_resolution + (36+32*72) ) / 72 ) & -64;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user