Denis Maier via ntg-context schrieb am 24.08.2024 um 08:25:
You could define a specific typescript for that without a definition for
bold.
Below is an implementation of your suggestion which gets rid of all font
styles for serif, sans serif and monospace fonts.
\starttypescript [serif,sans,mono] [uprightonly]
\definefontsynonym [\typescriptprefix\typescriptone Italic]
[\typescriptprefix\typescriptone]
\definefontsynonym [\typescriptprefix\typescriptone Slanted]
[\typescriptprefix\typescriptone]
\definefontsynonym [\typescriptprefix\typescriptone Bold]
[\typescriptprefix\typescriptone]
\definefontsynonym [\typescriptprefix\typescriptone BoldItalic]
[\typescriptprefix\typescriptone]
\definefontsynonym [\typescriptprefix\typescriptone BoldSlanted]
[\typescriptprefix\typescriptone]
\stoptypescript
\starttypescript [uprightonly]
\definetypeface [\typescriptone] [rm] [serif] [\typescriptone]
\definetypeface [\typescriptone] [ss] [sans] [\typescriptone]
\definetypeface [\typescriptone] [tt] [mono] [\typescriptone]
\stoptypescript
\setupbodyfont[pagella]
\starttext
xxx {\bf yyy} xxx {\it zzz} xxx
\start \switchtobodyfont[uprightonly]
xxx {\bf yyy} xxx {\it zzz} xxx
\stop
xxx {\bf yyy} xxx {\it zzz} xxx
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________