Re: [Gnome-print] gdf_find_measured_gdk_font: proposed way to fixsevere i18n bug
- From: Lauris Kaplinski <lauris ximian com>
- To: Vlad Harchev <hvv hippo ru>
- Cc: gnome-print ximian com
- Subject: Re: [Gnome-print] gdf_find_measured_gdk_font: proposed way to fixsevere i18n bug
- Date: 05 Oct 2001 00:58:00 +0200
Hello!
No, we probably cannot push 0.30 at moment. But this is not top
important at all. The biggest problem with 0.29 was, that it used
bigger library version, than old 0.25. I.e. to take advantage of
it, distro team had to repackage all programs, using gnome-print.
0.30 is identically versioned to 0.29, so pushing it is minor
issue distribution-wise. Due to upgraded fontmap stuff it needs some
serious binary package testing still.
Best wishes,
Lauris Kaplinski
On Thu, 2001-10-04 at 20:41, Vlad Harchev wrote:
> Thank you very much for applying it!
> It would be marvelous if you made 0.30 ASAP since
> 1) the bug your commit fixed is very critical
> 2) ximian is going to push latest GP this week - and may be there are chances
> that we will succeed in pushing 0.30 instead of 0.29.
>
> Anyway, AFAIU, 0.29 has some problems (not cleaning temp files) so there are
> other reasons to release 0.30 beside the very important i18n fix you've just
> commited.
>
> What do you think?
>
> Best regards,
> -Vlad
>
> > Hello!
> >
> > OK. I applied your changes. Hope everything will work ;-)
> >
> > Best wishes,
> > Lauris Kaplinski
> >
> > On Tue, 2001-09-25 at 14:31, Vlad Harchev wrote:
> > >
> > > Hello,
> > >
> > > gnome-rfont.c:gdf_find_measured_gdk_font is currently used internally to
> > > find find out the X font that matches the given printer font as close as
> > > possible. It tries to build an XLFD of the font with a lot of "*" in it, and
> > > asks X server (by calling gdk_font_load) to load some font that has such XLFD.
> > > Among other parts of XLFD that are set to '*' is the registry-encoding pair.
> > > This means that X will return font with ANY encoding!! And it really DOES!
> > > E.g. in gnumeric, the text in cells is drawn with the font with random encoding,
> > > text fragments of the same font family, size and weight are drawn using same
> > > font, but when e.g. style or size or weight is changed for some fragment,
> > > it may be redrawn with the font with different encoding (think about russian
> > > text drawn with iso1 font). This of course makes apps that use gnome-print
> > > unusable (user just can't read what they type right now or what they typed
> > > in other cell).
> > >
> > > There is a solution to this problem - just
> > > sed -e 's/gdk_font_load/gdk_fontset_load/g' gnome-rfont.c
> > > This really fixes that problem - X i18n machinery will care to return only
> > > fonts with the current locale's encoding. This means fonts with wrong encoding
> > > will never be returned by gdf_find_measured_gdk_font().
> > > Also it fixes other i18n problems (CJK fonts can be used iff they are loaded
> > > using gdk_fontset_load, they won't work if you use gdk_font_load).
> > >
> > > Could you please make this modification to gnome-rfont.c?
> > >
> > > Best regards,
> > > -Vlad
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]