freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/sfnt/ttload.c: Trace formatting u


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/sfnt/ttload.c: Trace formatting updates.
Date: Tue, 02 Aug 2022 17:10:29 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • dcb5fc5b
    by Alexei Podtelezhnikov at 2022-08-02T17:10:25+00:00
    * src/sfnt/ttload.c: Trace formatting updates.

1 changed file:

Changes:

  • src/sfnt/ttload.c
    ... ... @@ -206,7 +206,7 @@
    206 206
           if ( FT_STREAM_READ_FIELDS( table_dir_entry_fields, &table ) )
    
    207 207
           {
    
    208 208
             FT_TRACE2(( "check_table_dir:"
    
    209
    -                    " can read only %d table%s in font (instead of %d)\n",
    
    209
    +                    " can read only %hu table%s in font (instead of %hu)\n",
    
    210 210
                         nn, nn == 1 ? "" : "s", sfnt->num_tables ));
    
    211 211
             sfnt->num_tables = nn;
    
    212 212
             break;
    
    ... ... @@ -216,7 +216,7 @@
    216 216
     
    
    217 217
           if ( table.Offset > stream->size )
    
    218 218
           {
    
    219
    -        FT_TRACE2(( "check_table_dir: table entry %d invalid\n", nn ));
    
    219
    +        FT_TRACE2(( "check_table_dir: table entry %hu invalid\n", nn ));
    
    220 220
             continue;
    
    221 221
           }
    
    222 222
           else if ( table.Length > stream->size - table.Offset )
    
    ... ... @@ -231,7 +231,7 @@
    231 231
               valid_entries++;
    
    232 232
             else
    
    233 233
             {
    
    234
    -          FT_TRACE2(( "check_table_dir: table entry %d invalid\n", nn ));
    
    234
    +          FT_TRACE2(( "check_table_dir: table entry %hu invalid\n", nn ));
    
    235 235
               continue;
    
    236 236
             }
    
    237 237
           }
    
    ... ... @@ -380,7 +380,7 @@
    380 380
     
    
    381 381
         /* load the table directory */
    
    382 382
     
    
    383
    -    FT_TRACE2(( "-- Number of tables: %10u\n",    sfnt.num_tables ));
    
    383
    +    FT_TRACE2(( "-- Number of tables: %10hu\n",   sfnt.num_tables ));
    
    384 384
         FT_TRACE2(( "-- Format version:   0x%08lx\n", sfnt.format_tag ));
    
    385 385
     
    
    386 386
         if ( sfnt.format_tag != TTAG_OTTO )
    
    ... ... @@ -671,8 +671,8 @@
    671 671
         if ( FT_STREAM_READ_FIELDS( header_fields, header ) )
    
    672 672
           goto Exit;
    
    673 673
     
    
    674
    -    FT_TRACE3(( "Units per EM: %4u\n", header->Units_Per_EM ));
    
    675
    -    FT_TRACE3(( "IndexToLoc:   %4d\n", header->Index_To_Loc_Format ));
    
    674
    +    FT_TRACE3(( "Units per EM: %4hu\n", header->Units_Per_EM ));
    
    675
    +    FT_TRACE3(( "IndexToLoc:   %4hd\n", header->Index_To_Loc_Format ));
    
    676 676
     
    
    677 677
       Exit:
    
    678 678
         return error;
    
    ... ... @@ -802,7 +802,7 @@
    802 802
           }
    
    803 803
         }
    
    804 804
     
    
    805
    -    FT_TRACE3(( "numGlyphs: %u\n", maxProfile->numGlyphs ));
    
    805
    +    FT_TRACE3(( "numGlyphs: %hu\n", maxProfile->numGlyphs ));
    
    806 806
     
    
    807 807
       Exit:
    
    808 808
         return error;
    
    ... ... @@ -1265,11 +1265,11 @@
    1265 1265
           }
    
    1266 1266
         }
    
    1267 1267
     
    
    1268
    -    FT_TRACE3(( "sTypoAscender:  %4d\n",   os2->sTypoAscender ));
    
    1269
    -    FT_TRACE3(( "sTypoDescender: %4d\n",   os2->sTypoDescender ));
    
    1270
    -    FT_TRACE3(( "usWinAscent:    %4u\n",   os2->usWinAscent ));
    
    1271
    -    FT_TRACE3(( "usWinDescent:   %4u\n",   os2->usWinDescent ));
    
    1272
    -    FT_TRACE3(( "fsSelection:    0x%2x\n", os2->fsSelection ));
    
    1268
    +    FT_TRACE3(( "sTypoAscender:  %4hd\n",   os2->sTypoAscender ));
    
    1269
    +    FT_TRACE3(( "sTypoDescender: %4hd\n",   os2->sTypoDescender ));
    
    1270
    +    FT_TRACE3(( "usWinAscent:    %4hu\n",   os2->usWinAscent ));
    
    1271
    +    FT_TRACE3(( "usWinDescent:   %4hu\n",   os2->usWinDescent ));
    
    1272
    +    FT_TRACE3(( "fsSelection:    0x%2hx\n", os2->fsSelection ));
    
    1273 1273
     
    
    1274 1274
       Exit:
    
    1275 1275
         return error;
    
    ... ... @@ -1468,7 +1468,7 @@
    1468 1468
           gasp_ranges[j].maxPPEM  = FT_GET_USHORT();
    
    1469 1469
           gasp_ranges[j].gaspFlag = FT_GET_USHORT();
    
    1470 1470
     
    
    1471
    -      FT_TRACE3(( "gaspRange %d: rangeMaxPPEM %5d, rangeGaspBehavior 0x%x\n",
    
    1471
    +      FT_TRACE3(( "gaspRange %hu: rangeMaxPPEM %5hu, rangeGaspBehavior 0x%hx\n",
    
    1472 1472
                       j,
    
    1473 1473
                       gasp_ranges[j].maxPPEM,
    
    1474 1474
                       gasp_ranges[j].gaspFlag ));
    


  • reply via email to

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