[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master 58238b5: * src/ftgrid.c (write_header): Show pa
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] master 58238b5: * src/ftgrid.c (write_header): Show page with glyph number or code. |
Date: |
Tue, 11 Jan 2022 14:10:52 -0500 (EST) |
branch: master
commit 58238b56d9519868b77601377821fb51957de13b
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftgrid.c (write_header): Show page with glyph number or code.
---
src/ftgrid.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/ftgrid.c b/src/ftgrid.c
index 83f282f..d025507 100644
--- a/src/ftgrid.c
+++ b/src/ftgrid.c
@@ -1591,6 +1591,23 @@
grWriteCellString( display->bitmap, 0, 3 * HEADER_HEIGHT,
status.header, display->fore_color );
+ if ( handle->current_font->num_indices )
+ {
+ int x;
+
+
+ x = snprintf( status.header_buffer, BUFSIZE,
+ handle->encoding == FT_ENCODING_ORDER ? "%d/%d" :
+ handle->encoding == FT_ENCODING_UNICODE ? "U+%04X/U+%04X" :
+ "0x%X/0x%X",
+ status.Num, handle->current_font->num_indices - 1 );
+
+ grWriteCellString( display->bitmap,
+ display->bitmap->width - 8 * x,
+ display->bitmap->rows - GR_FONT_SIZE,
+ status.header_buffer, display->fore_color );
+ }
+
if ( status.mm )
{
const char* format = "%s axis: %.02f";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master 58238b5: * src/ftgrid.c (write_header): Show page with glyph number or code.,
Werner Lemberg <=