I would like 2 things related to fonts in the SDK:
1. Font metrics. This is routines that, for a given font, will tell you the display size (height and width) in pixels of single characters or a character string. So you can work out how long a character string will be, and size a box so the string just fits inside.
2. The ability to change the font. I realise Usine has a default font, but it would at least be useful to have available a monospace font (like courier new), which can be useful for displaying certain types of text.
Thanks,
Simon.
SDK font / font metrics
- senso
- Site Admin
- Posts: 4427
- Location: France
- Contact:
hello,
1) yes you're right I'll implement textHeight and textWidth functions in the SDK
2) I'll see how I could do that but it's not so easy...
1) yes you're right I'll implement textHeight and textWidth functions in the SDK
2) I'll see how I could do that but it's not so easy...
Olivier Sens
www.brainmodular.com
www.brainmodular.com
