ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: Hans Hagen via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: accessing ital axis in variable font
Date: Fri, 2 Dec 2022 18:20:07 +0100	[thread overview]
Message-ID: <f6112190-fba0-92cd-bfd2-bdce7a9df071@gmx.es> (raw)
In-Reply-To: <4d4825ad-ac5f-6053-0ff1-04373d8e166c@xs4all.nl>

On 12/1/22 21:44, Hans Hagen via ntg-context wrote:
> On 12/1/2022 7:54 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> As explained before, they don’t work for me. How can I access to the
>> italic and the optical size axes?
>
> there is no axis defined for italic (it's a design axis so that's 
> probably why you have two fonts one with italic in the name)
> 
> so, just forget about it

Many thanks for your reply, Hans.

It seems that Literata has what they call an upright italic
(https://raw.githubusercontent.com/googlefonts/literata/main/Documentation/DS_Literata3.pdf#search=upright).

But I’m afraid I cannot use weight (when invoked as 'wght'). Optical
sizes don’t seem to work.

The following code shows the issue I’m experiencing:

  \definefontfeature[myaxis][axis={wght=100, opsz=1.0}]
  \definefontfamily[mainface][rm][Literata]
    [features={default, myaxis}, designsize=auto]
  \setupbodyfont[mainface]
  \starttext
  \scale[width=\textwidth]
    {\switchtobodyfont[7pt]\tf Regular, \it Italic}
  \scale[width=\textwidth]
    {\switchtobodyfont[12pt]\tf Regular, \it Italic}
  \scale[width=\textwidth]
    {\switchtobodyfont[36pt]\tf Regular, \it Italic}
  \scale[width=\textwidth]
    {\switchtobodyfont[72pt]\tf Regular, \it Italic}
  \stoptext

What am I missing here?

Many thanks for your help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-12-02 17:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-01 18:54 Pablo Rodriguez via ntg-context
2022-12-01 20:44 ` Hans Hagen via ntg-context
2022-12-02 17:20   ` Pablo Rodriguez via ntg-context [this message]
2022-12-02 18:18     ` Hans Hagen via ntg-context
2022-12-03  9:18       ` Pablo Rodriguez via ntg-context

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=f6112190-fba0-92cd-bfd2-bdce7a9df071@gmx.es \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).