dense fixes

This commit is contained in:
Anurag Thakur 2023-10-04 00:37:16 +05:30
parent 78df2b651f
commit bd0c3e594e
2 changed files with 6 additions and 5 deletions

View File

@ -100,7 +100,7 @@ HINTING_MODULES += pshinter
####
# Dense Rasterizer
#RASTER_MODULES += dense
RASTER_MODULES += dense
# Anti-aliasing rasterizer.
RASTER_MODULES += smooth

View File

@ -162,8 +162,8 @@
}
/* translate outline to render it into the bitmap */
if ( x_shift || y_shift ){
FT_Outline_Translate( outline, x_shift, y_shift );
if ( (x_shift || y_shift)&&!slot->prel_shifted ){
//FT_Outline_Translate( outline, x_shift, y_shift );
FT_PreLine pl = slot->prelines;
while (pl!=NULL)
{
@ -174,6 +174,7 @@
pl = pl->next;
}
slot->prel_shifted = 1;
}
@ -198,8 +199,8 @@
slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
}
if ( x_shift || y_shift )
FT_Outline_Translate( outline, -x_shift, -y_shift );
// if ( x_shift || y_shift )
// FT_Outline_Translate( outline, -x_shift, -y_shift );
return error;
}