freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][gsoc-anurag-2023] 2 commits: Use correct index


From: Anurag Thakur (@AdbhutDev)
Subject: [Git][freetype/freetype][gsoc-anurag-2023] 2 commits: Use correct index for glyph loading
Date: Sun, 01 Oct 2023 22:33:12 +0000

Anurag Thakur pushed to branch gsoc-anurag-2023 at FreeType / FreeType

Commits:

  • ac4e7100
    by Anurag Thakur at 2023-10-02T03:12:18+05:30
    Use correct index for glyph loading
    
  • 012a28c0
    by Anurag Thakur at 2023-10-02T04:02:45+05:30
    remove log
    

1 changed file:

Changes:

  • src/base/ftobjs.c
    ... ... @@ -922,7 +922,7 @@
    922 922
         /* The validity test for `glyph_index' is performed by the */
    
    923 923
         /* font drivers.                                           */
    
    924 924
     
    
    925
    -    slot = face->garray[face->glyph->glyph_index];
    
    925
    +    slot = face->garray[glyph_index];
    
    926 926
         ft_glyphslot_clear( slot );
    
    927 927
     
    
    928 928
         driver  = face->driver;
    
    ... ... @@ -2917,10 +2917,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector
    2917 2917
         FT_UNUSED( test_mac_fonts );
    
    2918 2918
     #endif
    
    2919 2919
     
    
    2920
    -    if (args->flags & FT_OPEN_PRELOAD)
    
    2921
    -    {
    
    2922
    -      FT_TRACE0(("Requested Preload\n"));
    
    2923
    -    }
    
    2920
    +
    
    2924 2921
         
    
    2925 2922
         /* only use lower 31 bits together with sign bit */
    
    2926 2923
         if ( face_index > 0 )
    
    ... ... @@ -3141,7 +3138,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector
    3141 3138
           face->garray = (FT_GlyphSlot*)malloc(
    
    3142 3139
               face->driver->clazz->slot_object_size * face->num_glyphs );
    
    3143 3140
           //error           = FT_Set_Char_Size( face, 0, 160 * 64, 300, 300 );
    
    3144
    -      error           = FT_Set_Pixel_Sizes( face, 0, 900);
    
    3141
    +      error           = FT_Set_Pixel_Sizes( face, 0, 500);
    
    3145 3142
           // int glyph_index = FT_Get_Char_Index( face, 'A' );
    
    3146 3143
           // error           = FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_HINTING );
    
    3147 3144
     
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]