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



On Fri, 9 Mar 2001, Vlad Harchev wrote:

 Hi Lautis,

 Unfortunately I have a reason to complain about support of i18n in
gnome-print :(

 Two points:
1) pdfs generated by gnome-print with russian in them can't be opened by xpdf, 
	gs and acroread. I can supply samples. 

2) It seems there is no way to get string width for utf8 string - function
	gnome_font_get_width_string calls gnome_font_get_width_string_n that
	measures the width of each byte (treating each byte as a character) in
	that string. I had to resort to converting string to wchar_t[] and
	sum the values returned by the following, looping on 'i':

   gnome_font_get_glyph_width(font, gnome_font_lookup_default(font, wcs[i]) );


 Is at least 2) is supposed to be fixed?

 
> 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.

 Best regards,
  -Vlad





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