Difference between revisions of "Skinning How To/Add custom fonts to the viewer"

From Second Life Wiki
Jump to navigation Jump to search
(New page: = Introduction = There are three font styles you can add to your skin: * FontSansSerif (Regular text) * FontSansSerifBold (Bold text) * FontMonospace (Script Editor text) These fonts ...)
 
m (included link to new fonts.xml information)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''NOTE:''' This page is somewhat old.  In version 1.23 of the viewer there is a new ability to specify fonts in the XML files.  Please see [[Skinning How To/The XML files/fonts.xml]] for more information.
= Introduction =  
= Introduction =  


Line 7: Line 9:
* FontMonospace (Script Editor text)
* FontMonospace (Script Editor text)


These fonts are currently set in settings.xml (the file that holds all the viewer settings). Settings.xml should be included in skins. However, the default fonts for these are also included in the viewer in the '''SecondLifeReleaseCandidate\fonts\''' folder, so can using file replace custom fonts can be used.  
These fonts are currently set in settings.xml (the file that holds all the viewer settings). Settings.xml should be included in skins. However, the default fonts for these are also included in the viewer in the '''SecondLifeReleaseCandidate\fonts\''' folder, thus can be replaced.


= Replacing the viewer fonts with your own =
= Replacing the viewer fonts with your own =
Line 21: Line 23:


To replace them:
To replace them:
# Download a free or open source font (.ttf file), or create your own.
# Download a free or open source font (.ttf file), or create your own. The font can be serif if you'd like.
# Delete or rename the pre-installed viewer fonts.
# Delete or rename the pre-installed viewer fonts.
# Rename your font to the same name as the viewer fonts you want to replace.  
# Rename your font to the same name as the viewer fonts you want to replace.  

Latest revision as of 20:22, 12 May 2009

NOTE: This page is somewhat old. In version 1.23 of the viewer there is a new ability to specify fonts in the XML files. Please see Skinning How To/The XML files/fonts.xml for more information.

Introduction

There are three font styles you can add to your skin:

  • FontSansSerif (Regular text)
  • FontSansSerifBold (Bold text)
  • FontMonospace (Script Editor text)

These fonts are currently set in settings.xml (the file that holds all the viewer settings). Settings.xml should be included in skins. However, the default fonts for these are also included in the viewer in the SecondLifeReleaseCandidate\fonts\ folder, thus can be replaced.

Replacing the viewer fonts with your own

WARNING: Be SURE you have distribution and modify rights to the fonts you use. You cannot alter or distribute proprietary fonts.

In the SecondLifeReleaseCandidate\fonts\ folder, you'll see the following font files:

  • MtBkLfRg.ttf (Sans serif font)
  • MtBdLfRg.ttf (Sans serif bold font)
  • profontwindows.ttf (Monospace font)

These are the default fonts the viewer uses (i.e. the default ones set in settings.xml).

To replace them:

  1. Download a free or open source font (.ttf file), or create your own. The font can be serif if you'd like.
  2. Delete or rename the pre-installed viewer fonts.
  3. Rename your font to the same name as the viewer fonts you want to replace.
  4. Run Second Life.

Note that some fonts will not work well with the viewer. This is very much a try-as-you go process.