Supersrcipt
Supersrcipt
How can i format superscript font in code
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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
For example, you can find a modified "Editor2" demo with "subscript" and "superscript" commands here:
http://www.trichview.com/support/files/reditss.zip
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.
Are you planning to implement those as native items, perhaps internally using the VShift property to save time ?
Regards,
John.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: