On 11/8/2020 12:02 PM, Sylvain Hubert wrote:
On Sun, 8 Nov 2020 at 11:37, Pablo Rodriguez <oi...@gmx.es
<mailto:oi...@gmx.es>> wrote:
On 11/8/20 11:18 AM, Sylvain Hubert wrote:
> Hi Pablo,
>
> thanks for the suggestion. Here's the minimal example which shows the
> difference:
>
> \definefontfamily[face][rm][dejavuserif]
> \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
>
> this should warn:
>
> fonts > checking > char ɑ (U+00251) in font
> 'LatinModernMath-Regular-4' with id 10: missing
Well, you are switching before setting up a body font.
I don’t know whether this might be a bug in ConTeXt (see previous
report), but I would set up the body font always first:
\definefontfamily[face][rm][dejavuserif]
\definefontfamily[deface][rm][dejavusans]
\setupbodyfont[deface]
\starttext a\switchtobodyfont[face, 24pt]ɑ\stoptext
Thanks, it works!
And I agree that it probably indicates the existence of a bug, since by
changing "\setupbodyfont[deface]" to "\setupbodyfont[dejavu]" in your
example, the problem reappears:
\definefontfamily[face][rm][dejavuserif]
\setupbodyfont[dejavu]
\starttext a\switchtobodyfont[face, 24pt]ɑ\stoptext
when yyou use several bodyfonts you can do this before \starttext:
\usebodyfont[face,24pt]
\usebodyfont[deface]
\starttext
....
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________