Fonts: Difference between revisions
→AND FINALLY, CHOOSE YOUR DESTINY (how to have 256 characters in your game)
Line 267: | Line 267: | ||
== AND FINALLY, CHOOSE YOUR DESTINY (how to have 256 characters in your game) == | == AND FINALLY, CHOOSE YOUR DESTINY (how to have 256 characters in your game) == | ||
'''Note:''' With the release of AGS 3.4 and Rulaman's TtfWfnSci tool, the most reliable (and convenient) solution will become more and more the '''Lucky Guy's strategy'''. | |||
=== A. The hacker's strategy === | === A. The hacker's strategy === | ||
Line 300: | Line 301: | ||
:{| class="wikitable" | :{| class="wikitable" | ||
|- | |- | ||
| '''Pro-tip:''' When you import the font into AGS, it will ask you to choose the font's height. That's because TTF fonts are ''vectorial'', which means they don't have an actual "size" in pixels; ''you'' must choose the size that AGS will use to render them on-screen. However, if your TTF font mimics pixel-art, you | | '''Pro-tip:''' When you import the font into AGS, it will ask you to choose the font's height. That's because TTF fonts are ''vectorial'', which means they don't have an actual "size" in pixels; ''you'' must choose the size that AGS will use to render them on-screen. However, if your TTF font mimics pixel-art, you need to find an import height that will make them look fine: that is, the height in actual pixels, once rendered, will be the same as the font was in "fake" vectorial pixels. If you don't know what height to pick, try every value between 5 and 20, that does the trick for most fonts (especially 10,11 or 12). | ||
But this has a '''major inconvenience:''' if the fake pixels of the TTF font are slightly off, then some rendered pixels (once the font is converted to real pixels) might get anti-aliased... Which means dirty... A complete disaster. If that happens, you just can't use that font, unless you use one of the other strategies. | But this has a '''major inconvenience:''' if the fake pixels of the TTF font are slightly off, then some rendered pixels (once the font is converted to real pixels) might get anti-aliased... Which means dirty... A complete disaster. If that happens, you just can't use that font, unless you use one of the other strategies. |