Hello all, this worked years ago with another variable font. But it fails with FiraCode. I get always the same weight: \definefontfeature[w300][default][axis={weight:300}] \definefontfeature[w400][default][axis={weight:400}] \definefontfeature[w500][default][axis={weight:500}] \definefontfeature[w600][default][axis={weight:600}] \definefontfeature[w700][default][axis={weight:700}] \definefont [FiraCode@300] [file:FiraCode-VariableFont_wght.ttf*w300] \definefont [FiraCode@400] [file:FiraCode-VariableFont_wght.ttf*w400] \definefont [FiraCode@500] [file:FiraCode-VariableFont_wght.ttf*w500] \definefont [FiraCode@600] [file:FiraCode-VariableFont_wght.ttf*w600] \definefont [FiraCode@700] [file:FiraCode-VariableFont_wght.ttf*w700] \starttext \csname FiraCode@300\endcsname FiraCode, weight=300\par \csname FiraCode@400\endcsname FiraCode, weight=400\par \csname FiraCode@500\endcsname FiraCode, weight=500\par \csname FiraCode@600\endcsname FiraCode, weight=600\par \csname FiraCode@700\endcsname FiraCode, weight=700\par \stoptext the font is availabel at Google: https://fonts.google.com/specimen/Fira+Code It also fails with another variable font. up-to-date lmtx on macOS. thanks Herbert
On 7/1/2021 9:19 AM, Herbert Voss wrote:
Hello all,
this worked years ago with another variable font. But it fails with FiraCode. I get always the same weight:
\definefontfeature[w300][default][axis={weight:300}] \definefontfeature[w400][default][axis={weight:400}] \definefontfeature[w500][default][axis={weight:500}] \definefontfeature[w600][default][axis={weight:600}] \definefontfeature[w700][default][axis={weight:700}]
\definefont [FiraCode@300] [file:FiraCode-VariableFont_wght.ttf*w300] \definefont [FiraCode@400] [file:FiraCode-VariableFont_wght.ttf*w400] \definefont [FiraCode@500] [file:FiraCode-VariableFont_wght.ttf*w500] \definefont [FiraCode@600] [file:FiraCode-VariableFont_wght.ttf*w600] \definefont [FiraCode@700] [file:FiraCode-VariableFont_wght.ttf*w700]
\starttext
\csname FiraCode@300\endcsname FiraCode, weight=300\par \csname FiraCode@400\endcsname FiraCode, weight=400\par \csname FiraCode@500\endcsname FiraCode, weight=500\par \csname FiraCode@600\endcsname FiraCode, weight=600\par \csname FiraCode@700\endcsname FiraCode, weight=700\par
\stoptext
the font is availabel at Google: https://fonts.google.com/specimen/Fira+Code
It also fails with another variable font.
up-to-date lmtx on macOS.
looks like a cache issue but there is also somethign else (with these variable fonts one needs to run into an instance that actually uses one of these fuzzy features) i'll fix it Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Herbert Voss