mirror of https://github.com/freetype/freetype
* src/base/ftobjs.c (ft_glyphslot_reset_bimap): Tiny rounding tweak.
This adds pixels in case a contour goes through the center and they need to be turned on in the b/w rasterizer.
This commit is contained in:
parent
c1b21f47b4
commit
2a9850c4fc
|
@ -1,3 +1,10 @@
|
|||
2018-09-20 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
* src/base/ftobjs.c (ft_glyphslot_reset_bimap): Tiny rounding tweak.
|
||||
|
||||
This adds pixels in case a contour goes through the center
|
||||
and they need to be turned on in the b/w rasterizer.
|
||||
|
||||
2018-09-20 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[pcf] Replace charmap implementation.
|
||||
|
|
|
@ -404,7 +404,7 @@
|
|||
cbox.xMin = cbox.xMax = ( cbox.xMin + cbox.xMax ) / 2;
|
||||
}
|
||||
|
||||
pbox.xMin += ( cbox.xMin + 32 ) >> 6;
|
||||
pbox.xMin += ( cbox.xMin + 31 ) >> 6;
|
||||
pbox.xMax += ( cbox.xMax + 32 ) >> 6;
|
||||
|
||||
if ( pbox.yMax - pbox.yMin <= 1 )
|
||||
|
@ -418,7 +418,7 @@
|
|||
cbox.yMin = cbox.yMax = ( cbox.yMin + cbox.yMax ) / 2;
|
||||
}
|
||||
|
||||
pbox.yMin += ( cbox.yMin + 32 ) >> 6;
|
||||
pbox.yMin += ( cbox.yMin + 31 ) >> 6;
|
||||
pbox.yMax += ( cbox.yMax + 32 ) >> 6;
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue