[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master 7a41cd9: * src/ftdump.c (Print_Charmaps): Decor
From: |
Alexei Podtelezhnikov |
Subject: |
[freetype2-demos] master 7a41cd9: * src/ftdump.c (Print_Charmaps): Decorate with glyph names. |
Date: |
Sun, 20 Aug 2017 22:00:13 -0400 (EDT) |
branch: master
commit 7a41cd92bcd1c10a622815df29372017c1f8f9a9
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>
* src/ftdump.c (Print_Charmaps): Decorate with glyph names.
---
ChangeLog | 4 ++++
src/ftdump.c | 12 +++++++++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fef0a2c..327374c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-08-20 Alexei Podtelezhnikov <address@hidden>
+
+ * src/ftdump.c (Print_Charmaps): Decorate with glyph names.
+
2017-07-06 Alexei Podtelezhnikov <address@hidden>
[ftstring] Tweak adjustment of spacing.
diff --git a/src/ftdump.c b/src/ftdump.c
index be9e874..f130ee4 100644
--- a/src/ftdump.c
+++ b/src/ftdump.c
@@ -473,8 +473,9 @@
if ( verbose )
{
- FT_ULong charcode;
- FT_UInt gindex;
+ FT_ULong charcode;
+ FT_UInt gindex;
+ FT_String buf[32];
FT_Set_Charmap( face, face->charmaps[i] );
@@ -482,7 +483,12 @@
charcode = FT_Get_First_Char( face, &gindex );
while ( gindex )
{
- printf( " 0x%04lx => %d\n", charcode, gindex );
+ if ( FT_HAS_GLYPH_NAMES ( face ) )
+ FT_Get_Glyph_Name( face, gindex, buf, 32 );
+ else
+ buf[0] = '\0';
+
+ printf( " 0x%04lx => %d %s\n", charcode, gindex, buf );
charcode = FT_Get_Next_Char( face, charcode, &gindex );
}
printf( "\n" );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master 7a41cd9: * src/ftdump.c (Print_Charmaps): Decorate with glyph names.,
Alexei Podtelezhnikov <=