Fonts: Difference between revisions
→B. The lucky guy's strategy
Line 292: | Line 292: | ||
::'''Pro-tip:''' Search free fonts in websites '''of the targeted country'''. For example, if you need French characters, then search [http://www.dafont.com this one], type "pixel" in the search box, and download only the fonts that have the "accents" flag on the left-hand side. | ::'''Pro-tip:''' Search free fonts in websites '''of the targeted country'''. For example, if you need French characters, then search [http://www.dafont.com this one], type "pixel" in the search box, and download only the fonts that have the "accents" flag on the left-hand side. | ||
:2. Import the font into your game. Special characters should be rendered correctly. | :2. Import the font into your game. Special characters should be rendered correctly. | ||
: | |||
:{| 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 might 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. | |||
'''EDIT:''' this issue '''no longer exists''' of you use Rulaman's TtfWfnSci tool (see corresponding section of this document) | |||
|} | |||
::'''Pros:''' | ::'''Pros:''' | ||
Line 301: | Line 309: | ||
::** If you don't find the TTF font with the special characters you need, you're done for. | ::** If you don't find the TTF font with the special characters you need, you're done for. | ||
::** If you need a font with a special '''outline''' (like [http://img2.imageshack.us/img2/8323/foacreditsfont.gif this one]), you're done for! (but if you can just stick to AGS' automated outline, you're good) | ::** If you need a font with a special '''outline''' (like [http://img2.imageshack.us/img2/8323/foacreditsfont.gif this one]), you're done for! (but if you can just stick to AGS' automated outline, you're good) | ||
::** As explained above, some fake pixel-art fonts will look dirty once converted from TTF to real pixels. | ::** As explained above, some fake pixel-art fonts will look dirty once converted from TTF to real pixels. '''EDIT:''' this issue '''no longer exists''' of you use Rulaman's TtfWfnSci tool | ||
=== C. The mad scientist's strategy === | === C. The mad scientist's strategy === |