User Tools

Site Tools


How to Know Where to Put Your Font File (Windows)

At the commandline, run this:

kpsewhich --var=TEXMFLOCAL

It will give you a directory, such as C:\texlive\texmf-local. On that path you will find \fonts\truetype\public This is where you put your fonts (you can use subfolders if you want to).

How to Add Fonts for Use with LuaLaTex (Windows)

  1. Locate your lualatex fonts folder (for example, C:\texlive\texmf-local\fonts\truetype\public
  2. Place your font there (you can use a subfolder if you like)
  3. Now you have to tell lualatex that they are available. Open your commandline and run this command:
  4. Don't forget that in your tex file, you have to use \usepackage{fontspec}
  5. And, to actually call the font, do this within the \begin{document} section:
    %or, to use it in just one place
    \begin{center}\MyFont\huge{The Score Title}\end{center}

Updating an Existing Font

To update a font, you do the same thing you would if you want to add a font, except that you *first* have to erase lulatex's font cache, so you would do this:

luaotfload-tool --cache=erase

Running the luaotfload-tool --cache=erase command will erase the cache located at C:\texlive\2013\texmf-var\luatex-cache\. But don't worry, the next time you compile a tex file, lualatex will rebuid the cache automatically.

working_with_fonts.txt · Last modified: 2015/03/13 23:38 by bgm