Using Inkscape's latest official release, I created a text element, and would like to underline its text (or part of it).
How to do that?
I don't see any option to underline.
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It only takes a minute to sign up.
Sign up to join this communityUpdate: since Inkscape 1.0.1 use Selector and CSS dialog
As stated by davidvandebunte, Inkscape 1.0.1 introduced in the the Object menu the Selectors and CSS dialog (that was previously experimental), the shortcut is Shift-Ctrl-Q.
The dialog allows to edit the CSS properties of the selected item, and is possible to add new properties by clicking the + button near the CSS selector definition:
A drop-down menu helps to insert the properties. In this specific case we need to add the property text-decoration with the value underline.
At the moment there is no help in the insertion of the value, so pay attention to what you write.
The result is immediately visible:
For previous versions of Inkscape use the XML Editor
SVG standard supports text decoration and Inkscape aims to be fully compliant with SVG standard, so I've tried to add this properties at xml level, and it worked:
text-decoration: underline;
It's very simple to do: after typing your text, press the button for the XML editor (Edit → XML Editor for Inkscape 1.x):
Your text is selected, and the corresponding XML node is selected in the editor (there is no need to find something). Now, you need to click on "style" row, add the desired CSS style at the end of the current style, (e.g. text-decoration: underline;), using a semicolon ";" as separator, and press the Set button:
Once the attribute value is set, you see your text underlined:
Be aware that in order to remove the underline you need to find it in the XML attribute value and delete it manually (it's not difficult).
This feature is currently being developed, so it is not available yet.
An option is to use a custom build, including this patch:
https://bugs.launchpad.net/inkscape/+bug/1269206
2023 update: Unfortunately it seems like the patch did not get merged into the main release.