Hans Åberg schrieb am 03.12.18 um 19:22:
I can't get create a font fallback in the the example below, so some input is
welcome. It works when using STIX2 only (the commented out part), but somehow
the font name is not recognized in the fallback, not when using what is listed
by 'mtxrun --script fonts --list --all'.
—
\definefontfamily[stix-two][mono][Stix Two Text]
\definefontfamily[stix-two][math][Stix Two Math]
%\setupbodyfont[stix-two,10pt]
\definefallbackfamily [mainface] [rm] [Stix Two Text] [range={02070,0208F}]
\definefallbackfamily [mainface] [serif] [Stix Two Text] [range={02070,0208F}]
1. You’re creating the same fallback two times because rm=serif.
2. To pass a range use “-” as separator.
\definefallbackfamily [mainface] [serif] [Stix Two Text]
[range={02070-0208F}]
\definefallbackfamily [mainface] [mono] [Stix Two Text] [range={02070,0208F}]
\definefallbackfamily [mainface] [math] [Stix Two Math] [range={02070,0208F}]
\definefontfamily [mainface] [rm] [stix]
\definefontfamily [mainface] [math] [stix]
\definefontfamily [mainface] [mono] [stix]
Do you have the Stix font on your system?
On my system this isn’t the case but I can use the XITS fonts.
\definefontfamily [mainface] [serif] [XITS]
\definefontfamily [mainface] [math] [XITS Math]
Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________