freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/bdf/bdflib.c (_bdf_parse_{start,g


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/bdf/bdflib.c (_bdf_parse_{start,glyphs}): Use appropriate scanner.
Date: Tue, 21 Sep 2021 14:39:24 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/bdf/bdflib.c
    ... ... @@ -1609,7 +1609,7 @@
    1609 1609
           if ( error )
    
    1610 1610
             goto Exit;
    
    1611 1611
     
    
    1612
    -      glyph->swidth = (unsigned short)_bdf_atoul( p->list.field[1] );
    
    1612
    +      glyph->swidth = _bdf_atous( p->list.field[1] );
    
    1613 1613
           p->flags |= BDF_SWIDTH_;
    
    1614 1614
     
    
    1615 1615
           goto Exit;
    
    ... ... @@ -1622,7 +1622,7 @@
    1622 1622
           if ( error )
    
    1623 1623
             goto Exit;
    
    1624 1624
     
    
    1625
    -      glyph->dwidth = (unsigned short)_bdf_atoul( p->list.field[1] );
    
    1625
    +      glyph->dwidth = _bdf_atous( p->list.field[1] );
    
    1626 1626
     
    
    1627 1627
           if ( !( p->flags & BDF_SWIDTH_ ) )
    
    1628 1628
           {
    
    ... ... @@ -2084,7 +2084,7 @@
    2084 2084
             unsigned short bpp;
    
    2085 2085
     
    
    2086 2086
     
    
    2087
    -        bpp = (unsigned short)_bdf_atos( p->list.field[4] );
    
    2087
    +        bpp = _bdf_atous( p->list.field[4] );
    
    2088 2088
     
    
    2089 2089
             /* Only values 1, 2, 4, 8 are allowed for greymap fonts. */
    
    2090 2090
             if ( bpp > 4 )
    


  • reply via email to

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