On 12/2/2018 3:44 PM, Hans Åberg wrote:
On 2 Dec 2018, at 10:19, Henning Hraban Ramm
wrote: STIX fonts don’t contain super and subscript numbers.
They are in STIX Two, so I can get them using: \definefontfamily[stix-two][mono][Stix Two Text] \definefontfamily[stix-two][math][Stix Two Math]
\setupbodyfont[stix-two,10pt]
But it is an entirely different font design, so a font fallback to STIX would be desirable. Then the problem is that these super and subscript symbols are spread on a number of different ranges. —It seems one cannot have a general fallback in the case the glyph is missing.
In addition, they get translated in the typesetting, so when copied in the PDF and pasted into a text file, they loose being super and subscript.
in general these super and subscript are rather useless because (1) only a subset of characters is available and (2) it depends on selectively applying the subs and sups feature anyway, i can provide a solution to automatically add these scripts to a font; just for fun i implemented something % \definefontfeature[default][default][scripts=yes] % \definefontfeature[default][default][scripts=.6] \definefontfeature [default] [default] [scripts={factor=.6,up=.3,down=.2,extend=1.5}] but as i use some new trickery it won't be in the beta for a while. Han s ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------