Re: [Gnome-print] [PATCH] fix big i18n problem in gnome-rfont.c



On 8 Mar 2001, Lauris Kaplinski wrote:

 Hi Lauris, 

> Hello!
> 
> I'll look at your patch. I messed a lot with t fonts/encodings and got quite
> bad feeling about the whole issue - but if that works, I'll try to include
> these.

 Yes, it really fixes the problem.
 
> Btw. Do you mean, that if there is not exact match for default charset font,
> current gnome-print gives you the right size scalable latin1 font, instead of giving
> slightly bigger or smaller font with correct charset?

 Even worse - even if font of that size exists, XLib won't consider it for
some reason. Here is a sample:

[hvv@h tmp]$ xlsfonts -fn '-*-helvetica-medium-r-normal--12-*-*-*-*-*-*'
-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-koi8-1
[hvv@h tmp]$ xlsfonts -fn '-*-helvetica-medium-r-normal--12-*-*-*-*-*-*-*'
-adobe-helvetica-medium-r-normal--12-116-75-75-p-0-iso8859-1
-adobe-helvetica-medium-r-normal--12-116-75-75-p-0-iso8859-1
-adobe-helvetica-medium-r-normal--12-116-75-75-p-0-koi8-1
-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-koi8-1
-cronyx-helvetica-medium-r-normal--12-116-75-75-p-0-koi8-r
-urw-helvetica-medium-r-normal--12-116-75-75-p-0-koi8-r
[hvv@h tmp]$

 Note the number of "*" in XLFDs requested. It's with XLib from XFree86-3.3.6,
without using font server. So, my patch really fixes the problem and harmless
for locales that don't suffer from this bug in gnome-print.

> But as of print preview, the actual problem lies in gnumeric, not in gnome-print.
> All gnome-print text input expect full unicode strings. Gnumeric is currently
> completely encoding agnostic, converting all texts to unicode as if they are
> iso-8859-1. Even, if there happen to be cyrrilic fonts/fonts with cyrillic
> glyphs for gnome-print, it cannot use them, as everything is in latin1.
> 
> The another orthogonal problem I have encountered is, that many "russian" type1
> fonts are actually hacked fonts with cyrillic glyphs but latin1 glyph names. They
> happen to work correctly for completely agnostic systems, believing to deal with
> latin1, but actually dealing with some cyrillic encoding. But the DO NOT WORK with
> gnome-print, because gnome-print reads comoposes its transcoding tables according
> to the data present in font headers - i.e. latin1 glyph names, thus dealing those
> fonts as covering only latin1.
> 
> Hopefully these problems will gradually go away, as more and more programs and
> fonts become unicode aware. But these are almost unavoidable consequences of migration
> from 8-bit locales to unicode - the biggest migration laying just ahead, as migration
> to gtk+ 2.0/Pango.

 Thanks for you hints! In my tests of gnome-print and russian I forgot to
place russian afms into /usr/share/fonts/afms/adobe, so my internal tests gave
empty spaces instead of russian symbols. When I placed corret .afm (with
correct glyph names) in that dir and named them appropriately, gnome-print
test worked flawlessly! Thanks again..

 As for gnumeric - I just fixed it and will post a patch to gnumeric list
in a few minutes - so gnumeric will print in ideologically correct way with
any encoding (that GP supports).

 Thank you for working on gnome-print.

> Best wishes
> Lauris Kaplinski
> 

 Best regards,
  -Vlad





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