Anurag Thakur pushed to branch gsoc-anurag-2023 at FreeType / FreeType
Commits:
-
c1be4f60
by Anurag Thakur at 2023-08-30T00:50:21+05:30
1 changed file:
Changes:
... | ... | @@ -2805,7 +2805,14 @@ |
2805 | 2805 | |
2806 | 2806 | FT_Load_Glyph(face, gindex, FT_LOAD_NO_HINTING);
|
2807 | 2807 | |
2808 | - *face->garray[gindex]->prelines = (FT_PreLineRec){1,2,3,4, NULL}; // need to revise structs and pointers.
|
|
2808 | + // *face->garray[gindex]->prelines = (FT_PreLineRec){1,2,3,4, NULL}; // need to revise structs and pointers.
|
|
2809 | + FT_PreLine pl = face->garray[gindex]->prelines = malloc(sizeof(FT_PreLineRec));
|
|
2810 | + pl->x1 = 0;
|
|
2811 | + pl->x2 = 1;
|
|
2812 | + pl->y1 = 2;
|
|
2813 | + pl->y2 = 3;
|
|
2814 | + pl->next = NULL;
|
|
2815 | + |
|
2809 | 2816 | |
2810 | 2817 | }
|
2811 | 2818 |