[ Nazaj na Shareazine preobleke ]
<fonts>Element imenovan <fonts> spremeni pisave v uporabniškem vmesniku. Vsaka posamezna pisava ima svoje ime in vsako tako imenovano pisavo lahko dodelite posameznemu stilu pisave (angl. font style).
Here is an example from MyFontSkin.xml:
<?xml version="1.0" encoding="UTF-8"?> <skin xmlns="http://www.shareaza.com/schemas/Skin.xsd" version="1.0"> <manifest name="My Font Skin" author="Me" type="Skin"/> <fonts> <font name="System.Plain" face="Times New Roman" size="12" weight="bold"/> <font name="System.Plain" face="MS UI Gothic" size="12" weight="normal" language="ja"/> <font name="System.Plain" face="Tahoma" size="14" weight="bold" language="chs"/> </fonts> </skin> |
Na voljo so atributi za vsako specifikacijo pisave:
- name - The name of the font target.
- face - The font face name, for example "Tahoma".
- size - Velikost pisave, kot je npr. "11".
- weight - Debelina pisave, navedena bodisi kot konstanta ali številka (angl. integer) z vrednostjo med 1 in 1000. Dovoljene so tudi vrednosti "normal", za navadni debelino pisave ter "bold", za krepko pisavo.
- 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.
Tu je naveden seznam in opis različnih ciljnih imen za pisave:
Pisava | Opis |
System.Plain | Navadna sistemska pisava, ki se uporablja v vseh menijih, orodnih in ukaznih vrsticah. |
System.Bold | Sistemska pisava bold/emphasis, ki se uporablja za vzglavja in privzete ukazne dele. |
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:
<import path="HOOG0553.ttf"/>
Podroben primer:
<?xml version="1.0" encoding="UTF-8"?> <skin xmlns="http://www.shareaza.com/schemas/Skin.xsd" version="1.0"> <manifest name="My Font Skin" author="Me" type="Skin"/> <fonts> <import path="HOOG0553.ttf"/> <font name="System.Plain" face="Arial" size="10" weight="bold"/> <font name="System.Bold" face="Arial" size="10" weight="bold"/> <font name="Panel.Caption" face="Arial" size="10" weight="bold"/> </fonts> </skin> |