Skinning.fonts

From Shareaza Wiki
Revision as of 08:47, 6 May 2014 by Ji d (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  Languages:

[[::Skinning.fonts|English]] • [[::Skinning.fonts/de|Deutsch]] • [[::Skinning.fonts/es|Español]] • [[::Skinning.fonts/fr|Français]] • [[::Skinning.fonts/he|עברית]] • [[::Skinning.fonts/it|Italiano]] • [[::Skinning.fonts/nl|Nederlands]] • [[::Skinning.fonts/pl|Polski]] • [[::Skinning.fonts/pt|Português]] • [[::Skinning.fonts/ru|Русский]] • [[::Skinning.fonts/zh-hant|‪中文(繁體)]]

e
  Updated:

This page has been updated on 2014.05.06 for the release of Shareaza v2.7.x.0.

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:

<?xml version="1.0" encoding="UTF-8"?>
<skin xmlns="http://shareaza.sourceforge.net/schemas/Skin.xsd" version="1.0">
  <manifest name="My Font Skin" author="Me" type="Skin"/>
  <fonts>
     
     
     
  </fonts>
</skin>

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:


Police 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 :

<import path="HOOG0553.ttf"/>

A full example:

<?xml version="1.0" encoding="UTF-8"?>
<skin xmlns="http://shareaza.sourceforge.net/schemas/Skin.xsd" version="1.0">
  <manifest name="My Font Skin" author="Me" type="Skin"/>
  <fonts>
     <import path="HOOG0553.ttf"/>
     
     
     
  </fonts>
</skin>



Navigation:     ShareazaWiki > Skinning tutorial > Skinning.fonts