[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] gsoc-anurag-2023 f3ba8614f: compilation fixes
From: |
Werner Lemberg |
Subject: |
[freetype2] gsoc-anurag-2023 f3ba8614f: compilation fixes |
Date: |
Sat, 30 Sep 2023 15:47:31 -0400 (EDT) |
branch: gsoc-anurag-2023
commit f3ba8614f65d095bd90c04d1b696ec04ffca247b
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
compilation fixes
---
src/base/ftobjs.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index d97b4585f..e45dad73f 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -42,6 +42,7 @@
#include <freetype/internal/services/svkern.h>
#include <freetype/internal/services/svtteng.h>
+#include <math.h>
#include <freetype/ftdriver.h>
#ifdef FT_CONFIG_OPTION_MAC_FONTS
@@ -2595,7 +2596,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control,
FT_Vector *from, FT_Vector
pl3->ismove = 0;
(*ptr)->next = pl3;
*ptr = (*ptr)->next;
- return;
+ return 0;
}
/*
@@ -2640,7 +2641,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control,
FT_Vector *from, FT_Vector
pl5->ismove = 0;
(*ptr)->next = pl5;
*ptr = (*ptr)->next;
-
+ return 0;
}
@@ -3140,7 +3141,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control,
FT_Vector *from, FT_Vector
face->garray = (FT_GlyphSlot*)malloc(
face->driver->clazz->slot_object_size * face->num_glyphs );
//error = FT_Set_Char_Size( face, 0, 160 * 64, 300, 300 );
- error = FT_Set_Pixel_Sizes( face, 0, 320);
+ error = FT_Set_Pixel_Sizes( face, 0, 900);
// int glyph_index = FT_Get_Char_Index( face, 'A' );
// error = FT_Load_Glyph( face, glyph_index,
FT_LOAD_NO_HINTING );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] gsoc-anurag-2023 f3ba8614f: compilation fixes,
Werner Lemberg <=