[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] gsoc-anurag-2023 ac4e71009 1/2: Use correct index for glyph
From: |
Werner Lemberg |
Subject: |
[freetype2] gsoc-anurag-2023 ac4e71009 1/2: Use correct index for glyph loading |
Date: |
Sun, 1 Oct 2023 18:33:17 -0400 (EDT) |
branch: gsoc-anurag-2023
commit ac4e710098cbb8bfbf83c55149bc29eb17e43441
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Use correct index for glyph loading
---
src/base/ftobjs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index e45dad73f..e40593fb4 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -922,7 +922,7 @@
/* The validity test for `glyph_index' is performed by the */
/* font drivers. */
- slot = face->garray[face->glyph->glyph_index];
+ slot = face->garray[glyph_index];
ft_glyphslot_clear( slot );
driver = face->driver;
@@ -3141,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, 900);
+ error = FT_Set_Pixel_Sizes( face, 0, 500);
// 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 ac4e71009 1/2: Use correct index for glyph loading,
Werner Lemberg <=