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

* Re: using variable font
  2021-07-01  7:19 using variable font Herbert Voss
@ 2021-07-01 19:50 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2021-07-01 19:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Herbert Voss

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