On 11/16/25 11:35, Sylvain Hubert wrote:
> Dear devs,
> 
> When I \switchtobodyfont twice, only the first one is effective.
> 
> Could anyone have a look at the problem?

Hi Sylvain,

this is working for me with current latest from 2025.11.12 23:12:

    \definefontfamily[font1][rm][FZHei-B01]
        %[tf=file:{FZHei-B01.ttf}]
    \definefontfamily[font2][rm][FZFangSong-Z02]
        %[tf=file:{FZFangSong-Z02.ttf}]

    \starttext
    \startTEXpage[offset=1em]
        \switchtobodyfont[font1] A\\
        \switchtobodyfont[font2] A
    \stopTEXpage
    \stoptext

In any case, uncommenting the fourth bracket pair in `\definefontfamily`
should work if the sample doesn’t work as it is.

I hope it helps,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to