Is there a canonical way to access font weights other than regular and bold in ConTeXt? This does not work:
\definefontfamily [myfamily] [serif][Calluna]
\definefontfamily [myfamily] [sans] [Calluna Sans Light]
\setupbodyfont [myfamily]
\starttext
1. Avec Serif\\
{\ss 2. Sans Serif}
\blank
\it 3. Avec Serif\\
\ss\bi 4. Sans Serif
\stoptext
Line 1 and 3 come out OK, serif regular and serif regular italic; the lines containing \ss
come out as serif regular. If I leave out the Light
in the family definition everything works as expected, i.e. line 2 as sans serif regular and line 4 as sans serif bold italic.
I do have the fonts, Gnome Font Manager knows them and mtxrun --script fonts --list --all --pattern=Calluna*
too:
calluna callunablack /home/thomas/.local/share/fonts/exljbris - Calluna-Black.otf
callunablack callunablack /home/thomas/.local/share/fonts/exljbris - Calluna-Black.otf
callunabold callunabold /home/thomas/.local/share/fonts/exljbris - Calluna-Bold.otf
callunaboldit callunaboldit /home/thomas/.local/share/fonts/exljbris - Calluna-BoldIt.otf
callunabolditalic callunaboldit /home/thomas/.local/share/fonts/exljbris - Calluna-BoldIt.otf
callunait callunait /home/thomas/.local/share/fonts/exljbris - Calluna-It.otf
callunaitalic callunait /home/thomas/.local/share/fonts/exljbris - Calluna-It.otf
callunalight callunalight /home/thomas/.local/share/fonts/exljbris - Calluna-Light.otf
callunanormal callunait /home/thomas/.local/share/fonts/exljbris - Calluna-It.otf
callunaregular callunaregular /home/thomas/.local/share/fonts/exljbris - Calluna-Regular.otf
callunasans callunasansblack /home/thomas/.local/share/fonts/CallunaSansBlack.otf
callunasansblack callunasansblack /home/thomas/.local/share/fonts/CallunaSansBlack.otf
callunasansblackitalic callunasansblackitalic /home/thomas/.local/share/fonts/CallunaSansBlackItalic.otf
callunasansbold callunasansbold /home/thomas/.local/share/fonts/CallunaSansBold.otf
callunasansbolditalic callunasansbolditalic /home/thomas/.local/share/fonts/CallunaSansBoldItalic.otf
callunasansdemibold callunasanssemibold /home/thomas/.local/share/fonts/CallunaSansSemiBold.otf
callunasansitalic callunasansitalic /home/thomas/.local/share/fonts/exljbris - CallunaSans-Italic.otf
callunasanslight callunasanslight /home/thomas/.local/share/fonts/CallunaSansLight.otf
callunasanslightitalic callunasanslightitalic /home/thomas/.local/share/fonts/CallunaSansLightItalic.otf
callunasansnormal callunasansitalic /home/thomas/.local/share/fonts/exljbris - CallunaSans-Italic.otf
callunasansregular callunasansregular /home/thomas/.local/share/fonts/exljbris - CallunaSans-Regular.otf
callunasanssemibold callunasanssemibold /home/thomas/.local/share/fonts/CallunaSansSemiBold.otf
callunasanssemibolditalic callunasanssemibolditalic /home/thomas/.local/share/fonts/CallunaSansSemiBoldItalic.otf
callunasemibold callunasemibold /home/thomas/.local/share/fonts/exljbris - Calluna-Semibold.otf
callunasemiboldit callunasemiboldit /home/thomas/.local/share/fonts/exljbris - Calluna-SemiboldIt.otf
Saying callunasanslight
instead of Calluna Sans Light
doesn't work either. What I'm trying to do is using Sans Light and Sans Semibold instead of Sans and Sans Bold. But it would also be nice to have font switches for light, semibold and heavy in addition to \bf
and \tf
.
BTW: The bigger question is really: Where does one find documentation on such stuff in ConTeXt??? ConTeXt
is such a difficult word to google!
Edit: I found one way to work this, at least partially:
\definefontfamily [myfamily][sans] [Calluna Sans]
[tf=Calluna Sans Light,
it=Calluna Sans Light Italic,
bf=Calluna Sans SemiBold,
bi=Calluna Sans SemiBold Italic,
sc=Calluna Sans Light]
It is not in the definition or the description of \definefontfamily
on contextgarden. There is no description there at all, just a number of examples.
Anyway, I'm still missing (a) the semibold smallcaps and (b) a way to make all the weights accessible "at the same time".