Sandra Snan
30. Mai 2016 um 14:25
For some reason, it just started working today. After all this time. I
have no idea what was going on.
\definefontfamily[jeans][sans][file:futuralt]
and then referring to to the font family "jeans" later on.
Looks great, too.
The font declaration is still wrong and it’s more likely you get Latin Modern Sans
in your document which is used as fallback when the requested sans serif font
wasn’t found.

You can see in the attached document the output from the following example.
Only the first font defintion loads Futura, the third falls back to Latin Modern
because there is no font with the name “file:futura”.

\definefontfamily[realfutura][ss][Futura]
\definefontfamily[fakefutura][ss][Latin Modern Sans]
\definefontfamily[filefutura][ss][file:futura]

\starttext

\switchtobodyfont[realfutura]Is this Futura or Latin Modern Sans?

\switchtobodyfont[fakefutura]Is this Futura or Latin Modern Sans?

\switchtobodyfont[filefutura]Is this Futura or Latin Modern Sans?

\stoptext

Wolfgang