underline text

Asked by kcartwri on 2009-11-14

How do you underline text?

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
2009-11-14
Last reply:
2009-12-15
su_v (suv-lp) said : #1

Current Inkscape versions don't support this text formatting - neither for displaying text nor as style option when editing text.

<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/XML-Examples.html#XML-Examples-UnderlinedText>
«… Underlined text cannot be added through the normal Inkscape interface, nor will Inkscape display underlines. But you can add underlined text that will be displayed properly by another SVG program.

To underline text, open the XML Editor. Select the text you wish underlined. Go to the "<svg:tspan>" object found inside an "<svg:text>" tag. If you are selecting part of the text, you may need to add some attribute temporarily (color for example) to create a corresponding “tspan” object; the color can be removed later. Add to the style: “text-decoration: underline”. »

related:
bug report #172133 “Implement SVG text-decoration - underline, strikethrough, etc.”
<https://bugs.launchpad.net/inkscape/+bug/172133>

UGADdee (deebrieske) said : #2

To work around this, I simply draw a straight line and move it under the letters/word. It's just quicker for me to do, since I don't underscore a lot, I know not a fix. I do this for strikethrough as well.

Can you help with this problem?

Provide an answer of your own, or ask kcartwri for more information if necessary.

To post a message you must log in.