We are about to switch to a new forum software. Until then we have removed the registration on this forum.
In my program I’m using a few different fonts in one typeface (Roboto Regular, Roboto Medium, Roboto Italic, Roboto Bold Italic), but when I export it as an application, it displays everything as just one font (Roboto Regular). Where should I put the other fonts so that they are included in the application when it exports? (Ideally, this would also let other people who don’t have this font installed still see this font.)
Answers
https://Processing.org/reference/loadFont_.html
http://py.Processing.org/reference/loadFont.html
I do have it in my data folder, which is what that page says I should do. I’m using Python Mode; might this be contributing to the problem?
Why don't you post your code so there are more eyes to check out for any possible bugs? :-\"
Sure! In
setup()
, I haveI use these fonts many places in the program, including in some classes. (I’m not posting all the code because it’s really long.)
You're using createFont() instead of loadFont(), which I had linked to its reference above! :-@
Please click at that web reference's link and read the instructions therein. >-)
Function createFont() assumes the specified font exists in the current running OS though: 8-|
https://Processing.org/reference/createFont_.html
Oh! I’m sorry; I did not notice that. It works now.