On 2/6/20 10:04 AM, context@vivaldi.net wrote:
Hello,
although font switching used to be discussed here and I studied wiki about font changing, I don't switch fonts in ConTeXt very often and my "maximum" font change was provided by \setupbodyfont[(e.g. termes)]. [...] so that:
- normal text and math (nothing special - just subscripts) would be typeset with work-sans.light.otf - \bold (\bf) would use work-sans.bold.otf, - \emph (\em and \it) would use work-sans.light-italic.otf, - \bi would use work-sans.bold-italic.otf - also commands \bfa, \bfc, ... would use work-sans.bold.otf scaled somehow (probably by multiples of 1.2).
Some help setting it up and making it work would be appreciated...
Hi Lukas, I think this is what you might need: \definefontfamily [mainface] [rm] [WorkSans] [tf={style:light}, it={style:lightitalic}] \setupbodyfont[mainface] \setupbodyfontenvironment [default] [a=1.2, b=2.4, c=3.6, d=4.8, em=italic] \starttext \startTEXpage[offset=1em] roman\\ {\bf bold}\\ {\it italic}\\ {\bi bold italic}\\ {\tfa roman}\\ {\bfb bold}\\ {\itc italic}\\ {\bid bold italic}\\ \stopTEXpage \stoptext I hope it helps, Pablo -- http://www.ousia.tk