| 1 |
<xml> |
| 2 |
<head> |
| 3 |
<title>Creating a font using palette method, ClanLib API overview</title> |
| 4 |
</head> |
| 5 |
<body> |
| 6 |
|
| 7 |
<p>You need to use a 256 color bitmap. You may draw the letters in any order, |
| 8 |
but keep in mind that colors with indexes 253, 254, 255 are reserved.</p> |
| 9 |
|
| 10 |
<p>A typical font would look like this:</p> |
| 11 |
|
| 12 |
<p><img src="Images/font_old0.png"</p> |
| 13 |
|
| 14 |
<p>From this, one can deduce the following rules:</p> |
| 15 |
|
| 16 |
<ul> |
| 17 |
<li>color 255 is used as an "horizontal delimiter" (the white lines).</li> |
| 18 |
<li>color 254 is used as a "vertical delimiter" (the green lines).</li> |
| 19 |
<li>color 253 is used as a "carriage return" (the dark red lines), when one needs to define a font on several lines.</li> |
| 20 |
</ul> |
| 21 |
|
| 22 |
<p>Save your file as a 256 coloured PCX. Note that Photoshop strangely moves index |
| 23 |
colours 253, 254, 255 to index 1,2 and 3. Don't ask why :)</p> |
| 24 |
|
| 25 |
</body> |
| 26 |
</xml> |