Oops, I think I replied to Will only, here&#39;s my original message:<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Andrew Moschou</b> <span dir="ltr">&lt;<a href="mailto:andmos@gmail.com">andmos@gmail.com</a>&gt;</span><br>

Date: 2009/9/26<br>Subject: Re: [tex-live] Cannot typeset a greek text in XeTeX using the Greek Font Society fonts in texlive 2009<br>To: Will Robertson &lt;<a href="mailto:wspr81@gmail.com">wspr81@gmail.com</a>&gt;<br><br>

<br>Alternatively, you can tell fontconfig where to locate the fonts.<br><br>Edit the file <span style="font-family: courier new,monospace;">~/.fonts.conf</span> and insert the following line:<br><br><div style="margin-left: 40px; font-family: courier new,monospace;">


&lt;dir&gt;/usr/share/texmf-dist/fonts/opentype&lt;/dir&gt;<br></div><br>to your list of directories. If the file doesn&#39;t exist, create it and fill it with the following:<br><br><div style="margin-left: 40px; font-family: courier new,monospace;">


&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;!DOCTYPE fontconfig SYSTEM &quot;fonts.dtd&quot;&gt;<br>&lt;!-- ~/.fonts.conf for per-user font configuration --&gt;<br>&lt;fontconfig&gt;<br><br>&lt;!--<br>    Private font directory<br>


--&gt;<br>&lt;dir&gt;~/.fonts&lt;/dir&gt;<br>&lt;dir&gt;/usr/share/texmf-dist/fonts/opentype&lt;/dir&gt;<br><br>&lt;!--<br>    use rgb sub-pixel ordering to improve glyph appearance on<br>    LCD screens.  Changes affecting rendering, but not matching<br>


    should always use target=&quot;font&quot;.<br>--&gt;<br>&lt;match target=&quot;font&quot;&gt;<br>    &lt;edit name=&quot;rgba&quot; mode=&quot;assign&quot;&gt;&lt;const&gt;rgb&lt;/const&gt;&lt;/edit&gt;<br>&lt;/match&gt;<br>


&lt;/fontconfig&gt;<br></div><br>Now, you can use \setmainfont with any of the fonts in that opentype directory, including the GFS fonts.<br><br>Andrew<br><br><br><div class="gmail_quote">2009/9/26 Will Robertson <span dir="ltr">&lt;<a href="mailto:wspr81@gmail.com" target="_blank">wspr81@gmail.com</a>&gt;</span><div>

<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On 26/09/2009, at 4:08 AM, Christos Gitsis wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
I cannot typeset a greek text in XeTeX using the Greek Font Society fonts in texlive 2009. The fonts are not found by xelatex.<br>
<br></div><div>
\setmainfont[Mapping=tex-text]{GFS Didot}<br>
</div></blockquote>
<br>
This is the syntax to load fonts that are installed in the operating system. TeX Live does not install fonts in this way, simply making the fonts available to users if they wish to use them. XeTeX allows you to load fonts in the texmf tree with the following fontspec syntax: (note that the bold/italic shapes are not automatically detected)<br>



<br>
\documentclass{article}<br>
\usepackage{fontspec}<br>
\setmainfont[ExternalLocation,<br>
    ItalicFont=GFSDidotItalic.otf,<br>
    BoldFont=GFSDidotBold.otf,<br>
    BoldItalicFont=GFSDidotBoldItalic.otf<br>
  ]{GFSDidot.otf}<br>
\begin{document}<br>
test \emph{test} \textbf{test \emph{test}}<br>
\end{document}<br>
<br>
Hope this helps,<br><font color="#888888">
Will<br></font></blockquote></div></div></div>
</div><br>