On 29 Jan 2024, at 01:36, vm via ntg-context
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: taco@bittext.nl genderfluid (all pronouns)