1

I'm new to LaTeX and I am having trouble getting the font uarial to work. I am using TeXLive the following looks for the font;

\IfFileExists{uarial.sty}
{
    \usepackage[english]{babel}
    \usepackage[T1]{fontenc}
    \usepackage{uarial}
    \renewcommand{\familydefault}{\sfdefault}
}

however I get the following error when running;

! Couldn't find Arial font.

 you may need to install 'nonfree' fonts on your system
 Type  H <return>  for immediate help.

As far as I am aware arial fonts are included in TeXLive, correct me if I am wrong. I have also installed nonfreefonts (I am using windows)

Is there another arial like font I can use that is included in TeXLive?

Thanks in advance.

  • Welcome to TeX.SE! – Cragfelt Nov 15 '17 at 7:20
  • The second code you provided is the same as the first one. You may have something missing. – Cragfelt Nov 15 '17 at 7:22
  • uarial is not part of TeX Live. You have to install it using getnonfreefonts. – Schweinebacke Nov 15 '17 at 7:24
  • What is »arial like«? Is Helvetica arial like enough. There are several Helvetica like fonts like TeX Gyre Heros. – Schweinebacke Nov 15 '17 at 7:34
  • 1
    also what do you mean by "exlatex" do you mean "xelatex"? The markup that you show is for pdflatex, if you are using xelatex you can use the windows system supplied Arial directly (assuming you are on Windows) but you should not use fontenc in that case – David Carlisle Nov 15 '17 at 7:44
6

The whole point of XeTeX is to use the system fonts so you do not need to use clones supplied with TeXLive you can (if you wish) use the system Arial directly.

enter image description here

\documentclass{article}

\usepackage{fontspec}
\setmainfont{Arial}

\begin{document}

Hello World
\end{document}
  • ah right makes sense now, thanks for clearing that up. – bdg Nov 15 '17 at 8:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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