Typographies with contour can make anything readable in any situation, so I want to implement them in my game. I’m talking about fonts like the one that counts your gold in this video:
To do so, I'd have to create a typography with two tones (black and white), but I don't know if that is possible, as all fonts I've ever seen only have one. Any idea on how to achieve this?Rather than creating a font, You just need to create 10 sprites for the digits 0-9, then display the appropriate combination as GuiTextures via code. Create the sprites in, say GIMP, and you can apply whatever text effects you want.
The way i’m doing it is just have the same GUIText with a slight offset, darker and behind the text. That makes it look as if it has a slight shadow.
Take a look at advanced SDF based font engines to accomplish this.
The best solution (specially for its high rendering quality and features) is Textmesh pro.
You can create an unlimited amount of advanced dynamic typographic styles from TTF, all within Unity.
This way you can effortlessly create animatable font treatment that can be plain (like just an outline and shadow) or more fancy.