[NTG-context] Monospace fallback kerning

Hans Hagen j.hagen at xs4all.nl
Wed Dec 19 11:31:29 CET 2018


On 12/19/2018 10:46 AM, Hans Åberg wrote:
> 
>> On 11 Dec 2018, at 15:05, Hans Åberg <haberg-1 at telia.com> wrote:
>>
>> In the example below, multiple spaces do not use the spacing of the fallback font for multiple spaces, but instead of the main font it seems, despite the ASCII U+0020 being in the forced override. So the question is how to force ConTeXt to use the fallback font also for multiple spaces.
> 
> A workaround is simply making the monospace font the main font:
> \definefallbackfamily [mainface][mono][stix][range={0100-10FFFF},force=yes]
> \definefontfamily     [mainface][mono][courier]
You can force a monospaced by inheriting from a paremnt font, as in:

\definefontfallback
   [Mono] [almfixed*none]
   [arabic] [force=yes]

\definefontfallback
   [Mono] [sileot*none]
   [hebrew] [force=yes,factor=1] % factor forces a monospace

\setupbodyfont
   [dejavu,10pt]

\showglyphs

\starttext

\starttyping
{لَيْسَ لَدَيَّ أَيُّ فِكْرَةٍ عَمَّا يَعْنِيهِ هٰذَا.}
{אין לי מושג מה זה אומר.}
\stoptyping

\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
-----------------------------------------------------------------


More information about the ntg-context mailing list