[gnome-cyr] Re: [Evolution-hackers] printing non-latin1 text from Evo is broken (fwd)
- From: Vlad Harchev <hvv hippo ru>
- To: gnome-cyr gnome org
- Subject: [gnome-cyr] Re: [Evolution-hackers] printing non-latin1 text from Evo is broken (fwd)
- Date: Mon, 1 Oct 2001 18:23:40 +0500 (SAMST)
ðÒÉ×ÅÔ!
÷ÏÔ ÔÁËÉÅ ×ÏÔ ÄÅÌÁ..
Best regards,
-Vlad
---------- Forwarded message ----------
Date: 01 Oct 2001 08:48:05 -0400
From: Luis Villa <louie ximian com>
Cc: Ettore Perazzoli <ettore ximian com>, Vlad Harchev <hvv hippo ru>,
evolution-hackers ximian com, Larry Ewing <lewing ximian com>
To: Radek Doulík <rodo ximian com>
Subject: Re: [Evolution-hackers] printing non-latin1 text from Evo is broken
X-Mailer: Evolution/0.14.99+cvs.2001.09.30.08.08 (Preview Release)
As I understand it from talking to Peter this weekend, we'll have two
beta 5 builds: one with 0.25 (on Monday) and one with 0.29 (sometime
later.) We'll do this because otherwise beta 5 will not go out until
0.29 ships, which may be several days and possibly all week because of
the large number of packages that need to be re-built against the new
library and QAd.
Luis
On Mon, 2001-10-01 at 08:24, Radek Doulík wrote:
> On Wed, 2001-09-26 at 21:06, Ettore Perazzoli wrote:
> > 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)!!!
> >
> >
> > This is a known problem, and we are going to have a new gnome-print
> > package pushed next week if all goes well. Then we can start fixing
> > these issues...
>
> Here is patch for gtkhtml. I am keeping it separated as I am not sure if
> we will have newer gnome-print for Beta5.
>
> Best wishes
> Radek
> --
> Radek Doulík Hacker monkey
> rodo ximian com Ximian, Inc.
>
> ----
>
> Index: configure.in
> ===================================================================
> RCS file: /cvs/gnome/gtkhtml/configure.in,v
> retrieving revision 1.138
> diff -u -r1.138 configure.in
> --- configure.in 2001/09/22 18:36:36 1.138
> +++ configure.in 2001/10/01 12:10:56
> @@ -241,14 +241,14 @@
> dnl ******************************
> dnl GnomePrint checking
> dnl ******************************
> -AC_MSG_CHECKING(for GnomePrint libraries >= 0.25)
> +AC_MSG_CHECKING(for GnomePrint libraries >= 0.29)
> if gnome-config --libs print > /dev/null 2>&1; then
> vers=`gnome-config --modversion print | sed -e "s/gnome-print-//" -e 's/cvs$//' -e 's/pre$//' | \
> awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`
> - if test "$vers" -ge 25; then
> + if test "$vers" -ge 29; then
> AC_MSG_RESULT(found)
> else
> - AC_MSG_ERROR(You need at least GNOME print 0.25 for this version of GtkHTML)
> + AC_MSG_ERROR(You need at least GNOME print 0.29 for this version of GtkHTML)
> fi
> else
> AC_MSG_ERROR(Did not find GnomePrint installed)
> Index: src/htmlprinter.c
> ===================================================================
> RCS file: /cvs/gnome/gtkhtml/src/htmlprinter.c,v
> retrieving revision 1.36
> diff -u -r1.36 htmlprinter.c
> --- src/htmlprinter.c 2001/09/25 19:47:13 1.36
> +++ src/htmlprinter.c 2001/10/01 12:11:05
> @@ -551,7 +551,7 @@
> gnome_print_setlinewidth (printer->print_context, 1.0);
> gnome_print_setlinecap (printer->print_context, GDK_CAP_BUTT);
>
> - text_width = gnome_font_get_width_string_n (font, text, len);
> + text_width = gnome_font_get_width_utf8_sized (font, text, len);
> if (painter->font_style & GTK_HTML_FONT_STYLE_UNDERLINE) {
> descender = gnome_font_get_descender (font);
> y = print_y + gnome_font_get_underline_position (font);
> @@ -670,7 +670,7 @@
> font = html_painter_get_font (painter, face, style);
> g_return_val_if_fail (font != NULL, 0);
>
> - width = gnome_font_get_width_string_n (font, text, len);
> + width = gnome_font_get_width_utf8_sized (font, text, len);
>
> return SCALE_GNOME_PRINT_TO_ENGINE (width);
> }
> @@ -711,7 +711,7 @@
> weight, italic, size);
> g_free (family);
>
> - return font ? html_font_new (font, gnome_font_get_width_string_n (font, " ", 1)) : NULL;
> + return font ? html_font_new (font, gnome_font_get_width_utf8_sized (font, " ", 1)) : NULL;
> }
>
> static void
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]