The font must be a .ttf (TrueType) font, and not .otf (OpenType). If you have a .otf font, it is possible, but not certain, that the font can be converted using FontConverter.com online. A reasonably high percentage of .otf fonts can successfully be converted and used.
Fonts are used by specifying the family name of the font in the
FontFace option in the string meter. (e.g.
FontFace=Trebuchet MS). This name can be found by double clicking the font .ttf file and at the very top in the Windows font viewer see the Font Name: at the top left.
Many fonts have subfamily names that are appended to the family name in Windows font viewer. The font name may be MyFont Bold or MyFont BoldItalic. Generally, you should not use these subfamily endings when identifying the font in Rainmeter with
FontFace=MyFont. This can involve a bit of trial and error, but in this example MyFont is the mostly likely correct family name.
Most, but not all fonts can be modified with string meter options. (e.g.
StringEffect) Alternatively, some fonts, particularly some of the ones with subfamily endings as above, will REQUIRE that the matching StringStyle option be added to the string meter. If there are problems using a font, try adding or removing these option on the string meter.
Installed Vs. Uninstalled Fonts
Fonts installed in Windows (they will be in the Windows\Fonts folder) may be used by simply specifying the family name in the
FontFace option of a string meter as described above.
3rd-party font files not installed in Windows can be used by creating a folder @Resources\Fonts in the root level folder of the skin, and putting the font .ttf files there. Rainmeter will automatically load any fonts found in that folder, and they will be available to use with the family name of the font as if they were installed in Windows.
Note: It is recommended that fonts not be distributed in a .rmskin set to automatically install in a user's Windows system. There is generally no need to do this, and it makes it more difficult for users who are running Rainmeter as a "portable" application to use the skin. The fonts should be put in the @Resources\Fonts folder and they will be available and used when the .rmskin is distributed.
There are two ways Rainmeter will react if there is a problem with a font or the way it has been used in a string meter.
- It may produce no error, but display the default Arial font instead of the one specified in
FontFace. This will happen if a .otf font is used, or if the wrong family name is specified.
- A log error "Can't create font" may be produced, and the entire string meter will fail to display. This generally means that a string modifier option like
StringStyle=Boldhas been used with a font that does not support it, or the font itself is just not compatible with Rainmeter.