I’m coding a visualiser for composing graphics on receipt tickets.
For this, I’m trying to text(“░ ▓ ├ ≡ Σ ►_-”), but it’s not working, I get the little squareWithACross for most of the characters.
I tried:
The app’s createFont tool, to create a .vlw with ALL the characters, using the most common fonts such as arial or Verdana (which I assume have a very large character set). The file can go as heavy as 100Mb. Sometimes it crashes midway. Others, the special characters just don’t appear.
using createFont() function to dynamically create the font. I. don’t know the extension of the characters set that it creates. Same result as before.
Could you point me to the right direction? thanx in advance!
void setup()
{
size(600, 120, P2D);
type = createFont("Choose a font here!", 48);
// Missing an important line here!
textSize(25);
fill(0);
String s = "░▒▓█▄▌▐ éèàuü ♂░►_-♠*◙▀▲∕●MN@#$";
println(s);
text(s, 50, 70);
}
There are still some characters missing!
You will have to find a font that suits your needs.
Try using the Create Font… tool in the Processing IDE to find a suitable font: