Comment 27 for bug 170324

Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

I've added support for baseline-shift to Inkscape trunk. I've also added buttons on the text toolbar for superscripts and subscripts (they are missing correct icons at the moment). Superscript and subscript support uses the "sub" and "super" tags as I described in an earlier post. Please check it out and give me your feedback. Release of Inkscape 0.48 will be soon so prompt response would be appreciated.

I have a couple of questions about superscripts and subscripts:

1. What should the baseline shifts be for superscripts and subscripts. The SVG standard does not specify the shift. It does recommend using baseline information from the font but this data isn't easy to access (and may not be in most fonts). OpenOffice and Adobe use offsets of +/-0.33 of the font size, Word +0.35/-0.14. LaTeX appears to use +0.45/-0.2. Note, other SVG viewers are free to choose other values. Opera and Chrome support baseline-shift and seems to use +/-0.33 for scripts. Firefox trunk does not support baseline-shift. Squiggle (Batik) uses larger values.

2. What should the font-size reduction be? OpenOffice and Adobe use 58%, Word 65%, LaTex approximately 70%. Eventually this could be customizable and stored as a preference.