


Now, you need to click on "style" row, add the desired CSS style at the end of the current style, (e.g. Your text is selected, and the corresponding XML node is selected in the editor (there is no need to find something). It's very simple to do: after typing your text, press the button for the XML editor ( Edit → XML Editor for Inkscape 1.x): 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 In this specific case we need to add the property text-decoration with the value underline.Īt the moment there is no help in the insertion of the value, so pay attention to what you write.įor previous versions of Inkscape use the XML Editor 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:Ī drop-down menu helps to insert the properties. Eventually this could be customizable and stored as a preference.Update: since Inkscape 1.0.1 use Selector and CSS dialogĪs 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. What should the font-size reduction be? OpenOffice and Adobe use 58%, Word 65%, LaTex approximately 70%. Firefox trunk does not support baseline-shift. Opera and Chrome support baseline-shift and seems to use +/-0.33 for scripts.
#Inkscape subscript free#
Note, other SVG viewers are free to choose other values. OpenOffice and Adobe use offsets of +/-0.33 of the font size, Word +0.35/-0.14. It does recommend using baseline information from the font but this data isn't easy to access (and may not be in most fonts). The SVG standard does not specify the shift. What should the baseline shifts be for superscripts and subscripts. I have a couple of questions about superscripts and subscripts:ġ. Release of Inkscape 0.48 will be soon so prompt response would be appreciated. Please check it out and give me your feedback. Superscript and subscript support uses the "sub" and "super" tags as I described in an earlier post. I've also added buttons on the text toolbar for superscripts and subscripts (they are missing correct icons at the moment). I've added support for baseline-shift to Inkscape trunk. Font-size would be decreased or increased along with adding or removing the baseline-shift. If it is set to "super" or "sub" then Inkscape would assume that the text is a superscript or subscript. As a medium term solution, one could implement baseline-shift. This would then be used to automagically change the dy and font-size values. To properly support superscripts and subscripts, Inkscape would probably have to add -inkscape-superscript and -inkscape-subscript attributes. These could them be tied to keyboard shortcuts.īTW, Scribus appears to export text as paths to SVG. Font-size would be decreased or increased along with adding or removing the baseline-shift.Ī short term solution would be to add extensions to create superscripts and subscripts. To properly support superscripts and subscripts, Inkscape would probably have to add -inkscape- superscript and -inkscape-subscript attributes. Using baseline-shift will not automatically change font size. These are not well defined (different SVG viewers can shift the superscripts and subscripts by different amounts). The baseline-shift attribute does have "sub" and "super" values. SVG 1.1 doesn't appear to include much support for superscripts and subscripts. This coupled with changing the font size can be used to typeset superscripts and subscripts. In v0.48 the dy (y shift) attribute can be set from the text toolbar.
