* \definefontfamily not finding fonts
@ 2020-09-10 3:16 Aditya Mahajan
2020-09-10 7:40 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2020-09-10 3:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
Did something change with regard to \definefontfamily recently.
I have an old document where I use:
\starttypescript[mainface]
\definefontfamily[mainface][rm][Libertinus Serif][features=default]
\definefontfamily[mainface][ss] [heros] [features=default]
\definefontfamily[mainface][tt] [dejavu] [features=none, rscale=0.85]
\definefontfamily[mainface][mm] [LibertinusMath]
\stoptypescript
\setupbodyfont[mainface,12pt]
On the recent LMTX (2020.09.05) I get
selectfont > the requested font 'Libertinus Serif' has no files for the 'tf' alternative, Latin Modern is used instead.
selectfont > the requested font 'heros' has no files for the 'tf' alternative, Latin Modern is used instead.
selectfont > the requested font 'dejavu' has no files for the 'tf' alternative, Latin Modern is used instead.
selectfont > the requested font 'LibertinusMath' has no files for the 'tf' alternative, Latin Modern is used instead.
I can find the fonts using mtxrun --script fonts. For example:
$mtxrun --script fonts --list --pattern="LibertinusSerif" --all
identifier familyname fontname filename subfont instances
libertinusserif libertinusserif libertinusserif libertinusserif-regular.otf
libertinusserifdisplaynormal libertinusserifdisplay libertinusserifdisplay libertinusserifdisplay-regular.otf
libertinusserifdisplayregular libertinusserifdisplay libertinusserifdisplay libertinusserifdisplay-regular.otf
libertinusserifinitialsnormal libertinusserifinitials libertinusserifinitials libertinusserifinitials-regular.otf
libertinusserifinitialsregular libertinusserifinitials libertinusserifinitials libertinusserifinitials-regular.otf
libertinusserifnormal libertinusserif libertinusserifitalic libertinusserif-italic.otf
libertinusserifregular libertinusserif libertinusserif libertinusserif-regular.otf
and similar for the other fonts.
Any idea on what is going on and how to debug.
Thanks,
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \definefontfamily not finding fonts
2020-09-10 3:16 \definefontfamily not finding fonts Aditya Mahajan
@ 2020-09-10 7:40 ` Wolfgang Schuster
2020-09-10 15:53 ` Aditya Mahajan
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2020-09-10 7:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
Aditya Mahajan schrieb am 10.09.2020 um 05:16:
> Did something change with regard to \definefontfamily recently.
>
> I have an old document where I use:
>
> \starttypescript[mainface]
> \definefontfamily[mainface][rm][Libertinus Serif][features=default]
> \definefontfamily[mainface][ss] [heros] [features=default]
> \definefontfamily[mainface][tt] [dejavu] [features=none, rscale=0.85]
> \definefontfamily[mainface][mm] [LibertinusMath]
> \stoptypescript
>
> \setupbodyfont[mainface,12pt]
>
> On the recent LMTX (2020.09.05) I get
>
> selectfont > the requested font 'Libertinus Serif' has no files for the 'tf' alternative, Latin Modern is used instead.
> selectfont > the requested font 'heros' has no files for the 'tf' alternative, Latin Modern is used instead.
> selectfont > the requested font 'dejavu' has no files for the 'tf' alternative, Latin Modern is used instead.
> selectfont > the requested font 'LibertinusMath' has no files for the 'tf' alternative, Latin Modern is used instead.
>
>
> I can find the fonts using mtxrun --script fonts. For example:
>
> $mtxrun --script fonts --list --pattern="LibertinusSerif" --all
> identifier familyname fontname filename subfont instances
>
> libertinusserif libertinusserif libertinusserif libertinusserif-regular.otf
> libertinusserifdisplaynormal libertinusserifdisplay libertinusserifdisplay libertinusserifdisplay-regular.otf
> libertinusserifdisplayregular libertinusserifdisplay libertinusserifdisplay libertinusserifdisplay-regular.otf
> libertinusserifinitialsnormal libertinusserifinitials libertinusserifinitials libertinusserifinitials-regular.otf
> libertinusserifinitialsregular libertinusserifinitials libertinusserifinitials libertinusserifinitials-regular.otf
> libertinusserifnormal libertinusserif libertinusserifitalic libertinusserif-italic.otf
> libertinusserifregular libertinusserif libertinusserif libertinusserif-regular.otf
>
> and similar for the other fonts.
>
> 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.
\definefontfamily [mainface] [rm] [Libertinus Serif]
\definefontfamily [mainface] [ss] [TeX Gyre Heros] [rscale=0.85]
\definefontfamily [mainface] [tt] [DejaVu Sans Mono]
[features=none,rscale=0.85]
\definefontfamily [mainface] [mm] [Libertinus Math]
\setupbodyfont[mainface]
\starttext
\rm\tf Regular \it Italic \bf Bold \bi BoldItalic
\ss\tf Regular \it Italic \bf Bold \bi BoldItalic
\tt\tf Regular \it Italic \bf Bold \bi BoldItalic
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \definefontfamily not finding fonts
2020-09-10 7:40 ` Wolfgang Schuster
@ 2020-09-10 15:53 ` Aditya Mahajan
2020-09-10 15:57 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2020-09-10 15:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 10 Sep 2020, Wolfgang Schuster wrote:
> Aditya Mahajan schrieb am 10.09.2020 um 05:16:
> > Did something change with regard to \definefontfamily recently.
> >
> > I have an old document where I use:
> >
> > \starttypescript[mainface]
> > \definefontfamily[mainface][rm][Libertinus Serif][features=default]
> > \definefontfamily[mainface][ss] [heros] [features=default]
> > \definefontfamily[mainface][tt] [dejavu] [features=none, rscale=0.85]
> > \definefontfamily[mainface][mm] [LibertinusMath]
> > \stoptypescript
> >
> > \setupbodyfont[mainface,12pt]
> >
> > On the recent LMTX (2020.09.05) I get
> >
> > selectfont > the requested font 'Libertinus Serif' has no files for the
> > 'tf' alternative, Latin Modern is used instead.
> > selectfont > the requested font 'heros' has no files for the 'tf'
> > alternative, Latin Modern is used instead.
> > selectfont > the requested font 'dejavu' has no files for the 'tf'
> > alternative, Latin Modern is used instead.
> > selectfont > the requested font 'LibertinusMath' has no files for the
> > 'tf' alternative, Latin Modern is used instead.
> >
> >
> > I can find the fonts using mtxrun --script fonts. For example:
> >
> > $mtxrun --script fonts --list --pattern="LibertinusSerif" --all
> > identifier familyname fontname
> > filename subfont instances
> >
> > libertinusserif libertinusserif libertinusserif
> > libertinusserif-regular.otf
> > libertinusserifdisplaynormal libertinusserifdisplay
> > libertinusserifdisplay libertinusserifdisplay-regular.otf
> > libertinusserifdisplayregular libertinusserifdisplay
> > libertinusserifdisplay libertinusserifdisplay-regular.otf
> > libertinusserifinitialsnormal libertinusserifinitials
> > libertinusserifinitials libertinusserifinitials-regular.otf
> > libertinusserifinitialsregular libertinusserifinitials
> > libertinusserifinitials libertinusserifinitials-regular.otf
> > libertinusserifnormal libertinusserif
> > libertinusserifitalic libertinusserif-italic.otf
> > libertinusserifregular libertinusserif libertinusserif
> > libertinusserif-regular.otf
> >
> > and similar for the other fonts.
> >
> > 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 :-)
I'll try to dig deeper on why the fonts are not being found.
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \definefontfamily not finding fonts
2020-09-10 15:53 ` Aditya Mahajan
@ 2020-09-10 15:57 ` Wolfgang Schuster
2020-09-10 16:20 ` Aditya Mahajan
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2020-09-10 15:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
Aditya Mahajan schrieb am 10.09.2020 um 17:53:
> On Thu, 10 Sep 2020, Wolfgang Schuster wrote:
>
>> Aditya Mahajan schrieb am 10.09.2020 um 05:16:
>>> Did something change with regard to \definefontfamily recently.
>>>
>>> I have an old document where I use:
>>>
>>> \starttypescript[mainface]
>>> \definefontfamily[mainface][rm][Libertinus Serif][features=default]
>>> \definefontfamily[mainface][ss] [heros] [features=default]
>>> \definefontfamily[mainface][tt] [dejavu] [features=none, rscale=0.85]
>>> \definefontfamily[mainface][mm] [LibertinusMath]
>>> \stoptypescript
>>>
>>> \setupbodyfont[mainface,12pt]
>>>
>>> On the recent LMTX (2020.09.05) I get
>>>
>>> selectfont > the requested font 'Libertinus Serif' has no files for the
>>> 'tf' alternative, Latin Modern is used instead.
>>> selectfont > the requested font 'heros' has no files for the 'tf'
>>> alternative, Latin Modern is used instead.
>>> selectfont > the requested font 'dejavu' has no files for the 'tf'
>>> alternative, Latin Modern is used instead.
>>> selectfont > the requested font 'LibertinusMath' has no files for the
>>> 'tf' alternative, Latin Modern is used instead.
>>>
>>>
>>> I can find the fonts using mtxrun --script fonts. For example:
>>>
>>> $mtxrun --script fonts --list --pattern="LibertinusSerif" --all
>>> identifier familyname fontname
>>> filename subfont instances
>>>
>>> libertinusserif libertinusserif libertinusserif
>>> libertinusserif-regular.otf
>>> libertinusserifdisplaynormal libertinusserifdisplay
>>> libertinusserifdisplay libertinusserifdisplay-regular.otf
>>> libertinusserifdisplayregular libertinusserifdisplay
>>> libertinusserifdisplay libertinusserifdisplay-regular.otf
>>> libertinusserifinitialsnormal libertinusserifinitials
>>> libertinusserifinitials libertinusserifinitials-regular.otf
>>> libertinusserifinitialsregular libertinusserifinitials
>>> libertinusserifinitials libertinusserifinitials-regular.otf
>>> libertinusserifnormal libertinusserif
>>> libertinusserifitalic libertinusserif-italic.otf
>>> libertinusserifregular libertinusserif libertinusserif
>>> libertinusserif-regular.otf
>>>
>>> and similar for the other fonts.
>>>
>>> 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?
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \definefontfamily not finding fonts
2020-09-10 15:57 ` Wolfgang Schuster
@ 2020-09-10 16:20 ` Aditya Mahajan
2020-09-10 18:40 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2020-09-10 16:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 :-)
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \definefontfamily not finding fonts
2020-09-10 16:20 ` Aditya Mahajan
@ 2020-09-10 18:40 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2020-09-10 18:40 UTC (permalink / raw)
To: mailing list for ConTeXt users, Aditya Mahajan
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-09-10 18:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10 3:16 \definefontfamily not finding fonts Aditya Mahajan
2020-09-10 7:40 ` Wolfgang Schuster
2020-09-10 15:53 ` Aditya Mahajan
2020-09-10 15:57 ` Wolfgang Schuster
2020-09-10 16:20 ` Aditya Mahajan
2020-09-10 18:40 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).