compilation fixes

This commit is contained in:
Anurag Thakur 2023-10-01 00:44:48 +05:30
parent c107e5a76e
commit f3ba8614f6
1 changed files with 4 additions and 3 deletions

View File

@ -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 );