[NTG-context] \definefontfamily not finding fonts

Hans Hagen j.hagen at xs4all.nl
Thu Sep 10 20:40:04 CEST 2020


On 9/10/2020 6:20 PM, Aditya Mahajan wrote:
> On Thu, 10 Sep 2020, Wolfgang Schuster wrote:
> 
>>>>> Any idea on what is going on and how to debug.
>>>> I can't reproduce your Libertinus problem but the sans serif and monospaced
>>>> fonts just use the wrong names.
>>> In by defense, it used to work for the last 5 years :-)
>>
>> Are you mixing \definetypeface and \definefontfamily?
> 
> This is an old style and I understand that the current syntax is wrong. But it did work previously. But the correct syntax does not find the fonts either.
> 
> Anyways, for now, I switched to typeface based interface
> 
> \starttypescript[mainface]
>    \definetypeface[mainface][rm][serif][libertine][default]
>    \definetypeface[mainface][ss][sans] [heros]    [default]
>    \definetypeface[mainface][tt][mono] [dejavu]   [default] [rscale=0.85]
>    \definetypeface[mainface][mm][math] [libertine][default]
> \stoptypescript
> 
> and it works correctly. So, it appears to be an issue with font name to filename mapping.
> 
> I'll try a clean install on a docker image and check it that works ... or just wait for the newer version, which often fixes such things :-)
there have been no fundamental changes, but the names of these liber* 
fonts change occasionally

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list