Re: [Evolution-hackers] gtkhtml fonts
- From: Ross Burton <ross burtonini com>
- To: Radek Doulík <rodo ximian com>
- Cc: Evolution Hackers <evolution-hackers lists ximian com>
- Subject: Re: [Evolution-hackers] gtkhtml fonts
- Date: Wed, 03 Dec 2003 09:57:20 +0000
On Tue, 2003-12-02 at 19:47, Radek Doulík wrote:
> okie, I committed the necessary changes. Please let me know if they
> fixed your issue.
Almost, there is a bug in the Pango documentation, PangoAttrSize doesn't
take 1/1000ths of an point but 1/PANGO_SCALEths. Attached is a patch to
fix this, and I'm filing a bug with Pango now.
Ross
--
Ross Burton mail: ross burtonini com
jabber: ross burtonini com
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
Index: src/htmltext.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmltext.c,v
retrieving revision 1.218
diff -u -r1.218 htmltext.c
--- src/htmltext.c 2 Dec 2003 19:46:18 -0000 1.218
+++ src/htmltext.c 3 Dec 2003 09:57:12 -0000
@@ -2701,7 +2701,7 @@
base_size = e->painter->font_manager.var_size;
size = (attr->style & GTK_HTML_FONT_STYLE_SIZE_MASK) - GTK_HTML_FONT_STYLE_SIZE_3;
- real_size = e->painter->font_manager.magnification * 1000 * ((gdouble) base_size + (size > 0 ? (1 << size) : size) * base_size/8.0);
+ real_size = e->painter->font_manager.magnification * PANGO_SCALE * ((gdouble) base_size + (size > 0 ? (1 << size) : size) * base_size/8.0);
attr->attr_int.value = PANGO_PIXELS (real_size);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]