Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2014 02:22:43 -0800 (PST)
From:      Anton Shterenlikht <mexas@bris.ac.uk>
To:        freebsd-questions@freebsd.org
Subject:   texlive fonts configuration: cannot find Arial, Times
Message-ID:  <201401201022.s0KAMecZ005896@mech-cluster241.men.bris.ac.uk>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi

I'm starting to use texlive.
I installed texlive-full-20120701.

I need to build a document with these
declarations:

\usepackage{fontspec}
\usepackage{subfigure}
\setmainfont{Times New Roman}
\setsansfont{Arial}

Which seems to be a new standard way
of choosing fonts.

I get these errors with both lualatex and xelatex:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "TimesNewRoman" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.28 \setmainfont{Times New Roman}


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "Arial" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.29 \setsansfont{Arial}

I presume these basic fonts should be available
as part of the default installation, right?

So probably I haven't configured texlive fonts correctly?

I've these directories:

$ ls /usr/local/share/texmf-dist/fonts/
afm             enc             misc            ovf             sfd             truetype
cid             fea             ofm             ovp             source          type1
cmap            map             opentype        pk              tfm             vf

But not sure if this is enough.

Please advise

Many thanks

Anton




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201401201022.s0KAMecZ005896>