ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Herbert Voss <Herbert.Voss@fu-berlin.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: using variable font
Date: Thu, 1 Jul 2021 09:19:49 +0200	[thread overview]
Message-ID: <d767b8d2-fe1d-441f-028b-33cad16d855f@fu-berlin.de> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2021-07-01  7:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-01  7:19 Herbert Voss [this message]
2021-07-01 19:50 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d767b8d2-fe1d-441f-028b-33cad16d855f@fu-berlin.de \
    --to=herbert.voss@fu-berlin.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).