dense fixes

gsoc-anurag-2023
Anurag Thakur 1 year ago
parent 78df2b651f
commit bd0c3e594e
  1. 2
      modules.cfg
  2. 9
      src/dense/ftdenserend.c

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

@ -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;
}

Loading…
Cancel
Save