I'm a little confused about how to work with different fonts.
I'm writing a program which lets the user define which font they want displayed, but I foresee a problem.
When they pick their font, how will I know how to size my user interface elements?
Especially if the user picks a variable width font, I won't know how, programmatically, to determine user interface elements' (buttons and the like) width/height to prevent text from spilling out of the UI elements or being cut off by them.
Anyone have experience or suggestions for dealing with this?
Working with fonts
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Working with fonts
[wiki]Font:getWidth[/wiki]
[wiki]Font:getHeight[/wiki]
[wiki]Font:getHeight[/wiki]
- CaptainMaelstrom
- Party member
- Posts: 163
- Joined: Sat Jan 05, 2013 10:38 pm
Who is online
Users browsing this forum: No registered users and 3 guests