[Gnome-print] [PATCH] fix big i18n problem in gnome-rfont.c
- From: Vlad Harchev <hvv hippo ru>
- To: gnome-print helixcode com
- Subject: [Gnome-print] [PATCH] fix big i18n problem in gnome-rfont.c
- Date: Thu, 8 Mar 2001 19:53:01 +0400 (SAMT)
Hi,
Here is a patch for GP-0.25 that fixes a very serious problem in
gdf_find_measured_gdk_font(..):gnome-rfont.c. It's a missing "-*" in the
registry-encoding field - without it (i.e. when the XLFD with insufficient
number of fields is passed to XQueryFont) XLib will return some font that
matches that pattern, but that has different charset from current locale's
one. This is fatal for non-latin1 locales and without this fix, all apps will
use fonts (at least for some sizes) that don't have glyphs needed (e.g.
russian strings are unreadable in gnumeric since latin1 font is used when font
is 8 or 18 points high).
It would be nice if this fix was included with gnome-print shipped with
gnome-1.4. What do you think about this?
Unfortunately, print preview and printing using gnomep-print (and gnumeric at
least) are still totally broken with russian (since wrong glyphs - latin1
ones- are used instead of russian ones - it's impossible to read anything
printed in russian) - are you aware of that? I can provide you with any help
you need in solving this problem.
Thanks.
Best regards,
-Vlad
--- gnome-rfont.c~ Tue Nov 14 04:36:32 2000
+++ gnome-rfont.c Thu Mar 8 19:20:01 2001
@@ -1238,7 +1238,7 @@
/* Clear unimportant fields */
g_snprintf (xname, 1024, "-*-%s-%s-%s-%s-*-%d-*-*-*-*-*-%s",
- c[2], c[3], c[4], c[5], pxsize, "*" /* c[13] */);
+ c[2], c[3], c[4], c[5], pxsize, "*-*" /* c[13] */);
#ifdef VERBOSE
g_print ("Trying: %s\n", xname);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]