<li><aclass="backlink"title="Click to do a full-text search for this title"href="./Adding_Fonts_to_use_in_Quake_4_GUIs?action=fullsearch&value=linkto%3A%22Adding+Fonts+to+use+in+Quake+4+GUIs%22&context=180">Adding Fonts to use in Quake 4 GUIs</a></li>
<spanclass="anchor"id="line-3"></span><spanclass="anchor"id="line-4"></span><pclass="line867"><aclass="attachment"href="./Adding_Fonts_to_use_in_Quake_4_GUIs?action=AttachFile&do=get&target=q4font.zip"title="attachment:q4font.zip">q4font.zip</a><spanclass="anchor"id="line-5"></span><spanclass="anchor"id="line-6"></span><pclass="line867"><hr/><pclass="line874"><spanclass="anchor"id="line-7"></span>Quake 4 uses a specific font program to generate the <ahref="./Font_Information">font files needed by the GUIs</a>. <spanclass="anchor"id="line-8"></span><spanclass="anchor"id="line-9"></span><pclass="line874">To generate fonts: <spanclass="anchor"id="line-10"></span><spanclass="anchor"id="line-11"></span><ul><li>Place q4font.exe in a folder alongside of any *.ttf files you wish to import. <spanclass="anchor"id="line-12"></span></li><li><pclass="line862">From the Start menu, hit Run, type <strong>cmd</strong> and hit ok to start a DOS command prompt. <spanclass="anchor"id="line-13"></span></li><li><pclass="line862">Change to the directory that q4font.exe is in. <aclass="http"href="http://en.wikipedia.org/wiki/List_of_DOS_commands">Help on DOS commands</a><spanclass="anchor"id="line-14"></span></li><li>Enter commands to export your font: <spanclass="anchor"id="line-15"></span><spanclass="anchor"id="line-16"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-29"></span></pre><spanclass="anchor"id="line-30"></span><spanclass="anchor"id="line-31"></span><pclass="line874">The *.tga and *.fontdat files are saved in a /fonts/ folder inside of the folder where you q4font.exe is located. <spanclass="anchor"id="line-32"></span><spanclass="anchor"id="line-33"></span><pclass="line867"><hr/><pclass="line874"><spanclass="anchor"id="line-34"></span><spanclass="anchor"id="line-35"></span><pclass="line862">The Q4 Font tool uses a <strong>Symbol</strong> codepage for fonts, which is different than a standard Windows font codepage of <strong>MS Latin</strong> or <strong>Windows ANSI</strong>. This means that you cannot take *.ttf files used in Windows programs and use them without modification. Altering a font requires font editing software such as <strong>Font Lab</strong> or <strong>Macromedia Fontographer</strong>. Using a standard *.ttf in q4font will result in <strong>blank font *.tga's</strong>. <spanclass="anchor"id="line-36"></span><spanclass="anchor"id="line-37"></span><pclass="line862">When changing a font from <strong>Windows ANSI</strong> to <strong>Symbol</strong>, it is important to remember to add blank characters with 0 character width. This means do not copy and paste the space character, create a new character with 0 side bearings. In the images below, these blank characters are illustrated as white squares in the Symbol image. Note the ANSI image has grey squares for completely missing characters instead. <spanclass="anchor"id="line-38"></span><spanclass="anchor"id="line-39"></span><pclass="line862">Included below are two different examples of fonts, one in <strong>Symbol</strong> and the other in <strong>Windows ANSI</strong> for comparison. <spanclass="anchor"id="line-40"></span><spanclass="anchor"id="line-41"></span><ul><li><pclass="line862">Windows ANSI: <aclass="attachment"href="./Adding_Fonts_to_use_in_Quake_4_GUIs?action=AttachFile&do=get&target=marine_ansi.zip"title="attachment:marine_ansi.zip">marine_ansi.zip</a><spanclass="anchor"id="line-42"></span></li><li><pclass="line862">Symbol: <aclass="attachment"href="./Adding_Fonts_to_use_in_Quake_4_GUIs?action=AttachFile&do=get&target=marine_symbol.zip"title="attachment:marine_symbol.zip">marine_symbol.zip</a><spanclass="anchor"id="line-43"></span><spanclass="anchor"id="line-44"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-49"></span><spanclass="anchor"id="line-50"></span><pclass="line867"><imgclass="attachment"src="./Adding_Fonts_to_use_in_Quake_4_GUIs?action=AttachFile&do=get&target=guied_symbol.jpg"title="attachment:guied_symbol.jpg"/><spanclass="anchor"id="line-51"></span><spanclass="anchor"id="line-52"></span><pclass="line867"><hr/><pclass="line874"><spanclass="anchor"id="line-53"></span>The list of fonts is populated when the <ahref="./GUIEditor">GUIEditor</a> is started, so if you add a font you must restart the <ahref="./GUIEditor">GUIEditor</a>. Add fonts to the following folder within Quake4: <spanclass="anchor"id="line-54"></span><spanclass="anchor"id="line-55"></span><pclass="line867"><spanclass="anchor"id="line-56"></span><pre>../q4base/fonts/
<spanclass="anchor"id="line-57"></span></pre><spanclass="anchor"id="line-58"></span><spanclass="anchor"id="bottom"></span></div><pid="pageinfo"class="info"lang="en"dir="ltr">Adding Fonts to use in Quake 4 GUIs (last edited 2006-04-27 21:26:21 by <spantitle="MattVainio @ 67.129.250.254[67.129.250.254]"><aclass="nonexistent"href="./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>