freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] gsoc-anurag-2023 c1be4f605: [wip] First prototype for benchm


From: Werner Lemberg
Subject: [freetype2] gsoc-anurag-2023 c1be4f605: [wip] First prototype for benchmarks
Date: Tue, 29 Aug 2023 15:24:21 -0400 (EDT)

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

    [wip] First prototype for benchmarks
---
 src/base/ftobjs.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 7e3c54b8d..878a7cfb0 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -2805,7 +2805,14 @@
 
         FT_Load_Glyph(face, gindex, FT_LOAD_NO_HINTING);
 
-        *face->garray[gindex]->prelines = (FT_PreLineRec){1,2,3,4, NULL}; // 
need to revise structs and pointers.
+        // *face->garray[gindex]->prelines = (FT_PreLineRec){1,2,3,4, NULL}; 
// need to revise structs and pointers.
+        FT_PreLine pl = face->garray[gindex]->prelines = 
malloc(sizeof(FT_PreLineRec));
+        pl->x1 = 0;
+        pl->x2 = 1;
+        pl->y1 = 2;
+        pl->y2 = 3;
+        pl->next = NULL;
+
 
       }
 



reply via email to

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