freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] * src/ftgrid.c (write_header): Sh


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * src/ftgrid.c (write_header): Show page with glyph number or code.
Date: Tue, 11 Jan 2022 19:10:43 +0000

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

Commits:

1 changed file:

Changes:

  • src/ftgrid.c
    ... ... @@ -1591,6 +1591,23 @@
    1591 1591
           grWriteCellString( display->bitmap, 0, 3 * HEADER_HEIGHT,
    
    1592 1592
                              status.header, display->fore_color );
    
    1593 1593
     
    
    1594
    +    if ( handle->current_font->num_indices )
    
    1595
    +    {
    
    1596
    +      int  x;
    
    1597
    +
    
    1598
    +
    
    1599
    +      x = snprintf( status.header_buffer, BUFSIZE,
    
    1600
    +                    handle->encoding == FT_ENCODING_ORDER   ? "%d/%d" :
    
    1601
    +                    handle->encoding == FT_ENCODING_UNICODE ? "U+%04X/U+%04X" :
    
    1602
    +                                                              "0x%X/0x%X",
    
    1603
    +                    status.Num, handle->current_font->num_indices - 1 );
    
    1604
    +
    
    1605
    +      grWriteCellString( display->bitmap,
    
    1606
    +                         display->bitmap->width - 8 * x,
    
    1607
    +                         display->bitmap->rows - GR_FONT_SIZE,
    
    1608
    +                         status.header_buffer, display->fore_color );
    
    1609
    +    }
    
    1610
    +
    
    1594 1611
         if ( status.mm )
    
    1595 1612
         {
    
    1596 1613
           const char*  format = "%s axis: %.02f";
    


  • reply via email to

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