Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > a2116f36018873d572acbcadddb8e994 > files > 20

clanlib0.8-docs-0.8.1-22.mga7.i586.rpm


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Creating a font using alpha method, ClanLib API overview - ClanLib Game SDK</title>
<link rel="stylesheet" type="text/css" href="../../default.css">
</head>
<body style="background-color: #a4daea; color: black; margin: 1em 3em 1em 3em;">
<div style="border-style: solid; border-width:thin; border-color: black;">
<div style="background-color: white; color: black; padding: .3em 1em .3em 1em; border-bottom-style: dotted; border-bottom-width: 2px;">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td align="center">
<h1>
<a href="http://www.clanlib.org"><img style="border-style: none; padding-right: 130px;" src="../../gfx/clanlib.png" alt="ClanLib"></a>
</h1>
</td>
</tr>
</table>
<!--<div class="menu">
  <a href="index.html">News</a>
  <a href="intro.html">About</a>
  <a href="download.html">Download</a>
  <a href="cvs.html">CVS</a>
  <a class="active" href="docs.html">Docs</a>
  <a href="games.html">Games</a>
  <a href="contact.html">Contact</a>
  <a href="links.html">Links</a>
</div>-->
</div>
<div style="background-color: white; padding: 1em 3em 1em 3em;">
<!-- clanlib header end -->

<div style="border-bottom-style: dotted;  border-bottom-width: 1px; margin-bottom: 1em;"><h2>Creating a font using alpha method, ClanLib API overview</h2></div>



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

<!-- clanlib footer begin -->
<div style="margin-top: 0em; text-align: center; color: #a0a0a0; border-top-style: dotted; border-top-width: 1px;">
              Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
            </div>
</div>
</div>
</body>
</html>