Anurag Thakur pushed to branch gsoc-anurag-2023 at FreeType / FreeType
Commits:
-
f3ba8614
by Anurag Thakur at 2023-10-01T00:44:48+05:30
1 changed file:
Changes:
... | ... | @@ -42,6 +42,7 @@ |
42 | 42 | #include <freetype/internal/services/svkern.h>
|
43 | 43 | #include <freetype/internal/services/svtteng.h>
|
44 | 44 | |
45 | +#include <math.h>
|
|
45 | 46 | #include <freetype/ftdriver.h>
|
46 | 47 | |
47 | 48 | #ifdef FT_CONFIG_OPTION_MAC_FONTS
|
... | ... | @@ -2595,7 +2596,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector |
2595 | 2596 | pl3->ismove = 0;
|
2596 | 2597 | (*ptr)->next = pl3;
|
2597 | 2598 | *ptr = (*ptr)->next;
|
2598 | - return;
|
|
2599 | + return 0;
|
|
2599 | 2600 | }
|
2600 | 2601 | |
2601 | 2602 | /*
|
... | ... | @@ -2640,7 +2641,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector |
2640 | 2641 | pl5->ismove = 0;
|
2641 | 2642 | (*ptr)->next = pl5;
|
2642 | 2643 | *ptr = (*ptr)->next;
|
2643 | - |
|
2644 | + return 0;
|
|
2644 | 2645 | }
|
2645 | 2646 | |
2646 | 2647 | |
... | ... | @@ -3140,7 +3141,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector |
3140 | 3141 | face->garray = (FT_GlyphSlot*)malloc(
|
3141 | 3142 | face->driver->clazz->slot_object_size * face->num_glyphs );
|
3142 | 3143 | //error = FT_Set_Char_Size( face, 0, 160 * 64, 300, 300 );
|
3143 | - error = FT_Set_Pixel_Sizes( face, 0, 320);
|
|
3144 | + error = FT_Set_Pixel_Sizes( face, 0, 900);
|
|
3144 | 3145 | // int glyph_index = FT_Get_Char_Index( face, 'A' );
|
3145 | 3146 | // error = FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_HINTING );
|
3146 | 3147 |