On 1/1/2022 6:05 PM, Pablo Rodriguez via ntg-context wrote:

I wonder whether it would be possible to add the options for tweaked
fonts (or at least, xscale and yscale) to \definefontfeature.

I think this might ease the use of scaled fonts (at least, in some
documents).
these two are unrelated to font feature so that won't happen .. the whole idea is to *not* scale the font and delay that

the three scales are realtime scales and absolute values

\starttext
    {test {\glyphxscale\numexpr 2*\glyphxscale\relax} test}

    \fontspecdef\MyFont \font xscale 500 yscale 2000 % currentfont

    {\MyFont test}
\stoptext

when you enable compact fonts we you actually use these fontspecs (a font spec is internally comparable to a so called glue spec which is why it's called that way: internally stored in some wierd kind of node .. maybe \fontscalespec is better so i might change it when i can't think of anything to add to it -- i'm still considering adding some of the other realtime glyph properties)

i suppose that at some point we can add a more high level command (or integrate it better in style definitions which all depends on usage patterns

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
___________________________________________________________________________________

Reply via email to