freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [truetype] Ingnore FT_LOAD_NO_BITMAP in


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] [truetype] Ingnore FT_LOAD_NO_BITMAP in bitmap-only fonts.
Date: Tue, 31 Dec 2024 21:37:31 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • 4ef8eed1
    by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-12-31T16:25:50-05:00
    [truetype] Ingnore FT_LOAD_NO_BITMAP in bitmap-only fonts.
    
    For consistency with other bitmap-only fonts, we should ignore this
    flag of the font is not scalable.
    
    * src/truetype/ttgload.c (TT_Load_Glyph): Check if face is scalable
    when checking for FT_LOAD_NO_BITMAP.
    
    * docs/CHANGES: Start new chapter wtith this change.
    

2 changed files:

Changes:

  • docs/CHANGES
    1
    +CHANGES BETWEEN 2.13.3 and 2.13.4 (2025-Mmm-DD)
    
    2
    +
    
    3
    +  I. IMPORTANT CHANGES
    
    4
    +
    
    5
    +  - Bitmap-only TrueType fonts  now ignore FT_LOAD_NO_BITMAP flag  and
    
    6
    +    proceed loading bitmaps instead of giving an error.  This behavior
    
    7
    +    is documented  and  implemented  for other bitmap-only fonts.  The
    
    8
    +    flag  has always meant  to suppress the bitmap strikes in favor of
    
    9
    +    outlines, not to ban them completely.
    
    10
    +
    
    11
    +
    
    12
    +======================================================================
    
    13
    +
    
    1 14
     CHANGES BETWEEN 2.13.2 and 2.13.3 (2024-Aug-11)
    
    2 15
     
    
    3 16
       I. IMPORTANT CHANGES
    
    ... ... @@ -579,7 +592,7 @@ CHANGES BETWEEN 2.9.1 and 2.10.0 (2019-Mar-15)
    579 592
               Set text foreground color for palette index 0xFFFF.
    
    580 593
     
    
    581 594
             FT_Get_Color_Glyph_Layer
    
    582
    -          Get color layers for a given glyph (using an interator
    
    595
    +          Get color layers for a given glyph (using an iterator
    
    583 596
               object).
    
    584 597
     
    
    585 598
             FT_Bitmap_Blend
    

  • src/truetype/ttgload.c
    ... ... @@ -2427,9 +2427,10 @@
    2427 2427
     #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
    
    2428 2428
     
    
    2429 2429
         /* try to load embedded bitmap (if any) */
    
    2430
    -    if ( size->strike_index != 0xFFFFFFFFUL      &&
    
    2431
    -         ( load_flags & FT_LOAD_NO_BITMAP ) == 0 &&
    
    2432
    -         IS_DEFAULT_INSTANCE( glyph->face )      )
    
    2430
    +    if ( size->strike_index != 0xFFFFFFFFUL  &&
    
    2431
    +         !( load_flags & FT_LOAD_NO_BITMAP &&
    
    2432
    +            FT_IS_SCALABLE( glyph->face )  ) &&
    
    2433
    +         IS_DEFAULT_INSTANCE( glyph->face )  )
    
    2433 2434
         {
    
    2434 2435
           FT_Fixed  x_scale = size->root.metrics.x_scale;
    
    2435 2436
           FT_Fixed  y_scale = size->root.metrics.y_scale;
    


  • reply via email to

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