On 6/24/24 18:03, Kirill Davidov wrote: > > With STIX Two, c2sc (and smcp) works with any language as long as one > doesn't select a script in the font features, else it only works with > the chosen script.
Hi Kirill, \definefontfeature [default] [default] [script=auto] may help there. > With New Computer Modern, it just doesn't work with any latin text no > matter the script chosen. I have tested https://mirrors.ctan.org/fonts/newcomputermodern/otf/NewCM10-Book.otf (released less than 10 days ago) and there is no c2sc for the Latin script. I have used FontForge and tested metrics (Metrics > New Metrics Window [Ctrl+K on my computer]). > That is, plain small caps work, caps to small caps don't. I’m afraid to say that the c2sc in the font seems to be a mess (to me at least). > What could be the reason to it? Is there anything I could do to > mitigate it? The following sample works for me (excluding Greek glyphs). script=auto, if you need to set the script (automatically). c2sc=always, if you need Greek c2sc. lowercasing=yes, since the smcp feature works for Latin glyphs. In a minimal sample: \definefontfeature [default] [default] [script=auto] \definefontfeature[allsc][c2sc=yes, smcp=yes, lowercasing=yes] \setupbodyfont[stix] \starttext \startbuffer {\language[ru]Моя любимая {\feature[+][allsc]ОС}---{\feature[+][allsc]Линукс}.}\crlf {\language[en]My favourite {\feature[+][allsc]OS} is {\feature[+][allsc]Linux}.} {\feature[+][allsc]Λινυξẞ.} \stopbuffer \getbuffer \setupbodyfont[newcomputermodern-book] \getbuffer \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________