Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How big is a 'world unit'?

Author
Message
Bursar
15
Years of Service
User Offline
Joined: 17th Sep 2008
Location:
Posted: 3rd Sep 2011 01:14
I have a nice bitmap font that I want to display. I can't figure out how to get it on the screen at the right size and looking good. I've been fiddling about with SetTextSize, but the font still looks a bit mangled and like it's been badly scaled.

The documentation for the command says:
Quote: "Sets the size of the text object, default is 4. This value represents the height of each character in world units. The width of each character is dependant on the font and is calculated to match the given size."

How do I work the size of a world unit, and then translate that into some other number that means my font isn't a resized mess?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Sep 2011 13:41
It's based on the current scale of the world, if you haven't changed it I think the default is one to one so text would come out 4 pixels high... By default...

Bursar
15
Years of Service
User Offline
Joined: 17th Sep 2008
Location:
Posted: 3rd Sep 2011 14:10
OK, sorted Thanks.

Login to post a reply

Server time is: 2024-04-24 04:30:46
Your offset time is: 2024-04-24 04:30:46