[Evolution-hackers] GnuCash print problem patch
- From: Paul Andreassen <paulx andreassen com au>
- To: evolution-hackers gnome org
- Subject: [Evolution-hackers] GnuCash print problem patch
- Date: Thu, 12 Apr 2007 21:41:12 +1000
Hello,
Is this where gtkhtml is maintained? If so could someone look at this patch
and tell me if it acceptable for inclusion. I'm not sure I understand how
all the library code goes together.
Thanks,
Paul
--
--- gtkhtml-3.10.3/src/htmltext.c.old 2007-04-12 21:09:20.259210176 +1000
+++ gtkhtml-3.10.3/src/htmltext.c 2007-04-12 21:20:36.621387496 +1000
@@ -1214,12 +1214,16 @@ html_text_prepare_attrs (HTMLText *text,
pango_attr_list_insert (attrs, attr);
}
} else {
- if (fabs (painter->font_manager.magnification - 1.0) > 0.001) {
- attr = pango_attr_size_new (painter->font_manager.var_size*painter->font_manager.magnification);
+ if (painter->font_manager.variable.face != NULL) {
+ attr = pango_attr_family_new (painter->font_manager.variable.face);
attr->start_index = 0;
attr->end_index = text->text_bytes;
pango_attr_list_insert (attrs, attr);
}
+ attr = pango_attr_size_new (painter->font_manager.var_size*painter->font_manager.magnification);
+ attr->start_index = 0;
+ attr->end_index = text->text_bytes;
+ pango_attr_list_insert (attrs, attr);
pango_attr_list_splice (attrs, text->attr_list, 0, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]