I'm trying to learn to use fontspec on win10 with XeLaTeX. I've got a little test file:
Code: Select all
\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{BKANT.ttf}
% also tried \setmainfont{BKANT}
% and \setmainfont{Book Antiqua}
\begin{document}
hello world
\end{document}
And the font exists [it is my default windows font for most everything] but when I try to run that little file, usig XeLaTeX, I get
Code: Select all
! Package fontspec Error: The font "BKANT" cannot be found.
For immediate help type H <return>.
...
When I tried just BKANT it was looking for BKANT.mf, and when I looked for the .ttf file I got the above error. Do I have to do something specail to get fontspec to open a truetype font?