Found it (I think) \definefontfamily defines tf= but the text says \rm If I use \tf in the text it works. If I use \rm in the text it works for default Latin Modern but not for any font defined. This is true regardless of using rm= or tf= in the definition. So, it seems to be the combination of using definefontfamily and \rm
On 4 Jul 2023, at 23:48, Gerben Wierda
wrote: Also doesn't work with ConTeXt ver: 2023.06.22 14:13 LMTX fmt: 2023.7.4 int: english/english
On 4 Jul 2023, at 23:42, Gerben Wierda
mailto:gerben.wierda@rna.nl> wrote: On 4 Jul 2023, at 23:26, Wolfgang Schuster
mailto:wolfgang.schuster.lists@gmail.com> wrote: Gerben Wierda schrieb am 04.07.2023 um 23:17:
After erasing the font cache and regenerating LM was doing it right again.
Helvetica did not, but maybe I made a mistake in
\definefontfamily [helvetica] [ss] [Helvetica] [tf=style:Regular, bf=style:Bold, it=style:Oblique, bi=style:Bold Oblique]
Does it work when you remove the manual assignments to tf, it, etc. or when you use lowercase names (without spaces), e.g. "bi=boldoblique" (or "bi=bolditalic").
No and no. With th elatter it doesn't load Helvetica at all, Error shown: selectfont > the requested font 'Helvetica' has no files for the 'tf' alternative, Latin Modern is used instead. mkiv lua stats > loaded fonts: 4 files: latinmodern-math.otf, lmroman10-italic.otf, lmroman10-regular.otf, lmsans10-regular.otf
With my original it does load (but no italic): mkiv lua stats > loaded fonts: 4 files: helvetica.ttc, latinmodern-math.otf, lmroman10-italic.otf, lmroman10-regular.otf
Erase cache, regenerate formats, reload fonts (force) does give another (probably unrelated) error:
fonts | names | identifying system font files with suffix 'ttf' fonts | names | globbing path '/Library/Fonts/**.ttf' fonts | names | globbing path '/System/Library/Fonts/**.ttf' otf reader | fatal error in file '/System/Library/Fonts/SFCompactRounded.ttf': ...-64/tex/texmf-context/tex/context/base/mkiv/font-dsp.lua:3689: attempt to index a nil value (field '?') stack traceback: ...-64/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2344: in metamethod 'index' ...-64/tex/texmf-context/tex/context/base/mkiv/font-dsp.lua:3689: in local 'reader' ...-64/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2089: in upvalue 'readtable'
Gerben Wierda (LinkedIn https://www.linkedin.com/in/gerbenwierda, Mastodon https://newsie.social/@gctwnl) R&A IT Strategy https://ea.rna.nl/ (main site) Book: Chess and the Art of Enterprise Architecture https://ea.rna.nl/the-book/ Book: Mastering ArchiMate https://ea.rna.nl/the-book-edition-iii/
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl https://www.pragma-ade.nl/ / http://context.aanhet.net http://context.aanhet.net/ archive : https://bitbucket.org/phg/context-mirror/commits/ https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net https://contextgarden.net/ ___________________________________________________________________________________
Gerben Wierda (LinkedIn https://www.linkedin.com/in/gerbenwierda, Mastodon https://newsie.social/@gctwnl) R&A IT Strategy https://ea.rna.nl/ (main site) Book: Chess and the Art of Enterprise Architecture https://ea.rna.nl/the-book/ Book: Mastering ArchiMate https://ea.rna.nl/the-book-edition-iii/
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
Gerben Wierda (LinkedIn https://www.linkedin.com/in/gerbenwierda, Mastodon https://newsie.social/@gctwnl) R&A IT Strategy https://ea.rna.nl/ (main site) Book: Chess and the Art of Enterprise Architecture https://ea.rna.nl/the-book/ Book: Mastering ArchiMate https://ea.rna.nl/the-book-edition-iii/