[gnome-cyr] [Bug 10932] New - width of non-latin1 text is measured incorrectly when printed from ANY Evo component - this breaks layout horribly
- From: bugzilla-daemon rocky ximian com
- To: ettore ximian com, louie ximian com
- Cc: gnome-cyr gnome org
- Subject: [gnome-cyr] [Bug 10932] New - width of non-latin1 text is measured incorrectly when printed from ANY Evo component - this breaks layout horribly
- Date: 26 Sep 2001 07:10:46 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by hvv hippo ru
http://bugzilla.ximian.com/show_bug.cgi?id=10932
--- shadow/10932 Wed Sep 26 03:10:46 2001
+++ shadow/10932.tmp.4860 Wed Sep 26 03:10:46 2001
@@ -0,0 +1,54 @@
+Bug#: 10932
+Product: Evolution
+Version: 0.13.99
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: Miscellaneous
+AssignedTo: ettore ximian com
+ReportedBy: hvv hippo ru
+QAContact: louie ximian com
+TargetMilestone: ---
+URL:
+Summary: width of non-latin1 text is measured incorrectly when printed from ANY Evo component - this breaks layout horribly
+
+Currently Ximian ships a very old version of gnome-print (0.25), that contains
+A LOT of cirtical i18n-related bugs. gnome-print-0.29 with most of the bugs
+fixed is available since May.. Not shipping gnome-print-0.29 is a biggest
+mistery of Ximian GNOME to me (add to that the fact that the main developer
+of gnome print is hired by Ximian)!!!
+
+ One of the most serious i18n problems of gnome-print is that
+ gnome_font_get_width_string
+and
+ gnome_font_get_width_string_n
+used EVEREYWHERE in Evo and gtkhtml to measure string width treat their
+argument as string iso-8859-1 encoding. This means that it measures width of
+non-latin1 strings incorrectly, leading to completely broken look of tables
+(e.g. mail headers are printed in table), right-aligned and centered text
+when printed!
+
+ In gnome-print above 0.25 there were introduced functions to measure a
+width of a string in utf8, named
+ gnome_font_get_width_utf8
+and
+ gnome_font_get_width_utf8_sized
+with same prototypes.
+ See last lines of
+ http://cvs.gnome.org/lxr/source/gnome-print/libgnomeprint/gnome-font.h
+for Lauris' comments on them.
+
+ Please use these functions instead of gnome_font_get_width_string{,_n} to fix
+severe problem of measuring width of non-latin1 strings.
+ And of course please include the latest version of gnome-print in XG.
+
+PS: of course there is a way to use low-level gnome-print-0.25 functions to
+measure string width in arbitrary encodings, see how I did it for
+Gnumeric in src/print-cell.c:get_width_string_n(). But including a latest
+gnome-print in XG is much better solution..
+
+PS: I posted it also to gnome-hackers ximian com,
+http://lists.helixcode.com/archives/public/evolution-hackers/2001-September/003663.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]