freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master 0ab4bab 7/7: [ftdump] Merge Print_CID_Implement


From: Werner Lemberg
Subject: [freetype2-demos] master 0ab4bab 7/7: [ftdump] Merge Print_CID_Implemented() to Print_CIDs().
Date: Fri, 5 May 2023 12:47:58 -0400 (EDT)

branch: master
commit 0ab4babc058ce084faf214b7428bc08263335746
Author: suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Commit: suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>

    [ftdump] Merge Print_CID_Implemented() to Print_CIDs().
---
 src/ftdump.c | 26 ++++++++------------------
 1 file changed, 8 insertions(+), 18 deletions(-)

diff --git a/src/ftdump.c b/src/ftdump.c
index ff65b55..9b32efa 100644
--- a/src/ftdump.c
+++ b/src/ftdump.c
@@ -516,13 +516,20 @@
    *
    */
   static void
-  Print_CID_Implemented( FT_Face  face )
+  Print_CIDs( FT_Face  face )
   {
     FT_UInt  gid = 0, max_gid = FT_UINT_MAX;
     FT_UInt  cid = 0, rng_from = 0, rng_to = 0;
     char     is_first_rng = 1;
     
 
+    if ( face->num_glyphs < 1 )
+      return;
+
+    printf( "\n" );
+    printf( "CID coverage\n" );
+    printf( "   " );
+
     if ( (FT_ULong)face->num_glyphs < FT_UINT_MAX )
       max_gid = (FT_UInt)face->num_glyphs;
 
@@ -562,23 +569,6 @@
   }
 
 
-  /*
-   * Print implemented CIDs in a compressed format.
-   */
-  static void
-  Print_CIDs( FT_Face  face )
-  {
-    if ( face->num_glyphs < 0 )
-      return;
-
-    printf( "\n" );
-    printf( "CID coverage\n" );
-    printf( "   " );
-
-    Print_CID_Implemented( face );
-  }
-
-
   /*
    * Print_CIDFontInfo_Dictionary() might be conventional,
    * but other tables, like gcid, can have ROS info too.



reply via email to

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