freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 6f2bf6a58 1/2: [psaux] Improve tracing.


From: Werner Lemberg
Subject: [freetype2] master 6f2bf6a58 1/2: [psaux] Improve tracing.
Date: Thu, 14 Dec 2023 01:18:40 -0500 (EST)

branch: master
commit 6f2bf6a582eae387566a470353ed8fd6c74f4cca
Author: Skef Iterum <github@skef.org>
Commit: Werner Lemberg <wl@gnu.org>

    [psaux] Improve tracing.
    
    * src/psaux/psintrp.c (cf2_doBlend, cf2_interpT2CharString [cf2_cmdBLEND]):
    Show blended values.
---
 src/psaux/psintrp.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/psaux/psintrp.c b/src/psaux/psintrp.c
index b9d5071ee..6b445a996 100644
--- a/src/psaux/psintrp.c
+++ b/src/psaux/psintrp.c
@@ -429,6 +429,8 @@
     base  = cf2_stack_count( opStack ) - numOperands;
     delta = base + numBlends;
 
+    FT_TRACE6(( " (" ));
+
     for ( i = 0; i < numBlends; i++ )
     {
       const CF2_Fixed*  weight = &blend->BV[1];
@@ -443,10 +445,14 @@
                                     cf2_stack_getReal( opStack,
                                                        delta++ ) ) );
 
+      FT_TRACE6(( "%f ", (float) sum / 65536 ));
+
       /* store blended result  */
       cf2_stack_setReal( opStack, i + base, sum );
     }
 
+    FT_TRACE6(( "blended)\n" ));
+
     /* leave only `numBlends' results on stack */
     cf2_stack_pop( opStack, numOperands - numBlends );
   }
@@ -735,7 +741,7 @@
           FT_UInt  numBlends;
 
 
-          FT_TRACE4(( " blend\n" ));
+          FT_TRACE4(( " blend" ));
 
           if ( !font->isCFF2 )
             break;    /* clear stack & ignore */



reply via email to

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