Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have same size characters in Text Mesh Pro?

Is it possible to have all characters in a Text Mesh Pro take up the same space

By default the letter 'i' will take up much less space (in pixels) than letter 'w'.

Is it possible for all characters to take up the same amount of space so that a row of iiiii would be just as long as a row of wwwww?

Using the <pos> tag and \t doesn't seem to help.

How do I solve the problem?

like image 512
aaaaaaaaaaa Avatar asked Oct 22 '25 02:10

aaaaaaaaaaa


2 Answers

Docs:

You can override a font's character spacing and turn it into a monospace font with the mspace tag. This will force all characters to claim the same horizontal space. You can use pixels or font units to set the monospace character width.

<mspace=mspace=200>WWWiii</mspace>

enter image description here

like image 169
Iggy Avatar answered Oct 24 '25 15:10

Iggy


The answer was to close off <pos> tag with </pos> tag after each character.

like image 36
aaaaaaaaaaa Avatar answered Oct 24 '25 17:10

aaaaaaaaaaa