I have a problem in changing my article font.
I want to use Consolas font, its installed in my Windows.
here is the tex file:
Code: Select all
\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{Consolas}
\begin{document}
hello,
How i can load consolas font ?
the font is installed in my system, and i can use it from other software.
Thanks.
\end{document}
How can i solve this problem?Couldn't find `Consol.cfg'
miktex-maketfm: No creation rule for font Consolas.
! Font \zf@basefont=Consolas at 10.0pt not loadable: Metric (TFM) file or insta
lled font not found.
\zf@fontspec ...ntname \zf@suffix " at \f@size pt
\unless \ifzf@icu \zf@set@...
l.5 \setmainfont{Consolas}
?
I use Miktex 2.8 , and i compiled it with XeLaTeX.
Thanks in advance.