<li><aclass="backlink"title="Click to do a full-text search for this title"href="/quake4/Font_Information?action=fullsearch&value=linkto%3A%22Font+Information%22&context=180">Font Information</a></li>
<spanclass="anchor"id="line-1"></span><pclass="line874">GUIs in Quake4 use Truetype fonts (*.ttf) converted into *.tga images along with a font data file (*.fontdat) that describes where within the *.tga every character resides. These *.tga files can be edited in any standard image editing software that allows Alpha Channel editing. The characters are all located in this Alpha Channel. <spanclass="anchor"id="line-2"></span><spanclass="anchor"id="line-3"></span><pclass="line862">Quake 4 uses three font point sizes, which one it chooses to use is dependent on the <ahref="/quake4/Def_Flags#textscale">Text Scale</a> attribute of the specified windowDef. The three font point sizes are: <strong>12</strong>, <strong>24</strong> and <strong>48</strong>. Below is a chart relating to <ahref="/quake4/Def_Flags#textscale">textscale</a> and which point size will be used. <spanclass="anchor"id="line-4"></span><spanclass="anchor"id="line-5"></span><div><tablestyle="width: 50%"><tbody><tr><td><pclass="line891"><ahref="/quake4/Def_Flags#textscale">textscale</a> less than or equal to 0.3</td>
<td><pclass="line891"><strong>12</strong></td>
</tr>
<tr><td><spanclass="anchor"id="line-6"></span><pclass="line891"><ahref="/quake4/Def_Flags#textscale">textscale</a> larger than 0.3 and 0.6 or less.</td>
<td><pclass="line891"><strong>24</strong></td>
</tr>
<tr><td><spanclass="anchor"id="line-7"></span><pclass="line891"><ahref="/quake4/Def_Flags#textscale">textscale</a> larger than 0.6</td>
<td><pclass="line891"><strong>48</strong></td>
</tr>
</tbody></table></div><spanclass="anchor"id="line-8"></span><spanclass="anchor"id="line-9"></span><pclass="line874">A single font can have more than one *.tga attached to it, depending on the export size of the character and how many characters are in the font. Example font file names from Quake 4: <spanclass="anchor"id="line-10"></span><spanclass="anchor"id="line-11"></span><pclass="line867"><spanclass="anchor"id="line-12"></span><pre>marine_12.fontdat
<spanclass="anchor"id="line-18"></span></pre><spanclass="anchor"id="line-19"></span><spanclass="anchor"id="line-20"></span><pclass="line862">To select fonts within the <ahref="/quake4/GUIEditor">GUIEditor</a>, select the dropdown box and choose the font you wish to use. <spanclass="anchor"id="line-21"></span><spanclass="anchor"id="line-22"></span><pclass="line867"><imgclass="attachment"src="/quake4/Font_Information?action=AttachFile&do=get&target=guied_fonts.jpg"title="attachment:guied_fonts.jpg"/><spanclass="anchor"id="line-23"></span><hr/><pclass="line874"><spanclass="anchor"id="line-24"></span>The list of fonts is populated when the <ahref="/quake4/GUIEditor">GUIEditor</a> is started, so if you add a font you must restart the <ahref="/quake4/GUIEditor">GUIEditor</a>. Add fonts to the following folder within Quake4: <spanclass="anchor"id="line-25"></span><spanclass="anchor"id="line-26"></span><pclass="line867"><spanclass="anchor"id="line-27"></span><pre>../q4base/fonts/
<spanclass="anchor"id="line-28"></span></pre><spanclass="anchor"id="line-29"></span><pclass="line867"><hr/><pclass="line874"><spanclass="anchor"id="line-30"></span>To import fonts into the game you need to use the <ahref="/quake4/Adding_Fonts_to_use_in_Quake_4_GUIs">Q4Font</a> tool. <spanclass="anchor"id="line-31"></span><spanclass="anchor"id="bottom"></span></div><pid="pageinfo"class="info"lang="en"dir="ltr">Font Information (last edited 2005-11-03 20:42:10 by <spantitle="MattVainio @ 67.129.250.254[67.129.250.254]"><aclass="nonexistent"href="/quake4/MattVainio"title="MattVainio @ 67.129.250.254[67.129.250.254]">MattVainio</a></span>)</p>
<li><ahref="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a></li><li><ahref="http://www.python.org/">Python Powered</a></li><li><ahref="http://validator.w3.org/check?uri=referer">Valid HTML 4.01</a></li>