From: jfbu <jfbu@free.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: news3@nililand.de
Subject: Re: font features in math
Date: Mon, 2 May 2016 19:51:35 +0200 [thread overview]
Message-ID: <A81B4DC3-2582-458C-A785-2F573297F644@free.fr> (raw)
In-Reply-To: <20160502164736.GA21150@phlegethon>
Le 2 mai 2016 à 18:47, Philipp Gesang <phg@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;
\textfont\foo=\fixmath
for example creating this \fontname:
[Vollkorn-Regular]:mode=node;script=latn;language=DFLT;+tlig;+lnum;mode=base;
which is then experimentally observed to obey the second mode specifier
and thus does display lining figures in math mode.
Jean-François
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2016-05-02 17:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-01 9:22 Ulrike Fischer
2016-05-01 9:45 ` Philipp Gesang
2016-05-01 10:53 ` Ulrike Fischer
2016-05-01 12:46 ` Hans Hagen
2016-05-02 16:47 ` Philipp Gesang
2016-05-02 17:51 ` jfbu [this message]
2016-05-02 18:15 ` jfbu
2016-05-02 18:35 ` jfbu
2016-05-03 9:11 ` NEW : ConTeXt documentation in French (Wikibook) Jean-Pierre Delange
2016-05-03 9:49 ` Otared Kavian
2016-05-02 22:13 ` font features in math Ulrike Fischer
2016-05-03 7:25 ` jfbu
2016-05-04 7:53 ` Hans Hagen
2016-05-04 8:38 ` Ulrike Fischer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A81B4DC3-2582-458C-A785-2F573297F644@free.fr \
--to=jfbu@free.fr \
--cc=news3@nililand.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).