freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [type42] Fix `FT_Get_PS_Font_Private` f


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] [type42] Fix `FT_Get_PS_Font_Private` for this format.
Date: Fri, 11 Feb 2022 18:38:09 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/type42/t42drivr.c
    ... ... @@ -150,22 +150,13 @@
    150 150
       }
    
    151 151
     
    
    152 152
     
    
    153
    -  static FT_Error
    
    154
    -  t42_ps_get_font_private( FT_Face         face,
    
    155
    -                           PS_PrivateRec*  afont_private )
    
    156
    -  {
    
    157
    -    *afont_private = ((T42_Face)face)->type1.private_dict;
    
    158
    -
    
    159
    -    return FT_Err_Ok;
    
    160
    -  }
    
    161
    -
    
    162
    -
    
    163 153
       static const FT_Service_PsInfoRec  t42_service_ps_info =
    
    164 154
       {
    
    165 155
         (PS_GetFontInfoFunc)   t42_ps_get_font_info,    /* ps_get_font_info    */
    
    166 156
         (PS_GetFontExtraFunc)  t42_ps_get_font_extra,   /* ps_get_font_extra   */
    
    167 157
         (PS_HasGlyphNamesFunc) t42_ps_has_glyph_names,  /* ps_has_glyph_names  */
    
    168
    -    (PS_GetFontPrivateFunc)t42_ps_get_font_private, /* ps_get_font_private */
    
    158
    +    /* Type42 fonts don't have a Private dict */
    
    159
    +    (PS_GetFontPrivateFunc)NULL,                    /* ps_get_font_private */
    
    169 160
         /* not implemented */
    
    170 161
         (PS_GetFontValueFunc)  NULL                     /* ps_get_font_value   */
    
    171 162
       };
    


  • reply via email to

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