Am 27.05.24 um 19:20 schrieb Kip Warner:
On Mon, 2024-05-27 at 07:09 +0200, Ryszard Kubiak wrote:
Hi Kip,

You may try characters with Unicode slots from U+2460 upto U+2469.
They mean circled digits and are available in many fonts.

Thanks Ryszard. Those would be perfect, except I can't get them to work
in ConTeXt. I tried using the \utfchar{0x2460} but it just displays the
number 1.

I am assuming it needs a font that supports it, but I'm not sure how to
switch to a supporting font just to typeset that character and then
revert back. Is there some way to define a macro?

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.

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