Page 1 of 1
Supersrcipt
Posted: Tue Jun 06, 2006 8:58 pm
by assantos
How can i format superscript font in code
Posted: Wed Jun 07, 2006 7:15 pm
by Sergey Tkachenko
Use VShift property of text style.
For example, you can find a modified "Editor2" demo with "subscript" and "superscript" commands here:
http://www.trichview.com/support/files/reditss.zip
Posted: Thu Jun 08, 2006 8:10 am
by jonjon
Well, that is a nice "workaround" but not a real solution. Imagine the user selects the whole text to change the size, then it will also change the super/sub scripts' sizes. Besides, that won't be correctly exported in HTML with the <sup> and <sub> tags.
Are you planning to implement those as native items, perhaps internally using the VShift property to save time ?
Regards,
John.
Posted: Thu Jun 08, 2006 12:16 pm
by Sergey Tkachenko
Yes, it's planned for future, as a new property of text style.
But even the current solution will be exported to HTML as <sup> and <sub>
Posted: Thu Jun 08, 2006 12:23 pm
by jonjon
Sergey Tkachenko wrote:But even the current solution will be exported to HTML as <sup> and <sub>
Oh, that's nice to hear! So I guess every stone is in place for the implementation then
Looking forward for that feature.
Regards,
John.