Im using latex to automate some report generation. We use the font Rockwell as a default font. Im not used to latex and I found many different ways of changing the default font but many of them seemed very strange and none of it worked for me! So what is a simple way to change the font and can I include a font like Rockwell without any problems or do I need to import not that standard fonts in a special way?
The problem, as described in comments, is to determine the correct font name for use with
Mini-Howto on selecting fonts with fontconfig
XeTeX relies on OS-specific libraries to load fonts. In case of Linux it is the fontconfig library. It's quite easy for basic use.
- If the font is already installed in the system (and many will be), it can be selected simply by its name. You can find out the precise name to use by issuing
fc-listand examining the output (perhaps with the help of
- If the font is not listed, it can be installed manually. Fonts can be installed system-wise or user-wise. I recommend the second way, because it does not require additional privileges and won't pollute the system directories. To install a font, simply place it in the
.fontsdirectory in your home directory. You may need to create the directory if it doesn't exist, and you may need to enable display of hidden files to see this directory in your file manager. Once the font has been placed in the directory, run
fc-cacheto regenerate the font cache, then try the first step again.