[NTG-context] \switchtobodyfont fails to load font with some sizes

Wolfgang Schuster schuster.wolfgang at gmail.com
Wed Feb 26 22:57:19 CET 2014


Am 26.02.2014 um 18:10 schrieb Joshua Krämer <joshua.kraemer at gmail.com>:

> Dear list,
> 
> with some font sizes, \switchtobodyfont loads Latin Modern Roman
> instead of the specified typeface:
> 
> 
> \definefontfamily [firstfamily] [serif] [TeX Gyre Bonum]
> \definefontfamily [secondfamily] [serif] [TeX Gyre Termes]
> 
> \setupbodyfont [firstfamily, 60pt]
> 
> \starttext
> 
> abc {\switchtobodyfont [secondfamily, 60pt] abc} abc
> 
> abc {\switchtobodyfont [secondfamily, 50pt] abc} abc
> 
> \stoptext

Add \definebodyfontenvironment[50pt] before \starttext.

Wolfgang


More information about the ntg-context mailing list