Am 28.05.24 um 23:49 schrieb Kip Warner:
On Tue, 2024-05-28 at 08:17 +0200, Henning Hraban Ramm wrote:
Am 27.05.24 um 19:20 schrieb Kip Warner:

You could just define a fallback font, like:

\definefontfallback[SymbolFB]
    [file:symbola.otf]
    [0x00300-0x003FF,0x02100-0x02800,0x1F000-0x20000] % look up the
right
Unicode ranges!
    [check=no,force=no]

\definetypeface [myfonts] [rm] [serif] [times] [default]
[fallbacks=SymbolFB]

And then copy the character from a symbol table, no need for a macro.

Hmm, that's a great idea. But I can't seem to get a minimal to work
with https://context-on-web.eu:

    \definefontfallback[SymbolFB]
       [file:symbola.otf]
       [0x00300-0x003FF,0x02100-0x02800,0x1F000-0x20000] % look up the
    right
    Unicode ranges!
       [check=no,force=no]
\definetypeface [myfonts] [rm] [serif] [times] [default]
    [fallbacks=SymbolFB]
\starttext
    \utfchar{0x02460}
    \stoptext

The above just prints the vanilla character '1'. That might be because
the online editor doesn't have access to the font. So I tried compiling
the above locally with the Symbola.otf file in the same directory and
same problem.


My example wasn’t complete, and so is yours. You just define that typeface but never use it.

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

maillist : ntg-context@ntg.nl / 
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