I need to use some system fonts in my document, and I use fontspec and XeLaTeX to do so. I find the font name from fc-list, but when I compile it with XeLaTeX, there's a fontspec error:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Luxi Serif" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.21 \setmainfont{Luxi Serif}
I just migrated from Linux to Mac OS X. Back when I was using Linux machine XeLaTeX works with system fonts. It seems on Mac fontspec can't find fonts from system directory.
fc-list|grep "Luxi Serif"
shows
/usr/X11R6/lib/X11/fonts/...
/opt/X11/share/fonts/...
I checked the permissions of directories and font files, nothing wrong.
There are many font directories on Mac, is it possible to allow the use of fonts in all the directories?


/Library/Fonts. Put them there, or add a symbolic link there to other directories. – Alan Munn Sep 27 '12 at 15:47fc-listor not does not matter, they need to seen by Mac font services. – Khaled Hosny Sep 27 '12 at 16:56