Am 24.11.24 um 19:08 schrieb Jethro Djan:
Hello,

I have a few questions.

1. What is the best way to get a symbol from a font you are not using as your main?

e.g.
\definefontsynonym [MySymFont] [file:MySymFont.ttf]
\definesymbol[cedis][\getglyphstyled{MySymFont}{\tochar{x:20B5}}]
\def\cedis{\symbol[cedis]}

or just

\def\cedis{{\definedfont[MySymFont*default]\tochar{x:20B5}}}

\definesymbol[cedis][\utfchar{“20B5}]
\def\cedis{
   \switchtobodyfont[dejavu]\tf\symbol[cedis]
}

I have GH\cedis 10.00 in my pocket

Don’t use \switchtobodyfont for a single character.
For such cases, a fallback font is probably better.

\definefontfallback
        [symbolfallback]
        [name:MySymFont]
        [0x20B5]% can also be a list or range
        [check=yes,force=no]
\definetypeface [MyMainFamily]
        [rm] [serif] [palatino]
        [default][fallbacks=symbolfallback]

https://wiki.contextgarden.net/Command/definefontfallback

2. I would like a more robust method to create a diagram (ie., a series of input and outputs where you are then required to tell the rule of the mapping). The inputs will be up with the outputs below and a downward pointing arrow between them.

Sorry, can’t help you here.
Better don’t mix different subjects in one message.

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