Tutorials: Font Construction
|
![]() |
AGAST already has a small assortment of fonts that you can use or customize. Here is what you need to know to make your own. Fonts in AGAST are simply sprites with each frame representing a different ASCII character. Since the first 32-characters (0 to 31) of ASCII are symbols used to represent control codes, they are skipped. Character 32 (the space symbol) is invisible, so it is also skipped. That leaves characters 33 through 127 to draw. The vertical and horizontal spacing is determined by the sprite's center point (the dot in the first frame). Vertical spacing is distance between lines of text, and horizontal spacing is the width of the space character. To add or remove space between characters, just make the frame around it larger or smaller. The carret symbol (^) is used as the dialog bullet. For typographical quality, you might opt to use the underscore symbol as an em-dash, the apostrophe and back-quote as open- and close-quotation marks (using a pair of each inside literal strings like this: ‘‘Hello.'' Of course, it should look better when the font is designed for it. Here is an example: ![]() To create a new font, you can just edit this file, or make a new one with the characters in the same order. See Also... |
![]() |
![]() ![]() ![]() ![]() ![]() |