Page 1 of 1

Fonts for dynamic use

Posted: Wed May 27, 2020 8:22 am
by andro
There are only a limited number of fonts for labels and text fields. It is possible to use other fonts? Say I want a value displayed using an arbitrary font of my choosing. Can this be done?

Re: Fonts for dynamic use

Posted: Wed May 27, 2020 11:39 am
by arbuxMusic
When I looked at this in VMD, I couldn't see a way to change the standard controls.

I considered using a canvas for manually drawing the text. (I wanted extra-small text). I ran into legal and technical issues - I would have to make sure I had the rights for distribution of the fonts in the module in question and ensuring they are Mac & Windows compatible.

Of course... you can create your own fonts. However, that became more hassle than it was worth so I left it to another time.

Re: Fonts for dynamic use

Posted: Thu May 28, 2020 1:17 am
by andro
Or use open source fonts.

Re: Fonts for dynamic use

Posted: Thu May 28, 2020 8:59 am
by Captain
Talking about fonts: I do my development on Mac, but before publishing my latest module, I also thought of testing it on Windows, just in case. What I noticed was that the Arial Black font I had used did not work on Windows, and it reverted to regular Arial (I think), which was not really a catastrophe or showstopper, but looked all wrong. I fixed the problem by using bold version of regular Arial instead, which made the module look the same on Mac & Windows. I thought the idea of the limited font choice is to make sure they work everywhere? I just checked the fonts I have available in Windows (I have a basic Win10 installation), and indeed Arial Black is not there. Not sure if it’s not even supposed to be an option in MD, or if others have it by default in Windows too, or...

Re: Fonts for dynamic use

Posted: Thu May 28, 2020 9:30 am
by honki-bobo
Captain wrote: Thu May 28, 2020 8:59 am Talking about fonts: I do my development on Mac, but before publishing my latest module, I also thought of testing it on Windows, just in case. What I noticed was that the Arial Black font I had used did not work on Windows, and it reverted to regular Arial (I think), which was not really a catastrophe or showstopper, but looked all wrong. I fixed the problem by using bold version of regular Arial instead, which made the module look the same on Mac & Windows. I thought the idea of the limited font choice is to make sure they work everywhere? I just checked the fonts I have available in Windows (I have a basic Win10 installation), and indeed Arial Black is not there. Not sure if it’s not even supposed to be an option in MD, or if others have it by default in Windows too, or...
I'm on Windows 10 and I can select Arial Black as a font in VMD. I did not install any additional fonts, though I am not sure if it came with my LibreOffice installation or if it was there from the beginning.

Re: Fonts for dynamic use

Posted: Thu May 28, 2020 9:43 am
by Captain
honki-bobo wrote: Thu May 28, 2020 9:30 am I'm on Windows 10 and I can select Arial Black as a font in VMD. I did not install any additional fonts, though I am not sure if it came with my LibreOffice installation or if it was there from the beginning.
I actually didn’t try it in VMD, I just checked Fonts in Windows’ Control Panel and couldn’t see Arial Black there. But I’ll install VMD on my Windows machine and see what is says...

Re: Fonts for dynamic use

Posted: Fri May 29, 2020 12:13 am
by andro
In VCV Rack, you can use any system font regardless of deployment platform as you convert text in SVG to paths, and everything is good. Perhaps CA could take a leaf out of their book? After all, you can use SVG images for components in the Skin Editor, so it is not beyond the bounds of possibility.