Welcome to %s forums

BrainModular Users Forum

Login Register

SDK font / font metrics

Tell us what you'd like Usine to do
sm_jamieson
Member
Posts: 559

Unread post by sm_jamieson » 31 Jul 2017, 01:27

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.

User avatar
senso
Site Admin
Posts: 4427
Location: France
Contact:

Unread post by senso » 20 Sep 2017, 19:22

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...

Post Reply