ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* using variable font
@ 2021-07-01  7:19 Herbert Voss
  2021-07-01 19:50 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Herbert Voss @ 2021-07-01  7:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-01 19:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01  7:19 using variable font Herbert Voss
2021-07-01 19:50 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).