
On 3/20/25 00:57, Max Chernoff via ntg-context wrote:
On Wed, 2025-03-19 at 18:00 +0100, Pablo Rodriguez via ntg-context wrote:
Weird, I use LuaMetaTeX 2.11.07 20250226
Hi Max, sorry, wrong testing here. I do get your error as long as I don’t put the font feature definition after \starttext. BTW, I needed to add an \stoptext, because my file for test is a huge concatenation of previous tests.
I tried compiling that document just now, and with the "sl=" uncommented, I get the correctly-slanted Greek letters, both with and without compact fonts enabled.
This is really weird. Maybe try deleting your luametatex binary and rerunning the updater to make sure that your binaries are up-to-date, and try deleting your user/system font/format caches?
I have just done it and it works now with some caveats (I think this might have worked before [but I cannot test that now]): 1. \enableexperiments[fonts.compact] shouldn’t be loaded in the source. 2. "context testing.tex" doesn’t get the fake slanted font, but "context --environment=testing.tex whatever.xml" has it. 3. "context --result=whatever.pdf testing.tex" doesn’t get the fake slanted font. 4. "context --compactfonts --environment=testing.tex whatever.xml" contains the fake slanted font (just in case anyone wonders). I don’t know what I am doing wrong (or what I may be missing here). Many thanks for your help, Pablo PS: the final source for this testing reads (just to be clear, since this seems to be too tricky [at least, to me]) \definefallbackfamily [mainface][rm][DejaVu Sans] [sl={style:regular, features:slanted},preset=range:greek] \definefontfamily [mainface][rm][Latin Modern Sans] \setupbodyfont [mainface] \starttext αβγ9 some word others\\ \sl αβγ9 some word others \stoptext