Page 1 of 1

Posted: 31 Jul 2017, 01:27
by sm_jamieson
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.

Posted: 20 Sep 2017, 19:22
by senso
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...