[XeTeX] Loading a Font Family from a Local File

Ulrike Fischer news3 at nililand.de
Thu Mar 10 10:09:30 CET 2011

Am Tue, 8 Mar 2011 09:27:33 -0700 schrieb Rob Oakes:

> I am currently working on a document class for a non-profit. They
> will be using LyX to typeset and publish a number of books
> related to Mexican culture. I've been asked to create both a
> LaTeX document class for them and a LyX layout that allows them
> to use the document class in a WYSIWYG environment.  For the
> design, I would like to use the memoir class and two open  type
> fronts: Linux Libertine and ADF Universalis.

> On my own computer, I am able to use use the fonts through
> fontspec commands, as they were installed using Font Book on Mac
> OS X. However, to simplify the installation of the template, I
> would like to place the font files in the same folder as the
> class and then load them from the directory, rather than from the
> system fonts folder.
> Does anyone know how that might be done using fontspec? I know it
> is possible to load individual font-files, but I was hoping to be
> able to use the entire families.  Any thoughts would be extremely
> appreciated.

In miktex/windows xetex finds fonts also in the texmf-trees. E.g. an
open type font can be in <texmf>/fonts/opentype/...

But I would not install fonts together with your template and
certainly not in a non-standard font location. It can confuse xetex
and your users if two (perhaps slightly different) versions of the
same font exists in a system. 

Ulrike Fischer 

More information about the XeTeX mailing list