I'm making a monster radar for the MonsterHunt mod that displays the name and health of a monster. I got the script working correctly and placed on top of the pawn starting from the center, so my question is, how do I calculate the width of a font so that each letter/number gets placed in the center depending on its pixels using the SetPos(float X,float Y) function from Canvas?
I have searched and looked at other mods for weeks and I found nothing about it or even close. All I found was how to center a normal texture since a texture have variables for it but not a font texture. So please, if you know how or a way to center fonts post an example or let me know how else it can be implemented. Any ideas or discussion will help.
I have searched and looked at other mods for weeks and I found nothing about it or even close. All I found was how to center a normal texture since a texture have variables for it but not a font texture. So please, if you know how or a way to center fonts post an example or let me know how else it can be implemented. Any ideas or discussion will help.