[NTG-context] accessing ital axis in variable font
Hans Hagen
j.hagen at xs4all.nl
Thu Dec 1 21:44:29 CET 2022
On 12/1/2022 7:54 PM, Pablo Rodriguez via ntg-context wrote:
> Dear list,
>
> using the Literata variable fonts from
> https://github.com/googlefonts/literata/tree/main/fonts/variable, I have
> the following source:
>
> \definefontfeature[myaxis][axis={weight=500, italic=1}]
> \definefontfamily[mainface][rm][Literata][features={default, myaxis}]
> \setupbodyfont[mainface]
> \starttext
> \input zapf\par
> \it\input zapf
> \stoptext
>
> Other axes than weight (and only when not invoked as 'wght') don’t work
> for me (using latest from 2022.12.01 13:05).
>
> I have used the following source (it seems to be a goodie from current
> latest):
>
> \usemodule[fonts-variable]
> \starttext
> \showfontvariations[font=file:literata-italic.ttf]
> \showfontvariations[font=file:literata.ttf]
> \stoptext
>
> It reports that the Literata fonts have three (design) axes: wght, opsz
> and ital. ital is only a design axis.
>
> 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
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
-----------------------------------------------------------------
More information about the ntg-context
mailing list