I just succeeded running current AW and tested Unicode printing patch by
Tomas Frydrych with Cyrillic. After applying the following patch:
--- xap_UnixFont.cpp-was        Mon Feb 12 00:08:55 2001
+++ xap_UnixFont.cpp    Mon Feb 12 00:11:04 2001
@@ -330,8 +330,9 @@
                }
                else
                {
-                   full_name = new char[20];
-                   *full_name = 0;
+                   full_name = new char[strlen(m_fontfile)+50];
+                   strcpy(full_name,m_fontfile);
+                   strrchr(full_name,'/')[1]=0;
                }

                if(XAP_EncodingManager::instance->isUnicodeLocale())

 it worked nice (without it, AW says "can't open encoding file
'adobe-short.u2g'" since it tries to open that file in current directory
-remember that all locale-specific fonts reside in the subdirectory of
$prefix/AbiSuite/fonts/). Of course patching ut_types.h was also required
since UT_Bool and UT_{TRUE,FALSE} has gone (BTW I think it would be better to
keep the declarations of these macros/typedefs for a while in order not to
break already existing patches horribly - so that they just work).

 Thanks, Tomas!

 Best regards,
  -Vlad


Reply via email to