[lasem] svg_text: disable dy attribute handling, it doesn't work.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] svg_text: disable dy attribute handling, it doesn't work.
- Date: Tue, 6 Nov 2012 12:57:29 +0000 (UTC)
commit ccdef4893a2cf21b9e6c6aa8d8c79b961cd1d28c
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Tue Nov 6 13:57:04 2012 +0100
svg_text: disable dy attribute handling, it doesn't work.
src/lsmsvgview.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index ebc487b..0243592 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -1134,6 +1134,7 @@ _update_pango_layout (LsmSvgView *view, unsigned int n, char const *string, doub
pango_layout_set_text (pango_layout, string, n);
attrs = pango_attr_list_new ();
+#if 0
for (i = 0; i < n_dx; i++) {
attr = pango_attr_letter_spacing_new (pango_units_from_double (dx[i]));
@@ -1144,9 +1145,8 @@ _update_pango_layout (LsmSvgView *view, unsigned int n, char const *string, doub
attr->end_index = PANGO_ATTR_INDEX_TO_TEXT_END;
pango_attr_list_insert (attrs, attr);
-
- printf ("spacing = %g\n", dx[i]);
}
+#endif
for (i = 0; i < n_dy; i++) {
attr = pango_attr_rise_new (-pango_units_from_double (dy[i]));
@@ -1157,8 +1157,6 @@ _update_pango_layout (LsmSvgView *view, unsigned int n, char const *string, doub
attr->end_index = PANGO_ATTR_INDEX_TO_TEXT_END;
pango_attr_list_insert (attrs, attr);
-
- printf ("rise = %g\n", dy[i]);
}
pango_layout_set_attributes (pango_layout, attrs);
pango_attr_list_unref (attrs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]