[tex-live] Fwd: Cannot typeset a greek text in XeTeX using the Greek Font Society fonts in texlive 2009

Andrew Moschou andmos at gmail.com
Sat Sep 26 07:02:34 CEST 2009


Oops, I think I replied to Will only, here's my original message:

---------- Forwarded message ----------
From: Andrew Moschou <andmos at gmail.com>
Date: 2009/9/26
Subject: Re: [tex-live] Cannot typeset a greek text in XeTeX using the Greek
Font Society fonts in texlive 2009
To: Will Robertson <wspr81 at gmail.com>


Alternatively, you can tell fontconfig where to locate the fonts.

Edit the file ~/.fonts.conf and insert the following line:

<dir>/usr/share/texmf-dist/fonts/opentype</dir>

to your list of directories. If the file doesn't exist, create it and fill
it with the following:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- ~/.fonts.conf for per-user font configuration -->
<fontconfig>

<!--
    Private font directory
-->
<dir>~/.fonts</dir>
<dir>/usr/share/texmf-dist/fonts/opentype</dir>

<!--
    use rgb sub-pixel ordering to improve glyph appearance on
    LCD screens.  Changes affecting rendering, but not matching
    should always use target="font".
-->
<match target="font">
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
</fontconfig>

Now, you can use \setmainfont with any of the fonts in that opentype
directory, including the GFS fonts.

Andrew


2009/9/26 Will Robertson <wspr81 at gmail.com>

On 26/09/2009, at 4:08 AM, Christos Gitsis wrote:
>
>  I cannot typeset a greek text in XeTeX using the Greek Font Society fonts
>> in texlive 2009. The fonts are not found by xelatex.
>>
>> \setmainfont[Mapping=tex-text]{GFS Didot}
>>
>
> 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)
>
> \documentclass{article}
> \usepackage{fontspec}
> \setmainfont[ExternalLocation,
>    ItalicFont=GFSDidotItalic.otf,
>    BoldFont=GFSDidotBold.otf,
>    BoldItalicFont=GFSDidotBoldItalic.otf
>  ]{GFSDidot.otf}
> \begin{document}
> test \emph{test} \textbf{test \emph{test}}
> \end{document}
>
> Hope this helps,
> Will
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-live/attachments/20090926/24e97c04/attachment-0001.html>


More information about the tex-live mailing list