gsoc-anurag-2023
Anurag Thakur 1 year ago
parent 168eace51c
commit 382949cdea
  1. 16
      src/base/ftobjs.c
  2. 8
      src/dense/ftdense.c

@ -2634,10 +2634,10 @@
FT_PreLine pl = malloc(sizeof(FT_PreLineRec));
pl->x1 = v_start.x/64;
pl->y1 = v_start.y/64;
pl->x2 = v_start.x/64;
pl->y2 = v_start.y/64;
pl->x1 = v_start.x;
pl->y1 = v_start.y;
pl->x2 = v_start.x;
pl->y2 = v_start.y;
pl->next = NULL;
pl->ismove = 1;
@ -2674,8 +2674,8 @@
FT_PreLine pl = malloc(sizeof(FT_PreLineRec));
pl->x1 = ptr->x2;
pl->y1 = ptr->y2;
pl->x2 = vec.x/64;
pl->y2 = vec.y/64;
pl->x2 = vec.x;
pl->y2 = vec.y;
pl->next = NULL;
pl->ismove = 0;
ptr->next = pl;
@ -2696,8 +2696,8 @@
FT_PreLine pl2 = malloc(sizeof(FT_PreLineRec));
pl2->x1 = ptr->x2;
pl2->y1 = ptr->y2;
pl2->x2 = v_start.x/64;
pl2->y2 = v_start.y/64;
pl2->x2 = v_start.x;
pl2->y2 = v_start.y;
pl2->next = NULL;
pl->ismove = 0;
ptr->next = pl2;

@ -439,10 +439,10 @@ dense_render_glyph( dense_worker* worker, const FT_Bitmap* target, FT_PreLine pl
FT_Error error = dense_move_to(&point1, worker);
while (pl!=NULL)
{
point1.x = pl->x1/4;
point1.y = pl->y1/4;
point2.x = pl->x2/4;
point2.y = pl->y2/4;
point1.x = pl->x1;
point1.y = pl->y1;
point2.x = pl->x2;
point2.y = pl->y2;
if(pl->ismove){
dense_move_to(&point2, worker);

Loading…
Cancel
Save