Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Anchor doesn't make sense?

A topic by RubyDev created May 23, 2025 Views: 432 Replies: 3
Viewing posts 1 to 4
(1 edit)

Hi, sorry while I sent you 2 emails today for other issues I found another one but I require gifs to explain them.

Is this a "me-problem", as in, a problem of my font, or is this a problem of the asset?

As you can see, the height of the element is bigger than the text needs it, but the font seems to have so much upper-space that center isn't actually centered. Neither is Top or Bottom.


Also here is a weird image of the "zero width spaces" appearing out of nowhere:

I

If I hyphen them, it also looks weird:


And here I also show "top" anchored with different character sizes, still doesn't really make sense.



EDIT:
I read up a tiny bit on how fonts actually "work" and I guess this font just has a high 'ascender'. 
I put a ' character after the 0 and saw that the line size is taller than the zero, so it probably accounts for that. So I guess this isn't really something you or me can fix for this font.

Developer

You can always try a font in Unity's built-in "Text Mesh" or "Text" (UI) components to see if it's just the font.

From what we discussed in the email, looks like that font is missing the zero-width space, or rather, HAS the zero width space and uses that character instead. will see if I can have STM fall back to arial just for that character... but can you edit that font? The soft hyphen appears to be missing/wrong, too

Developer (1 edit)

I think I might have a fix for this, could you email me the font and a sample string? Thank you!

Answered your e-mail.