Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs
Commits:
-
58238b56
by Alexei Podtelezhnikov at 2022-01-11T14:09:14-05:00
1 changed file:
Changes:
... | ... | @@ -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";
|