[goffice] Make sub/superscript work again in charts
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Make sub/superscript work again in charts
- Date: Tue, 7 Feb 2012 15:24:55 +0000 (UTC)
commit a6d84268c4352919655ed85070b448b2849d678c
Author: Jean Brefort <jean brefort normalesup org>
Date: Tue Feb 7 16:23:38 2012 +0100
Make sub/superscript work again in charts
ChangeLog | 6 ++++++
goffice/graph/gog-renderer.c | 4 +++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c22f3dc..0ec4327 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-07 Jean Brefort <jean brefort normalesup org>
+
+ reviewed by: <delete if not using a buddy>
+
+ * goffice/graph/gog-renderer.c (gog_renderer_draw_gostring):
+
2012-02-06 Jean Brefort <jean brefort normalesup org>
* goffice/graph/gog-axis.c (gog_axis_view_size_allocate): fix Y-axis label
diff --git a/goffice/graph/gog-renderer.c b/goffice/graph/gog-renderer.c
index 421d934..1d23790 100644
--- a/goffice/graph/gog-renderer.c
+++ b/goffice/graph/gog-renderer.c
@@ -887,8 +887,10 @@ gog_renderer_draw_gostring (GogRenderer *rend, GOString *str,
break;
}
attr = go_string_get_markup (str);
- if (attr)
+ if (attr) {
pango_layout_set_attributes (layout, attr);
+ go_pango_translate_layout (layout);
+ }
pango_cairo_context_set_resolution (context, 72.0);
pango_layout_set_font_description (layout, style->font.font->desc);
pango_layout_get_size (layout, &iw, &ih);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]