Thanks, Wolfgang. This works pretty well. On Mon, Feb 15, 2021 at 4:31 PM Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote: > > > Pablo Rodriguez schrieb am 15.02.2021 um 21:51: > > On 2/15/21 8:47 PM, Mohammad Hossein Bateni wrote: > >> Hi, > >> > >> Is there a way to set the fallback for fonts when we define them not as > >> a typescript but using \definefont? > >> > >> \definefont[MyFont][Font.otf*MyFeatures] > >> > >> Is there a default fallback one can specify? > >> Is simplefonts module deprecated or discouraged now? > > > > Hi Mohammad, > > > > the simplefonts module has been deprecated, since it has been > > implemented in the ConTeXt core (see below). > > > > \definefontfallback might be the command you are looking for. > > You need also \definefontsynonym but it's easier to create a new > typeface (fontfamily) and load it with \switchtobodyfont. > > \definefontfallback > [AnotherFontFallback] > [file:texgyreherosregular*default] > [lowercasenormal] > [force=yes] > > \definefontsynonym > [AnotherFontMain] > [file:texgyrepagellaregular] > [fallbacks=AnotherFontFallback] > > \definefont [AnotherFont] [AnotherFontMain*default] > > \starttext > > \dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par > \dorecurse{26}{\convertnumber{a}{\recurselevel}\space} > > \AnotherFont > > \dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par > \dorecurse{26}{\convertnumber{a}{\recurselevel}\space} > > \stoptext > > Wolfgang > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ >