This refers to my previous thread How to use the calibri font. I am using the Calibri font with lualatex
. MWE:
\documentclass[11pt,table,a4paper]{article}
\usepackage{fontspec}
\setmainfont{Calibri}
\begin{document}
The ends of words and sentences are marked
by spaces. It doesn't matter how many
spaces you type; one is as good as 100. The
end of a line counts as a space.
\end{document}
I am getting following error:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Calibri" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.3 \setmainfont{Calibri}
How can I avoid such error?
\documentclass{...}
is better than obsolete\documentstyle{..}
?lualatex
, notluatex
.