> On 29 Jan 2024, at 01:36, vm via ntg-context <ntg-context@ntg.nl> wrote: > > while also on linux platform: > > > mtxrun --script font --list --spec --filter="fontname=ibm*" > mtxrun --script font --list --spec --filter="fontname=ple*" > > give correct result (as in listing the available installed ibmplex fonts) > > > mtxrun --script font --list --spec --filter="fontname=*" > mtxrun --script font --list --spec --filter="fontname=p*" > mtxrun --script font --list --spec --filter="fontname=pl*" > > lua error : function call: > /home/vm/context/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad argument #9 to > 'format' (number expected, got string) > > apparently you need at least three characters in the the filter template.
Hi, I changed line 10066 in mtxrun.lua to templates[i]="%-"..w.."s"..between from templates[i]=“% "..w..”i"..between and that fixed it. The problem here is that the “big" results contain both ttc fonts (with subfont ids, which are numbers) and non-ttc fonts (with empty subfont ids, and those are strings). This means the output template gets confused about whether it should use “%s” or “%i” as format string. > > > > $ mtxrun --script font --list --spec --filter="fontname=ple" > table: 0x3bc80550ac0 > table: 0x3bc80550b00 This is what happens if there are no matches, apparently. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________