Font asset without 'old style' numerals?

Good day!
I have a font with old style numerals, where the baseline moves around. This is not desirable.

In Photoshop, I can select the numbers, select the “all caps” text field mode, and the numerals align like any other font. So I know the font is useable somehow.

Is there a way to make this happen for my TMP Font Asset in Unity? I’d prefer to just ignore that old-styling when I create the asset, and never think about it again. Or maybe there’s a baseline value I can adjust for those characters after creation?

thank you!
Travis

Can you provide me with a link to this font along with example of what you are seeing (just for reference).

Hi Stephan,
attached is the font in question and an image from photoshop, showing the font’s old-style numerals, and what it looks like if I apply “all caps”. Somehow it straightens the baseline and normalizes the heights (or something along those lines?).

I’ll also note that I was able to adjust the per-glyph settings in my TMP asset for those numbers and approximate the desired result - the only downside is that I’d need to redo this any time I recreate that asset, and it feels a bit eye-ball-y.

thanks again,
Travis


6878645–803414–SharikSans-SemiBold.otf.zip (140 KB)

Hello again, I’m guessing there was no straightforward solution to this question, but figured I’d check in!

This type of functionality would be something coming from OpenType features from the font file which are not supported yet but something I do plan to eventually support. Since this is a positional adjustment feature, this might be something that I can add support for in the next set of preview releases.

In the meantime, the manual adjustment is fine but as you pointed out susceptible to getting lost whenever you regenerate / update the font asset. Making user adjustments persistent on font assets is also something that has been requested that I plan to look into.

1 Like