Skinning.fonts: Difference between revisions
(added recovered 2nd level content Skinning.fonts - Verification needed!) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{do not translate}} | ||
{{ | {{Recovered|The following content has been recovered from the old wiki and pantheraproject*net. Competent verification is needed.}} | ||
<h1> <span class="mw-headline"><fonts></span></h1> | <h1> <span class="mw-headline"><fonts></span></h1> |
Revision as of 00:52, 28 August 2010
Translation |
Do not translate this page into other languages. It is either low priority, too specific or incomplete. | e |
Recovered |
The following content has been recovered from the old wiki and pantheraproject*net. Competent verification is needed. | e |
<fonts>
The <fonts> element changes the fonts used within the user interface. Each different font is given a name, and you can set each of these named fonts to a particular font style.
Here is an example from MyFontSkin.xml:
<span class="re1"><?xml</span> <span class="re0">version</span>=<span class="st0">"1.0"</span> <span class="re0">encoding</span>=<span class="st0">"UTF-8"</span><span class="re2">?></span> <span class="re1"><skin</span> <span class="re0">xmlns</span>=<span class="st0">"http://www.shareaza.com/schemas/Skin.xsd"</span> <span class="re0">version</span>=<span class="st0">"1.0"</span><span class="re2">></span> <span class="re1"><manifest</span> <span class="re0">name</span>=<span class="st0">"My Font Skin"</span> <span class="re0">author</span>=<span class="st0">"Me"</span> <span class="re0">type</span>=<span class="st0">"Skin"</span><span class="re2">/></span> <span class="re1"><fonts<span class="re2">></span></span> <span class="re1"><font</span> <span class="re0">name</span>=<span class="st0">"System.Plain"</span> <span class="re0">face</span>=<span class="st0">"Times New Roman"</span> <span class="re0">size</span>=<span class="st0">"12"</span> <span class="re0">weight</span>=<span class="st0">"bold"</span><span class="re2">/></span> <span class="re1"><font</span> <span class="re0">name</span>=<span class="st0">"System.Plain"</span> <span class="re0">face</span>=<span class="st0">"MS UI Gothic"</span> <span class="re0">size</span>=<span class="st0">"12"</span> <span class="re0">weight</span>=<span class="st0">"normal"</span> <span class="re0">language</span>=<span class="st0">"ja"</span><span class="re2">/></span> <span class="re1"><font</span> <span class="re0">name</span>=<span class="st0">"System.Plain"</span> <span class="re0">face</span>=<span class="st0">"Tahoma"</span> <span class="re0">size</span>=<span class="st0">"14"</span> <span class="re0">weight</span>=<span class="st0">"bold"</span> <span class="re0">language</span>=<span class="st0">"chs"</span><span class="re2">/></span> <span class="re1"></fonts<span class="re2">></span></span> <span class="re1"></skin<span class="re2">></span></span>
These attributes are available for each font specification:
- name - The name of the font target.
- face - The font face name, for example "Tahoma".
- size - The font size, for example "11".
- weight - The font weight, either as a constant or an integer value between 1 and 1000. "normal" and "bold" are also accepted.
- language - The specific language that this font specification will be used on.
Not setting this attributes will make this specification apply to all languages. The language code and not the language name should be used, for example "ja" for Japanese.
And here is a list and description of the different font target names:
Font | Description |
System.Plain | The plain system font, used in all menus, toolbars and command bars. |
System.Bold | The bold/emphasis system font, used for headings and default command items. |
Panel.Caption | The panel window (tabbed mode) caption font. |
If you want to use a font not typically found by default on Windows then you can import the font. Just include the font (in this case, Hoog0553) in your skin's folder and add the following path:
<span class="re1"><import</span> <span class="re0">path</span>=<span class="st0">"HOOG0553.ttf"</span><span class="re2">/></span>
A full example:
<span class="re1"><?xml</span> <span class="re0">version</span>=<span class="st0">"1.0"</span> <span class="re0">encoding</span>=<span class="st0">"UTF-8"</span><span class="re2">?></span> <span class="re1"><skin</span> <span class="re0">xmlns</span>=<span class="st0">"http://www.shareaza.com/schemas/Skin.xsd"</span> <span class="re0">version</span>=<span class="st0">"1.0"</span><span class="re2">></span> <span class="re1"><manifest</span> <span class="re0">name</span>=<span class="st0">"My Font Skin"</span> <span class="re0">author</span>=<span class="st0">"Me"</span> <span class="re0">type</span>=<span class="st0">"Skin"</span><span class="re2">/></span> <span class="re1"><fonts<span class="re2">></span></span> <span class="re1"><import</span> <span class="re0">path</span>=<span class="st0">"HOOG0553.ttf"</span><span class="re2">/></span> <span class="re1"><font</span> <span class="re0">name</span>=<span class="st0">"System.Plain"</span> <span class="re0">face</span>=<span class="st0">"Arial"</span> <span class="re0">size</span>=<span class="st0">"10"</span> <span class="re0">weight</span>=<span class="st0">"bold"</span><span class="re2">/></span> <span class="re1"><font</span> <span class="re0">name</span>=<span class="st0">"System.Bold"</span> <span class="re0">face</span>=<span class="st0">"Arial"</span> <span class="re0">size</span>=<span class="st0">"10"</span> <span class="re0">weight</span>=<span class="st0">"bold"</span><span class="re2">/></span> <span class="re1"><font</span> <span class="re0">name</span>=<span class="st0">"Panel.Caption"</span> <span class="re0">face</span>=<span class="st0">"Arial"</span> <span class="re0">size</span>=<span class="st0">"10"</span> <span class="re0">weight</span>=<span class="st0">"bold"</span><span class="re2">/></span> <span class="re1"></fonts<span class="re2">></span></span> <span class="re1"></skin<span class="re2">></span></span>