freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] ftvalid


From: mpsuzuki
Subject: Re: [ft-devel] ftvalid
Date: Thu, 15 Jun 2006 19:39:16 +0900

On Thu, 15 Jun 2006 18:22:14 +0900 (JST)
Masatake YAMATO <address@hidden> wrote:

>Toshiya-san, could you add following code to ftvalid.c?
>
>  status = validator_function();
>
>  if ( status = FT_Err_Unimplemented_Feature ) {
>     fprintf("xx_validator module is not compiled in your libfreetype2");
>     ...

OK, following messages are enough?

Index: src/ftvalid.c
===================================================================
RCS file: /cvsroot/freetype/ft2demos/src/ftvalid.c,v
retrieving revision 1.7
diff -u -r1.7 ftvalid.c
--- src/ftvalid.c       25 Feb 2006 22:32:36 -0000      1.7
+++ src/ftvalid.c       15 Jun 2006 10:36:51 -0000
@@ -439,7 +439,10 @@
               face, 
               validation_flags, 
               &data[0], &data[1], &data[2], &data[3], &data[4] );
-      
+
+    if ( error == FT_Err_Unimplemented_Feature )
+      printf( "FT_OpenType_Validate is disabled, replace FreeType2 with 
otvalid-enabled version\n" );
+
     report_result( data, validation_flags, ot_table_spec, N_OT_TABLE_SPEC );
 
     for ( i = 0; i < N_OT_TABLE_SPEC; i++ )
@@ -489,7 +492,10 @@
               validation_flags, 
               data,
               N_GX_TABLE_SPEC );
-      
+
+    if ( error == FT_Err_Unimplemented_Feature )
+      printf( "FT_TrueTypeGX_Validate is disabled, replace FreeType2 with 
gxvalid-enabled version\n" );
+
     report_result( data, validation_flags, gx_table_spec, N_GX_TABLE_SPEC );
 
     for ( i = 0; i < N_GX_TABLE_SPEC; i++ )
@@ -552,6 +558,8 @@
               validation_flags,
               &data );
 
+    if ( error == FT_Err_Unimplemented_Feature )
+      printf( "FT_ClassicKern_Validate is disabled, replace FreeType2 with 
gtvalid-enabled version\n" );
 
     if ( data )
       printf( "pass\n" );




reply via email to

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