Perfect. This is an appropriately succinct syntax.
\definefontfamily [mainface] [ss] [Junction] [tf=* Light,bf=* Regular]
Message: 3 Date: Sun, 29 Mar 2015 21:31:30 +0200 From: Wolfgang Schuster
To: mailing list for ConTeXt users Subject: Re: [NTG-context] Selecting fonts using the built-in simplefonts module Message-ID: <12DC7A91-4A01-4A28-B578-4327CBC64083@gmail.com> Content-Type: text/plain; charset="utf-8" Am 29.03.2015 um 20:33 schrieb Jörg Weger
: You need the familyname of the font, you use the font manager of your OS to get the name.
\definefontfamily [junction] [rm] [Junction] \definefontfamily [junction] [mm] [Latin Modern Math]
\definefontfamily [junction-light] [rm] [Junction] [tf=style:light,bf=style:regular]
I just had it made working this way:
\definefontfamily[mainface] [ss] [EgalobhierFarinUrlaubodersonstwasoderwersteht] [tf=Junction Light, bf=Junction Regular]
\definefontfamily [mainface] [ss] [Junction] [tf=* Light,bf=* Regular]
It seems that as soon as you define your own weights (which you can mix from different font families) in the fourth pair of brackets, there can be anything in the third pair of brackets (family name).
\definefontfamily[mainface] [sans] [Anything] [regularfont=Junction Light, boldfont=Junction Regular]
works as well and is more self-explaining.
This will only work when you set a upright font or you will get problems.
-- ---- Pavneet Arora m: 647.406.6843 Waroc Informatik t: 416.937.9276