diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-03-25 19:28:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-03-25 19:28:43 +0800 |
commit | 1c1d81211e14986917817b674c9c4230e84a304b (patch) | |
tree | 261edb044bbf499929dbf0a142d0944f48750a15 /widgets/text | |
parent | f622ce18d1cd12c1f15c11982fdc64cf8f1bc7c8 (diff) | |
download | gsoc2013-evolution-1c1d81211e14986917817b674c9c4230e84a304b.tar gsoc2013-evolution-1c1d81211e14986917817b674c9c4230e84a304b.tar.gz gsoc2013-evolution-1c1d81211e14986917817b674c9c4230e84a304b.tar.bz2 gsoc2013-evolution-1c1d81211e14986917817b674c9c4230e84a304b.tar.lz gsoc2013-evolution-1c1d81211e14986917817b674c9c4230e84a304b.tar.xz gsoc2013-evolution-1c1d81211e14986917817b674c9c4230e84a304b.tar.zst gsoc2013-evolution-1c1d81211e14986917817b674c9c4230e84a304b.zip |
** Fixes bug #576694
2009-03-25 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #576694
* widgets/table/e-cell-text.c (build_layout):
* widgets/text/e-text.c (reset_layout):
Handle absolute font sizes correctly.
svn path=/trunk/; revision=37474
Diffstat (limited to 'widgets/text')
-rw-r--r-- | widgets/text/e-text.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index a88ecec75d..5f3906fc71 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -426,8 +426,12 @@ reset_layout (EText *text) pango_layout_context_changed (text->layout); text->font_desc = pango_font_description_new (); - pango_font_description_set_size (text->font_desc, - pango_font_description_get_size ((GTK_WIDGET (item->canvas))->style->font_desc)); + if (!pango_font_description_get_size_is_absolute ((GTK_WIDGET (item->canvas))->style->font_desc)) + pango_font_description_set_size (text->font_desc, + pango_font_description_get_size ((GTK_WIDGET (item->canvas))->style->font_desc)); + else + pango_font_description_set_absolute_size (text->font_desc, + pango_font_description_get_size ((GTK_WIDGET (item->canvas))->style->font_desc)); pango_font_description_set_family (text->font_desc, pango_font_description_get_family ((GTK_WIDGET (item->canvas))->style->font_desc)); pango_layout_set_font_description (text->layout, text->font_desc); |