diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2010-06-04 19:41:52 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2010-06-04 19:41:52 +0000 |
| commit | 763ecf36ae7377cd9c1fadefbe0c4c24b37a3ab0 (patch) | |
| tree | e6d6e2b84f4908b778a9380f6624c523fb79da41 /src/sp-text.cpp | |
| parent | About screen. Screen folder cleanup (0.47 screens removed). (diff) | |
| download | inkscape-763ecf36ae7377cd9c1fadefbe0c4c24b37a3ab0.tar.gz inkscape-763ecf36ae7377cd9c1fadefbe0c4c24b37a3ab0.zip | |
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)
Diffstat (limited to 'src/sp-text.cpp')
| -rw-r--r-- | src/sp-text.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |
