freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] gsoc-anurag-2023 ec9b505f3: Close contour with line segment


From: Werner Lemberg
Subject: [freetype2] gsoc-anurag-2023 ec9b505f3: Close contour with line segment
Date: Wed, 27 Sep 2023 15:03:53 -0400 (EDT)

branch: gsoc-anurag-2023
commit ec9b505f3cb1cb15355e39c6750116350a1ba6a9
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>

    Close contour with line segment
---
 src/base/ftobjs.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index ed491dd41..35d01f092 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -2685,6 +2685,14 @@
       // FT_TRACE5(( "  line to (%.2f, %.2f)\n",
       //             (double)v_start.x / 64, (double)v_start.y / 64 ));
       // error = func_interface->line_to( &v_start, user );
+      FT_PreLine pl  = malloc(sizeof(FT_PreLineRec));
+      pl->x1 = ptr->x2;
+      pl->y1 = ptr->y2;
+      pl->x2 = v_start.x/64;
+      pl->y2 = v_start.y/64;
+      pl->next = NULL;
+      ptr->next = pl;
+      ptr = ptr->next;
       
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]