Index: freetype2/src/base/ftobjs.c =================================================================== RCS file: /cvs/freetype/freetype2/src/base/ftobjs.c,v retrieving revision 1.190 diff -u -r1.190 ftobjs.c --- ftobjs.c 2003/12/10 22:10:16 1.190 +++ ftobjs.c 2003/12/12 12:17:04 @@ -2032,11 +2032,11 @@ char_height = 1 * 64; /* Compute pixel sizes in 26.6 units with rounding */ - dim_x = ( char_width * horz_resolution + 36 ) / 72; - dim_y = ( char_height * vert_resolution + 36 ) / 72; + dim_x = ( ( char_width * horz_resolution + (36+32*72) ) / 72 ) & -64; + dim_y = ( ( char_height * vert_resolution + (36+32*72) ) / 72 ) & -64; - metrics->x_ppem = (FT_UShort)( ( dim_x + 32 ) >> 6 ); - metrics->y_ppem = (FT_UShort)( ( dim_y + 32 ) >> 6 ); + metrics->x_ppem = (FT_UShort)( dim_x >> 6 ); + metrics->y_ppem = (FT_UShort)( dim_y >> 6 ); metrics->x_scale = 0x10000L; metrics->y_scale = 0x10000L;