Skinning How To/The XML files/fonts.xml


fonts.xml

This file defines the font selection for the default skin of the viewer, and is located in the primary folder \SecondLife\skins\default\xui\en-us.

A customized alternate font specification can therefore be created in any other viewer skin and/or language, such as for French in the Silver skin, by creating a complementary file in \SecondLife\skins\silver\xui\fr

Notes

Localization/overlay

 <font name="Helvetica"
	comment="Name of Helvetica font">
    <file>arial.ttf</file>
  </font>

  <font name="Helvetica"
	comment="Name of Helvetica font (bold)"
	font_style="BOLD">
    <file>arialbd.ttf</file>
  </font>

  <font name="Helvetica"
	comment="Name of Helvetica font (italic)"
	font_style="ITALIC">
    <file>ariali.ttf</file>
  </font>

  <font name="Helvetica"
	comment="Name of Helvetica font (bold italic)"
	font_style="BOLD|ITALIC">
    <file>arialbi.ttf</file>
  </font>


floater_font_test.xml

The visual usage of each of the fonts defined in the standard fonts.xml file can be displayed in the viewer by opening a test floater via Advanced > XUI > Font Test.

This Font Test window is defined in floater_font_test.xml