> Csikos Bela > 26. Oktober 2016 um 19:36 > Dear list members: > > I have the following context code: > > \definefontfamily [doc] [rm] [TeX Gyre Bonum] > \definefontfamily [doc] [ss] [Tex Gyre Adventor] > \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] > [range=0x00000-0x2FA1F,force=yes] > \definefontfamily [doc] [mm] [TeX Gyre Pagella Math] > \setupbodyfont[doc,10pt] > \starttext > Text font: , {\ss } \\ > Math font: \m{}, \m{\rm }, \m{\ss > } > \stoptext > > 1. In the pdf result \rm math font is Tex Gyre Adventor and \ss math > is Tex Gyre Pagella. > How can I have context to print math \rm with Tex Gyre Pagella serif, > and math \ss > with Tex Gyre Adventor font? Why a roman/serif font is replaced with a > sans serif font? The \rm and \ss commands behave different in math mode and change only the math alphabet, this means you’re always in the same font and the result of A changes from a serif italic uppercase A to a sans serif italic uppercase A to a blackletter uppercase etc. > 2. What range would be the most correct to include all characters for > replacement? \definefontfamily [doc] [rm] [TeX Gyre Bonum] \definefontfamily [doc] [ss] [Tex Gyre Adventor] \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=lowercasenormal,offset=lowercasesansserifnormal] \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=lowercasenormal,offset=lowercasesansserifnormal,tf=style:italic] \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=uppercasenormal,offset=uppercasesansserifnormal] \definefallbackfamily [doc] [mm] [Tex Gyre Adventor] [range=uppercasenormal,offset=uppercasesansserifnormal,tf=style:italic] \definefontfamily [doc] [mm] [TeX Gyre Pagella Math] \setupbodyfont[doc,10pt] \starttext Text font: , {\ss } \par Math font: \m{}, \m{\rm }, \m{\ss } \stoptext Wolfgang