[gnumeric] use new go-pango attributes



commit c2fc2583c8e2076cb7c5dc08197ddc0fb38f7e33
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Oct 26 23:54:57 2011 -0600

    use new go-pango attributes
    
    2011-10-26 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/mstyle.c (gnm_style_get_pango_attrs): use new go-pango
    	attributes

 ChangeLog    |    5 +++++
 src/mstyle.c |    9 +++------
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4d72fbf..c5a5942 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-10-26 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* src/mstyle.c (gnm_style_get_pango_attrs): use new go-pango
+	attributes
+
+2011-10-26 Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* src/rendered-value.c (gnm_rendered_value_new): call
 	go_pango_translate_layout
 	* src/workbook-view.c (wb_view_auto_expr_recalc): call
diff --git a/src/mstyle.c b/src/mstyle.c
index 61d98c5..017869d 100644
--- a/src/mstyle.c
+++ b/src/mstyle.c
@@ -1686,14 +1686,11 @@ gnm_style_get_pango_attrs (GnmStyle const *style,
 	case GO_FONT_SCRIPT_STANDARD :
 		break;
 	case GO_FONT_SCRIPT_SUB :
-		add_attr (l, pango_attr_rise_new
-			  (GO_SUBSCRIPT_RISE * font->size_pts/10. * zoom));
-		zoom *= GO_SUBSCRIPT_SCALE;
+		add_attr (l, go_pango_attr_subscript_new ());
 		break;
 	case GO_FONT_SCRIPT_SUPER :
-		add_attr (l, pango_attr_rise_new
-			  (GO_SUPERSCRIPT_RISE* font->size_pts/10. * zoom));
-		zoom *= GO_SUPERSCRIPT_SCALE;
+		add_attr (l, go_pango_attr_superscript_new ());
+		break;
 	}
 
 	add_attr (l, pango_attr_font_desc_new (font->go.font->desc));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]