i'm from russia.
We have big problems with printing non-latin1 texts.
I found 2 patches for 0.8.1 version what solve this problem,
one add to nsPostScriptObj.cpp all that we need for correct cycillic printing
like in old IBM patch.
but other patch - it's just ugly hack for nsAFMObject

+++ mozilla/gfx/src/ps/nsAFMObject.cpp  Sat Dec 16 18:08:36 2000
@@ -776,8 +776,10 @@
     fwidth = (PRInt32)(mPSFontInfo->mAFMCharMetrics[idx].mW0x);
     //    if ( (*cptr == 0x0020) || (*cptr == 0x002c) )
     //   printf("fwidth = %d\n", fwidth);
-    if (*cptr & 0xff00)
-       fwidth = 1056;
+    if (*cptr & 0xff00) 
+       fwidth = 1056;
+    if (*cptr & 0x0400)  //cyrillic
+       fwidth = 600;  // hack!!!
     if ( (*cptr  == 0x0020) || (*cptr == 0x002c) )
       fwidth = 1056;  // space and comma are half size of a CJK width
     totallen += fwidth;

somebody have some idea how to deuglyficate this ?

Reply via email to