[NTG-context] font features in math

jfbu jfbu at free.fr
Mon May 2 19:51:35 CEST 2016

Le 2 mai 2016 à 18:47, Philipp Gesang <phg at phi-gamma.net> a écrit :

> ···<Datum: Sunday, 01. May 2016>···<Von: Ulrike Fischer>···
>> Am Sun, 1 May 2016 11:45:02 +0200 schrieb Philipp Gesang:
>>>> So somehow in math the +onum is lost in plain and latex but not in
>>>> context. What is context doing differently to avoid this?
>>>    mode=base
>> If context attach mode=base to math, how does it it?
> A one would do in Luaotfload: specify base mode when defining the
> font. It’s unrelated to math, just the default set of features
> that Luaotfload has been applying to every definition for ages.
> The reasoning -- by Khaled and others -- was, that the Opentype
> standard mandates some defaults so Luaotfload should follow suit.
> The defaults can be overridden by setting the appropriate values
> in luaotfload.conf(5).
>>                                                     How can you
>> switch a feature like mode=node to mode=base for every font in math?
> Define two fonts: one for use in math mode, another for where you
> really, really require node mode.
> Philipp

Ulrike, thanks a lot for keeping asking questions on this and Philipp
for answering.

I have figured experimentally that I could use (at least in some cases,
and after math fonts are initialized which in LaTeX seems to mean
one needs to enter math mode at least once before)

\font\fixmath=\fontname\textfont\foo mode=base;

for example creating this \fontname:


which is then experimentally observed to obey the second mode specifier
and thus does display lining figures in math mode.


More information about the ntg-context mailing list