Debian Codegraph @

Documentation/Overview/font_creation_alpha.xml

raw
1 <xml>
2 <head>
3 <title>Creating a font using alpha method, ClanLib API overview</title>
4 </head>
5 <body>
6
7 <p>1. Launch your favourite paint program.</p>
8 <p>2. Create a new image; make sure the background is set to <b>transparent</b>.
9 You have to make the image very wide; set the image to 2000x50 for example.
10 <p><img src="Images/font0.png" width="363" height="332"></p>
11 </p>
12 <p>3. Select the text tool, select a font and size, and enter the letters you
13 want in your font. You need to make sure there is an empty space between
14 each letter; a good practise is to put a space between each letter.
15 Example: "A a B b C c D d E e ...".
16 <p><img src="Images/font1.png" width="551" height="358"></p>
17 </p>
18 <p>4. Make sure the whole font fits in your image. It doesn't matter if there
19 are empty lines above, below, in front or at the end of the font.
20 <p><img src="Images/font4.png" width="691" height="162"></p>
21 </p>
22 <p>5. Often some characters need some manual fixing, as they contain empty vertical
23 lines. The " is a typical example of this, it often has empty lines between
24 the two '. The solution is to create some barely visible pixels between them,
25 so the cutter understands it is only one letter.
26 <p><img src="Images/font5.png" width="346" height="380"><img src="Images/font6.png" width="346" height="380"></p>
27 </p>
28 <p>6. Save your work as a 32-bits image; TGA or PNG is well-suited for this.
29 Notice that Photoshop and Paintshop have trouble handling alphavalues when saving.
30 Gimp is excellent for this, though.</p>
31
32 </body>
33 </xml>
34