[evolution-patches] printing fonts fix
- From: Radek Doulík <rodo ximian com>
- To: Patches <evolution-patches ximian com>
- Cc: Larry Ewing <lewing ximian com>
- Subject: [evolution-patches] printing fonts fix
- Date: Tue, 15 Jul 2003 20:47:10 +0200
attached patch should avoid gnome print font allocation fallback too
early
I am inlining the patch as my evo loops when attaching files.
Index: htmlprinter.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmlprinter.c,v
retrieving revision 1.65
diff -u -p -r1.65 htmlprinter.c
--- htmlprinter.c 19 May 2003 12:32:26 -0000 1.65
+++ htmlprinter.c 15 Jul 2003 18:40:19 -0000
@@ -707,7 +707,8 @@ alloc_font (HTMLPainter *painter, gchar
font = gnome_font_find_closest_from_weight_slant (face ? face : (style & GTK_HTML_FONT_STYLE_FIXED ? "Monospace" : "Sans"),
weight, italic, get_font_size (printer, points, size));
- if (font == NULL) {
+
+ if (font == NULL && face == NULL) {
GList *family_list;
family_list = gnome_font_family_list ();
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.1822
diff -u -p -r1.1822 ChangeLog
--- ChangeLog 10 Jul 2003 16:33:34 -0000 1.1822
+++ ChangeLog 15 Jul 2003 18:40:31 -0000
@@ -1,3 +1,8 @@
+2003-07-15 Radek Doulik <rodo ximian com>
+
+ * htmlprinter.c (alloc_font): fallback to 1st available font only
+ when default fonts aren't available
+
2003-07-10 Larry Ewing <lewing ximian com>
* htmldrawqueue.c: remove unused function.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]