freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] 2 commits: * graph/win32/grwin32.


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] 2 commits: * graph/win32/grwin32.c (Message_Process): Return TRUE on WM_SIZING.
Date: Sat, 04 Feb 2023 03:48:32 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs

Commits:

  • 0e00a682
    by Alexei Podtelezhnikov at 2023-02-03T22:44:17-05:00
    * graph/win32/grwin32.c (Message_Process): Return TRUE on WM_SIZING.
    
  • 6e609535
    by Alexei Podtelezhnikov at 2023-02-03T22:45:49-05:00
    * src/ftcommon.c (my_face_requester): Recognize t1 file extension.
    

2 changed files:

Changes:

  • graph/win32/grwin32.c
    ... ... @@ -624,7 +624,7 @@ LRESULT CALLBACK Message_Process( HWND handle, UINT mess,
    624 624
             PostThreadMessage( surface->host, WM_RESIZE, SIZE_RESTORED,
    
    625 625
                                MAKELPARAM( WndRect.right, WndRect.bottom ) );
    
    626 626
           }
    
    627
    -      break;
    
    627
    +      return TRUE;  /* required */
    
    628 628
     
    
    629 629
         case WM_EXITSIZEMOVE:
    
    630 630
           {
    

  • src/ftcommon.c
    ... ... @@ -300,7 +300,8 @@
    300 300
             size_t  path_len      = strlen( font->filepathname );
    
    301 301
             char*   suffix        = (char *)strrchr( font->filepathname, '.' );
    
    302 302
             int     has_extension = suffix                                 &&
    
    303
    -                                ( strcasecmp( suffix, ".pfa" ) == 0 ||
    
    303
    +                                ( strcasecmp( suffix, ".t1"  ) == 0 ||
    
    304
    +                                  strcasecmp( suffix, ".pfa" ) == 0 ||
    
    304 305
                                       strcasecmp( suffix, ".pfb" ) == 0 );
    
    305 306
     
    
    306 307
             size_t  ext_path_len;
    
    ... ... @@ -309,8 +310,8 @@
    309 310
     
    
    310 311
             if ( has_extension )
    
    311 312
             {
    
    312
    -          /* Ignore `.pfa' or `.pfb' extension in the original font path. */
    
    313
    -          path_len -= 4;
    
    313
    +          /* Ignore `.t1' `.pfa',`.pfb' extension in the original path. */
    
    314
    +          path_len = suffix - font->filepathname;
    
    314 315
             }
    
    315 316
     
    
    316 317
             ext_path_len = path_len + 5;       /* 4 bytes extension + '\0' */
    


  • reply via email to

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