We need a special way to display fonts for a customer.
We load the localized text as a JSON and need to show some of the text in superscript format (smaller and aligned to the top of the font height). Even the professional fonts don’t provide all the characters, apart from that the needed fonts - as part of the customer’s CI - can’t provide the scientific way of displaying the items.
It seems to me that text processing tools like Word have this functionality implemented where they are not depending on the font’s ability itself but scale and translate the characters.
Is there a way to integrate this functionality by modifying the existing markup system? How would we approach this?
(Note: Adding characters and modifying the fonts is usually not allowed under the font license)
Arg. Afraid no ideas come to mind if you can modify the font file.
Maybe you can use Cem’s HTML overlays on UI elements for this but that seems a bit of a hack and doesn’t work in all cases as its always on top of the canvas
IANAL, the font license says you can’t modify the font. Does it mean you can’t modify the TFF to distribute? The reason I ask is because you aren’t distributing the TFF, just the converted SDF texture file.
So you could add the needed symbols to the font file and these will be converted to the SDF texture file which is being distributed to users?