ref: 21c2b3905cb3473da3dd729190f2fb2b66ce1140
parent: 5d93a3fc8d0243cf9722501c7be62b6acbbd775d
author: Werner Lemberg <[email protected]>
date: Thu Aug 30 05:52:08 EDT 2018
Minor.
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -373,7 +373,7 @@
/* taking into account the origin shift */
FT_Outline_Get_CBox( outline, &cbox );
- /* rough estimte of pixel box */
+ /* rough estimate of pixel box */
pbox.xMin = ( cbox.xMin >> 6 ) + ( x_shift >> 6 );
pbox.yMin = ( cbox.yMin >> 6 ) + ( y_shift >> 6 );
pbox.xMax = ( cbox.xMax >> 6 ) + ( x_shift >> 6 );
@@ -398,9 +398,7 @@
cbox.xMax = cbox.xMin + 64;
}
else if ( pbox.xMax - pbox.xMin == 1 )
- {
cbox.xMin = cbox.xMax = ( cbox.xMin + cbox.xMax ) / 2;
- }
pbox.xMin += ( cbox.xMin + 32 ) >> 6;
pbox.xMax += ( cbox.xMax + 32 ) >> 6;
@@ -411,9 +409,7 @@
cbox.yMax = cbox.yMin + 64;
}
else if ( pbox.yMax - pbox.yMin == 1 )
- {
cbox.yMin = cbox.yMax = ( cbox.yMin + cbox.yMax ) / 2;
- }
pbox.yMin += ( cbox.yMin + 32 ) >> 6;
pbox.yMax += ( cbox.yMax + 32 ) >> 6;