From 763ecf36ae7377cd9c1fadefbe0c4c24b37a3ab0 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Fri, 4 Jun 2010 21:41:52 +0200 Subject: Add support for baseline-shift attribute (all possible values). Add superscript and subscript support to Text toolbar. Missing icons for superscript and subscript. Known bug: adding a character to a superscript or subscript text string resets baseline-shift attribute. (bzr r9475) --- src/sp-text.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sp-text.cpp') diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 0f21b59d1..bae625f58 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -528,6 +528,8 @@ unsigned SPText::_buildLayoutInput(SPObject *root, Inkscape::Text::Layout::Optio } else if (SP_IS_TSPAN(root)) { SPTSpan *tspan = SP_TSPAN(root); + // x, y attributes are stripped from some tspans as we do our own line layout + // This should be checked carefully, as it can undo line layout in imported SVG files. bool use_xy = !in_textpath && (tspan->role == SP_TSPAN_ROLE_UNSPECIFIED || !tspan->attributes.singleXYCoordinates()); tspan->attributes.mergeInto(&optional_attrs, parent_optional_attrs, parent_attrs_offset, use_xy, true); } -- cgit v1.2.3