aliftype / xits

XITS - OpenType implementation of STIX fonts with math support
SIL Open Font License 1.1
351 stars 35 forks source link

Making subscript and superscript characters combining together #48

Closed KrasnayaPloshchad closed 7 years ago

KrasnayaPloshchad commented 7 years ago

This feature would making these chatacters useful to produce certain case as x²ⁿ₀, see the behavior in Libertinus Serif.

khaledhosny commented 7 years ago

Please explain more what is being requested e.g. with screenshots.

KrasnayaPloshchad commented 7 years ago

My screenshot

khaledhosny commented 7 years ago

XITS behavior is correct and Libertinus is wrong. These are spacing characters and should not be combined this way. Furthermore the Unicode superscripts and subscripts are not encoded for mathematics and using them for that is wrong, if you want math superscripts and subscripts use XITS Math with a proper math typesetting engine.

khaledhosny commented 7 years ago

Not to mention that is not even supported by XITS, what you are getting is a fallback character.

KrasnayaPloshchad commented 7 years ago

I’m misoberved, sorry. BTW I found inserting ZWNJ can prevent Unicode superscripts and subscripts combined together in Libertinus.