Hi Norbert,


Thanks for looking into this matter and providing two solutions!

Search the font via filename
----------------------------
You need to edit fourier-orns.sty (copy it to the current working
directory) and change the above line to read like

 \newfontfamily\FourierOrns{FourierOrns-Regular.otf}[
   BoldFont   = FourierOrns-Bold.otf ,
   ItalicFont = FourierOrns-Italic.otf ,
   BoldItalicFont = FourierOrns-BoldItalic.otf ]

After that the files and thus the font will be found.

Hmm... Here is a *strange* thing:

~> locate FourierOrns-Regular.otf
~>

~> apt-file search FourierOrns-Regular.otf
texlive-fonts-extra: /usr/share/texlive/texmf-dist/fonts/opentype/public/fourier/FourierOrns-Regular.otf

~> dpkg -l texlive-fonts-extra
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version         Architecture Description
+++-===================-===============-============-===========================
ii texlive-fonts-extra 2018.20190227-2 all TeX Live: Additional fonts

~> ls -l 
/usr/share/texlive/texmf-dist/fonts/opentype/public/fourier/FourierOrns-Regular.otf
ls: cannot access '/usr/share/texlive/texmf-dist/fonts/opentype/public/fourier/FourierOrns-Regular.otf': No such file or directory

~> dpkg -L texlive-fonts-extra | grep FourierOrns-Regular.otf
~>

So FourierOrns-Regular.otf is supposed to be in texlive-fonts-extra, this package is installed on my computer but does not contain this OTF. What could have happened?

Make the fonts available to fontconfig
--------------------------------------

By adding an entry to
        /etc/fonts/local.conf
for the respective directory, the fonts are made available to
fontconfig. It works with the following content:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
       <dir>/usr/share/texlive/texmf-dist/fonts/opentype/public/fourier</dir>
</fontconfig>

Alas:

~> ls -l /usr/share/texlive/texmf-dist/fonts/opentype/public/fourier
ls: cannot access '/usr/share/texlive/texmf-dist/fonts/opentype/public/fourier':
No such file or directory

I will try to report upstream of fourier package that they should try to locate the fonts via file name instead of font name.

Thanks.


Kind regards,
Sébastien.

Reply via email to