<HTML> <HEAD> <TITLE>ClanLib Game SDK: Creating a font using the old method, ClanLib API overview</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 14px; border-style: solid; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 14px; } LI { font-size: 14px; } --></STYLE> </HEAD> <body bgcolor=white text=black> <center> <table width=70%> <tr> <td> <center><table><tr><td> <img SRC="Images/clanlib_logo_small.gif" alt="ClanLib logo"><br> </td></tr></table></center> <h1>Creating a font using the old method, ClanLib API overview</h1> <p>You need to use a 256 color bitmap. You may draw the letters in any order, but keep in mind that colors with indexes 253, 254, 255 are reserved.</p> <p>A typical font would look like this:</p> <p><img src="Images/font_old0.png"</p> <p>From this, one can deduce the following rules:</p> <ul> <li>color 255 is used as an "horizontal delimiter" (the white lines).</li> <li>color 254 is used as a "vertical delimiter" (the green lines).</li> <li>color 253 is used as a "carriage return" (the dark red lines), when one needs to define a font on several lines.</li> </ul> <p>Save your file as a 256 coloured PCX. Note that Photoshop strangely moves index colours 253, 254, 255 to index 1,2 and 3. Don't ask why :)</p> </TD> </TR> </TABLE> <BR> <BR> <FONT COLOR="#a0a0a0">Questions or comments, write to the <a href="mailto:clanlib-user.x.dtu.dk">ClanLib mailing list</a>.</FONT> </CENTER> </BODY> </HTML>