Re: [NTG-context] accessing ital axis in variable font

2022-12-03 Thread Pablo Rodriguez via ntg-context
On 12/2/22 19:18, Hans Hagen via ntg-context wrote:
> On 12/2/2022 6:20 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> But I’m afraid I cannot use weight (when invoked as 'wght'). Optical
>> sizes don’t seem to work.
>>
>> What am I missing here?
>
> \definefontfeature[myaxisa][axis={weight=200,optical size=12}]
> \definefontfeature[myaxisb][axis={weight=200,optical size=42}]
> \definefontfeature[myaxisc][axis={weight=200,optical size=72}]

Many thanks for your reply, Hans.

In order to be able to start an entry in the wiki about variable fonts,
axes are only accesible using their name (not their tag) in the axis
section (not in the design axis section), aren't they?

And each font feature requires a new font instance (unlike other font
features such as small caps or many other OpenType features), doesn't it?

> btw, we don't check for optical size in relation to the asked size anyway

I don't know whether this is too complex to be implemented, but it would
ease the use of optical sizes in this case.

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
___


Re: [NTG-context] accessing ital axis in variable font

2022-12-02 Thread Hans Hagen via ntg-context

On 12/2/2022 6:20 PM, Pablo Rodriguez via ntg-context wrote:

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?

\definefontfeature[myaxisa][axis={weight=200,optical size=12}]
\definefontfeature[myaxisb][axis={weight=200,optical size=42}]
\definefontfeature[myaxisc][axis={weight=200,optical size=72}]

\usemodule[fonts-variable]

\starttext
\definedfont[file:literata.ttf*default,myaxisa] Some Text\par
\definedfont[file:literata.ttf*default,myaxisb] Some Text\par
\definedfont[file:literata.ttf*default,myaxisc] Some Text\par
\stoptext

optical size looks rather useless

btw, we don't check for optical size in relation to the asked size anyway

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 / 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
___


Re: [NTG-context] accessing ital axis in variable font

2022-12-02 Thread Pablo Rodriguez via ntg-context
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
___


Re: [NTG-context] accessing ital axis in variable font

2022-12-01 Thread Hans Hagen via ntg-context

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
-

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


[NTG-context] accessing ital axis in variable font

2022-12-01 Thread Pablo Rodriguez via ntg-context
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?

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
___