[lasem/lasem-0-4] Revert "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/lasem-0-4] Revert "svg_text: disable dy attribute handling, it doesn't work."
- Date: Mon, 3 Dec 2012 16:21:00 +0000 (UTC)
commit 66fbd064cd8a1740b56585d99512520f5e113f85
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Mon Dec 3 17:18:30 2012 +0100
Revert "svg_text: disable dy attribute handling, it doesn't work."
This reverts commit ccdef4893a2cf21b9e6c6aa8d8c79b961cd1d28c.
src/lsmsvgview.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index 0243592..ebc487b 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -1134,7 +1134,6 @@ _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]));
@@ -1145,8 +1144,9 @@ _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,6 +1157,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 ("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]