Hi all, I made an app for PC/Mac/Linux with Processing (with Peter Lager’s endless support! Thanks Peter!).
I just noticed that on a Linux machine, some of the special characters are showing as boxes:
For the textfield, I am specifying the font like this:
tfSceneName.setFont(new Font("Noto Sans Bold", G4P.PLAIN, 36));
For the other fonts, I specify them like this:
PFont font;
font = loadFont("NotoSansJP-Regular18.vlw");
textFont(font, 18);
As you can see, the second method works, likely because I have included the .vlw file, along with the special characters inside the .vlw file, with the sketch.
Is there any way to get the textfield to work with the special characters too?
If I turn off this line:
//tfSceneName.setFont(new Font("Noto Sans Bold", G4P.PLAIN, 36));
…then the correct characters show up in the textfield, but they are much smaller.
I’m sure this is a simple thing to fix.
Can anyone share how I can get the special fonts to work correctly in the textfield, with larger size, and not show as boxes?
Including the font is no problem, but I’m not sure how to do that with G4P and the textfield specifically…
Thanks,
Mike
PS, just lucky I suppose, but this issue does not show up in Mac or PC versions that I have tested. Perhaps those test systems just happened to have the right font installed?