Libertinus and AnonymousPro fonts

Wolfgang Engelmann engelmann at uni-tuebingen.de
Wed Jul 14 11:51:11 UTC 2021



Am 14.07.21 um 13:41 schrieb Wolfgang Engelmann:
> 
> 
> Am 14.07.21 um 11:31 schrieb Herbert Voss:
>> Wolfgang Engelmann schrieb:
>>> Still struggling with Libertinus and AnonymousPro fonts
>>>
>>> I updated my texlive today (14July2021), did texhash also as superuser,
>>> reconfigured lyx and looked for the Libertinus and AnonymousPro fonts in
>>> my Lyx Document > Settings > Fonts but can't find it. The PDF output
>>> format is set to PDF(LuaTex).
>>>
>>> The libertinus fonts are found in my
>>> ./texlive/2021/texmf-dist/fonts/tfm/public/libertinus-type1/LibertinusSerif- 
>>>
>>> ... etc
>>
>> Wolfgang,
>>
>> look into your Debian font configuration. There should be a
>> file 09-texlive.conf in the directory  /etc/fonts/conf.d/
>>
>> If not, create it as root with the following contents:
>>
>> <?xml version="1.0"?>
>> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
>> <fontconfig>
>>    <dir>/usr/local/texlive/2021/texmf-dist/fonts/opentype</dir>
>>    <dir>/usr/local/texlive/2021/texmf-dist/fonts/truetype</dir>
>> </fontconfig>
>>
>>
>> Then run
>>
>>
>> fc-cache -fv
>>
>>
>> The Libertinus should be found. You can test it with
>>
>>
>> voss at Lenovo:~$ fc-list | grep -i libertinus
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSans-Bold.otf: 
>>
>> Libertinus Sans:style=Bold
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSerif-Italic.otf: 
>>
>> Libertinus Serif:style=Italic
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSerif-Regular.otf: 
>>
>> Libertinus Serif:style=Regular
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSerifDisplay-Regular.otf: 
>>
>> Libertinus Serif Display:style=Regular
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSerif-Semibold.otf: 
>>
>> Libertinus Serif,Libertinus Serif Semibold:style=Semibold,Regular
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSerif-SemiboldItalic.otf: 
>>
>> Libertinus Serif,Libertinus Serif Semibold Italic:style=Semibold
>> Italic,Regular
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSerifInitials-Regular.otf: 
>>
>> Libertinus Serif Initials:style=Regular
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusKeyboard-Regular.otf: 
>>
>> Libertinus Keyboard:style=Regular
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusMath-Regular.otf: 
>>
>> Libertinus Math:style=Regular
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSans-Italic.otf: 
>>
>> Libertinus Sans:style=Italic
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSans-Regular.otf: 
>>
>> Libertinus Sans:style=Regular
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusMono-Regular.otf: 
>>
>> Libertinus Mono:style=Regular
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSerif-BoldItalic.otf: 
>>
>> Libertinus Serif:style=Bold Italic
>> /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSerif-Bold.otf: 
>>
>> Libertinus Serif:style=Bold
>>
>>
>> Now reconfigure LyX and restart.
>>
>> Attaches a screenshot from within LyX.
>>
>> Herbert
>>
>>
> in /etc/fonts/conf.d
> 10-hinting-slight-conf
>   contains
> #####################
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <fontconfig>
>    <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
>      <its:translateRule translate="no" 
> selector="/fontconfig/*[not(self::description)]"/>
>    </its:rules>
> 
>    <description>Enable autohinter</description>
> <!--  Use the Autohinter -->
>    <match target="pattern">
>      <!--
>        This configuration is available on the major desktop environments.
>        We shouldn't overwrite it with "assign" unconditionally.
>        Most clients may picks up the first value only. so using "append"
>        may simply works to avoid it.
>      -->
>      <edit name="autohint" mode="append"><bool>true</bool></edit>
>    </match>
> </fontconfig>
> #####################
> 
> and it is a link to /usr/share/fontconfig/conf.avail/hinting-slight.conf
> which contains:
> 
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <fontconfig>
>    <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
>      <its:translateRule translate="no" 
> selector="/fontconfig/*[not(self::descri>
>    </its:rules>
> 
>    <description> Set hintslight to hintstyle</description>
> 
>    <match target="pattern">
>      <!--
>        This configuration is available on the major desktop environments.
>        We shouldn't overwrite it with "assign" unconditionally.
>        Most clients may picks up the first value only. so using "append"
>        may simply works to avoid it.
>      -->
>      <edit name="hintstyle" mode="append"><const>hintslight</const></edit>
>    </match>
> </fontconfig>
> 
> This is, what Herbert suggested to use:
> 
> #################
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <fontconfig>
>    <dir>/usr/local/texlive/2021/texmf-dist/fonts/opentype</dir>
>    <dir>/usr/local/texlive/2021/texmf-dist/fonts/truetype</dir>
> </fontconfig>
> #####################
> 
> Question: should I use this in the file
> 09-hinting-slight.conf (which does not yet exist)
> in
> /usr/share/fontconfig/conf.avail/hinting-slight.conf
> 
> ???
> 
> Wolfgang


More information about the lyx-users mailing list