TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to use a font created from my handwriting at myscriptfont.com. It generates either OTF or TTF fonts, and they are usable (obviously with many limitations!) in various OS X programs.

I can't get them to work under XeLaTeX, however. Here's my minimal example (you'll need either my ScottMorrison.otf or ScottMorrison.ttf font installed).





which produces the message

LaTeX Font Warning: Font shape T1/ScottMorrison(0)/m/n' undefined (Font) usingT1/cmr/m/n' instead on input line 5.

and, of course, text in Computer Modern.

(Note that it really is seeing the installed font file, if you change the \setmainfont command to some other string completely different error messages arise.)

Is there some way to make fonts like these usable in XeLaTeX?

share|improve this question
Don't use the fontenc package; the fontspec package uses the EU1 encoding and sets that automatically. – ChrisS Jul 23 '13 at 1:03
Perfect. If you'd like to say that as an answer I'll accept it. – Scott Morrison Jul 23 '13 at 1:39
@ScottMorrison Don't load xltxtra, but simply fontspec. It used to be recommended to load xltxtra, not any more nowadays. – egreg Aug 8 '13 at 22:25
up vote 2 down vote accepted

Don't use the fontenc package; the fontspec package uses its own encodings (EU1 in XeTeX and EU2 in LuaTeX) and sets them automatically.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.