Fonts: Difference between revisions
→B. The lucky guy's strategy
Line 278: | Line 278: | ||
=== B. The lucky guy's strategy === | === B. The lucky guy's strategy === | ||
:1. Find one (or several similar-looking) TTF font(s) that has(have) all the special characters you need. | :1. Find one (or several similar-looking) TTF font(s) that has(have) all the special characters you need. As said before, many of them even mimic the pixel-art style. (see section "how can I find fonts?" | ||
::'''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. | :2. Import the font into your game. Special characters should be rendered correctly. | ||
::'''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. | |||
::'''Pros:''' | ::'''Pros:''' | ||
::* Simplest and most elegant solution. | ::* Simplest and most elegant solution. | ||
::'''Cons:''' | ::'''Cons:''' | ||
::* If you don't find the TTF font with the special characters you need, you're done for. | ::*Lots of hazard... | ||
::* 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 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) | |||
::** As explained above, some fake pixel-art fonts will look dirty once converted from TTF to real pixels. | |||
=== C. The mad scientist's strategy === | === C. The mad scientist's strategy === |