Blob Blame History Raw
<?xml version="1.0"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

    <title>CentOS Artwork Repository: 2.52 The trunk/Locales/Identity/Fonts Directory</title>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="description" content="CentOS Artwork Repository: 2.52 The trunk/Locales/Identity/Fonts Directory" />
    <meta name="keywords" content="CentOS Artwork Repository: 2.52 The trunk/Locales/Identity/Fonts Directory" />
    <meta name="resource-type" content="document" />
    <meta name="distribution" content="global" />
    <meta name="generator" content="texi2html 1.76" />
    <meta name="copyright" content="2009-2011 Alain Reguera Delgado" />

    <link href="/home/centos/artwork/trunk/Identity/Manual/repository.css" rel="stylesheet" type="text/css" media="screen projection" />

</head>

<body>

<a name="top" />

<div id="wrap">

    <div id="page-body">

        <div id="content">

<!-- Created on March, 30 2011 by texi2html 1.76 -->
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="repository_58.xhtml#SEC287" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC289" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository_7.xhtml#SEC12" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="repository_7.xhtml#SEC12" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="repository_80.xhtml#SEC416" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository.xhtml#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="repository_toc.xhtml#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="repository_80.xhtml#SEC416" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="repository_abt.xhtml#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Directories-trunk-Locales-Identity-Fonts"></a>
<a name="SEC288"></a>
<h2 class="section"> 2.52 The <tt>`trunk/Locales/Identity/Fonts'</tt> Directory </h2>

<div class="page-line white"><hr style="display:none;" /></div>
<a name="SEC289"></a>
<h3 class="subsection"> 2.52.1 Goals </h3>

<p>This section exists to organize fonts translation files.
</p><div class="page-line white"><hr style="display:none;" /></div>
<a name="SEC290"></a>
<h3 class="subsection"> 2.52.2 Description </h3>

<p>Translation files, inside <tt>`trunk/Translations/Fonts'</tt>, have the
following structure:
</p>
<pre class="verbatim">s!font-family:Denmark!font-family:DejaVu LGC Sans!
s!font-weight:normal!font-weight:bold!
s!font-style:normal!font-style:italic!
</pre>
<p>Inside <tt>`trunk/Translations/Fonts'</tt>, there is one translation file
for each font preview image you want to produce. This way, we create
one translation file for each font-family we use somewhere inside
CentOS visual identity.
</p>
<blockquote class="orange icon"><img src="/home/centos/artwork/trunk/Identity/Images/Webenv/icon-admonition-star.png" alt="Important" /><h3>Important</h3><p> Do not create translation files for
font-families not used somewhere inside CentOS visual identity. The
identity of font entry (see section <a href="repository_14.xhtml#SEC47">The <tt>`trunk/Identity/Fonts'</tt> Directory</a>) is used as
reference when someone needs to know which font-families are allowed
to use inside CentOS visual identity.
</p></blockquote>

<div class="page-line white"><hr style="display:none;" /></div>
<a name="SEC291"></a>
<h4 class="subsubsection"> 2.52.2.1 Translation Markers </h4>

<p>Inside <tt>`trunk/Translations/Identity/Fonts'</tt>, translation files
combine the following translation markers:
</p>
<dl compact="compact">
<dt> <samp>`font-family:Denmark'</samp></dt>
<dd><p>Specify which font family to use when rendering font preview images.
</p></dd>
<dt> <samp>`font-weight:normal'</samp></dt>
<dd><p>Specify which font weight to use when rendering font preview images.
</p></dd>
<dt> <samp>`font-style:normal'</samp></dt>
<dd><p>Specify which font style to use when rendering font preview images.
</p></dd>
</dl>

<div class="page-line white"><hr style="display:none;" /></div>
<a name="SEC292"></a>
<h3 class="subsection"> 2.52.3 Usage </h3>

<p>Inside <tt>`trunk/Translations/Fonts'</tt> you use your favorite text
editor to create translation files.  Inside
<tt>`trunk/Translations/Fonts'</tt> there is not translation template
directory (<tt>`Tpl/'</tt>), nor translation rendering using
<code>centos-art</code> script.  For example, to create the
<tt>`dejavu_lgc_sans-boldoblique.sed'</tt> translation file using
<code>vim</code> editor, type the following command:
</p>
<pre class="verbatim">vim /home/centos/artwork/trunk/Translations/Fonts/dejavu_lgc_sans-boldoblique.sed
</pre>
<div class="page-line white"><hr style="display:none;" /></div>
<a name="SEC293"></a>
<h3 class="subsection"> 2.52.4 See also </h3>

<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="repository_14.xhtml#SEC47">2.7 The <tt>`trunk/Identity/Fonts'</tt> Directory</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
</table>


<div class="page-line white"><hr style="display:none;" /></div>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC292" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="repository_60.xhtml#SEC294" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository_7.xhtml#SEC12" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC288" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="repository_80.xhtml#SEC416" title="Next chapter"> &gt;&gt; </a>]</td>
</tr></table>

            <div class="page-line"><hr style="display:none;" /></div>

        </div>

    </div>

    <div class="page-line white"><hr style="display:none;" /></div>

</div>

</body>

</html>