ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* two issues with variable fonts
@ 2022-12-02 18:06 Pablo Rodriguez via ntg-context
  2022-12-02 19:17 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-02 18:06 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Pablo Rodriguez

Hi Hans,

I have two issues with variable fonts (using current latest from yesterday):

1. Using the following sample:

 \usemodule[fonts-variable]
 \starttext
  \showfontvariations[font=file:grenze.ttf]
 \stoptext

With the fonts from
https://github.com/Omnibus-Type/Grenze/tree/master/fonts-/gx, I get the
following error message:

lua error:
  run callback [6]:
...ext/tex/texmf-context/tex/context/base/mkxl/lpdf-emb.lmt:84: number
(local 'n') has no integer representation
stack traceback:
   ...base/mkxl/lpdf-emb.lmt:84: in upvalue 'tocardinal2'
   ...base/mkxl/lpdf-emb.lmt:771: in local 'writer'
   ...base/mkxl/lpdf-emb.lmt:2358: in field 'integer index'
   ...base/mkxl/lpdf-ini.lmt:828: in upvalue 'run'
   ...base/mkxl/lpdf-ini.lmt:859: in field 'finalizedocument'
   ...base/mkxl/lpdf-lmt.lmt:3413: in field '?'
   ...base/mkxl/luat-run.lmt:58: in function
     <...ext/tex/texmf-context/tex/context/base/mkxl/luat-run.lmt:56>	

<empty file>
mtx-context     | fatal error: return code: 1

This crashes LuaMetaTeX but not LuaTeX.

2. The other font is Recursive
(https://github.com/arrowtype/recursive/tree/main/fonts/recursive_for_googlefonts).

 \usemodule[fonts-variable]
 \starttext
  \showfontvariations[font=file:recursive.ttf]
 \stoptext

There are some some instances (in pages 4 to 14) that don’t have the
font (only Latin Modern Roman).

Also in the last instances (at least, pages 19 to 25), kerning or
interletter spacing clearly needs to be improved.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-02 18:06 two issues with variable fonts Pablo Rodriguez via ntg-context
@ 2022-12-02 19:17 ` Hans Hagen via ntg-context
  2022-12-03  0:01   ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen via ntg-context @ 2022-12-02 19:17 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 12/2/2022 7:06 PM, Pablo Rodriguez via ntg-context wrote:
> Hi Hans,
> 
> I have two issues with variable fonts (using current latest from yesterday):
> 
> 1. Using the following sample:
> 
>   \usemodule[fonts-variable]
>   \starttext
>    \showfontvariations[font=file:grenze.ttf]
>   \stoptext
> 
> With the fonts from
> https://github.com/Omnibus-Type/Grenze/tree/master/fonts-/gx, I get the
> following error message:
> 
> lua error:
>    run callback [6]:
> ...ext/tex/texmf-context/tex/context/base/mkxl/lpdf-emb.lmt:84: number
> (local 'n') has no integer representation
> stack traceback:
>     ...base/mkxl/lpdf-emb.lmt:84: in upvalue 'tocardinal2'
>     ...base/mkxl/lpdf-emb.lmt:771: in local 'writer'
>     ...base/mkxl/lpdf-emb.lmt:2358: in field 'integer index'
>     ...base/mkxl/lpdf-ini.lmt:828: in upvalue 'run'
>     ...base/mkxl/lpdf-ini.lmt:859: in field 'finalizedocument'
>     ...base/mkxl/lpdf-lmt.lmt:3413: in field '?'
>     ...base/mkxl/luat-run.lmt:58: in function
>       <...ext/tex/texmf-context/tex/context/base/mkxl/luat-run.lmt:56>	
> 
> <empty file>
> mtx-context     | fatal error: return code: 1
> 
> This crashes LuaMetaTeX but not LuaTeX.

i'll catch it

> 2. The other font is Recursive
> (https://github.com/arrowtype/recursive/tree/main/fonts/recursive_for_googlefonts).
> 
>   \usemodule[fonts-variable]
>   \starttext
>    \showfontvariations[font=file:recursive.ttf]
>   \stoptext
> 
> There are some some instances (in pages 4 to 14) that don’t have the
> font (only Latin Modern Roman).

i'll catch it

> Also in the last instances (at least, pages 19 to 25), kerning or
> interletter spacing clearly needs to be improved.
no clue (ok, a little)

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-02 19:17 ` Hans Hagen via ntg-context
@ 2022-12-03  0:01   ` Hans Hagen via ntg-context
  2022-12-03  9:29     ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen via ntg-context @ 2022-12-03  0:01 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 12/2/2022 8:17 PM, Hans Hagen via ntg-context wrote:

>> Also in the last instances (at least, pages 19 to 25), kerning or
>> interletter spacing clearly needs to be improved.
> no clue (ok, a little)
sort of fixed but no upload yet (probably next week)

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-03  0:01   ` Hans Hagen via ntg-context
@ 2022-12-03  9:29     ` Pablo Rodriguez via ntg-context
  2022-12-04 10:53       ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-03  9:29 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez

On 12/3/22 01:01, Hans Hagen via ntg-context wrote:
> On 12/2/2022 8:17 PM, Hans Hagen via ntg-context wrote:
> 
>>> Also in the last instances (at least, pages 19 to 25), kerning or
>>> interletter spacing clearly needs to be improved.
>> no clue (ok, a little)
> sort of fixed but no upload yet (probably next week)

Many thanks for all your fixes, Hans.

BTW, using https://github.com/googlefonts/amstelvar/tree/main/fonts with
the following source:

  \usemodule[fonts-variable]
  \starttext
    \showfontvariations[font=file:Amstelvar-Roman.ttf]
    \showfontvariations[font=file:Amstelvar-Italic.ttf]
  \stoptext

Font is missing in instances from pages 4, 8-11 (regular font) and 21-23
(italic font).

Glyphs seem wrong on pages 12-13 (regular font) and interletter spacing
is clearly not right in the instance from pages 24-25.

I don’t know whether this has already been fixed with your improvements
yesterday.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-03  9:29     ` Pablo Rodriguez via ntg-context
@ 2022-12-04 10:53       ` Hans Hagen via ntg-context
  2022-12-04 17:17         ` Pablo Rodriguez via ntg-context
                           ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Hans Hagen via ntg-context @ 2022-12-04 10:53 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 12/3/2022 10:29 AM, Pablo Rodriguez via ntg-context wrote:
> On 12/3/22 01:01, Hans Hagen via ntg-context wrote:
>> On 12/2/2022 8:17 PM, Hans Hagen via ntg-context wrote:
>>
>>>> Also in the last instances (at least, pages 19 to 25), kerning or
>>>> interletter spacing clearly needs to be improved.
>>> no clue (ok, a little)
>> sort of fixed but no upload yet (probably next week)
> 
> Many thanks for all your fixes, Hans.
> 
> BTW, using https://github.com/googlefonts/amstelvar/tree/main/fonts with
> the following source:
> 
>    \usemodule[fonts-variable]
>    \starttext
>      \showfontvariations[font=file:Amstelvar-Roman.ttf]
>      \showfontvariations[font=file:Amstelvar-Italic.ttf]
>    \stoptext
> 
> Font is missing in instances from pages 4, 8-11 (regular font) and 21-23
> (italic font).
> 
> Glyphs seem wrong on pages 12-13 (regular font) and interletter spacing
> is clearly not right in the instance from pages 24-25.
> 
> I don’t know whether this has already been fixed with your improvements
> yesterday.
the fact that some were not processed relates to a 'fix' of a while back 
... also keep in mind that the variable font code was written long ago 
when there were only a handful of experimental (and often somewhat 
buggy) fonts around showing off the new tricks .. since then there has 
not been much interest in variables fonts from the perspective of tex

assuming that i can motivate myself (read: the fonts look nice) i can 
probably sort out all the side effects

i'll check if we can deal with tags instead of names as not all fonts 
have nice names for the axis defined (which might be why one ends up 
with all these predefined instances)

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-04 10:53       ` Hans Hagen via ntg-context
@ 2022-12-04 17:17         ` Pablo Rodriguez via ntg-context
  2022-12-04 21:16         ` Henning Hraban Ramm via ntg-context
  2022-12-06 17:47         ` Pablo Rodriguez via ntg-context
  2 siblings, 0 replies; 11+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-04 17:17 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez

On 12/4/22 11:53, Hans Hagen via ntg-context wrote:
>> [...]
> i'll check if we can deal with tags instead of names as not all fonts 
> have nice names for the axis defined (which might be why one ends up 
> with all these predefined instances)

Many thanks for your reply, Hans.

Tags instead of names seems more consistent to me. At least when
comparing it with OpenType features. And I think that "optical size" was
the first key I see containing a space.

Many thank sfor 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-04 10:53       ` Hans Hagen via ntg-context
  2022-12-04 17:17         ` Pablo Rodriguez via ntg-context
@ 2022-12-04 21:16         ` Henning Hraban Ramm via ntg-context
  2022-12-06 18:56           ` Pablo Rodriguez via ntg-context
  2022-12-06 17:47         ` Pablo Rodriguez via ntg-context
  2 siblings, 1 reply; 11+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-12-04 21:16 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Henning Hraban Ramm

Am 04.12.22 um 11:53 schrieb Hans Hagen via ntg-context:
> the fact that some were not processed relates to a 'fix' of a while back 
> ... also keep in mind that the variable font code was written long ago 
> when there were only a handful of experimental (and often somewhat 
> buggy) fonts around showing off the new tricks .. since then there has 
> not been much interest in variables fonts from the perspective of tex

An increasing number of fonts in the Google repository is (becoming) 
variable. So far, I only used the additionally provided fixed versions...

Hraban

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-04 10:53       ` Hans Hagen via ntg-context
  2022-12-04 17:17         ` Pablo Rodriguez via ntg-context
  2022-12-04 21:16         ` Henning Hraban Ramm via ntg-context
@ 2022-12-06 17:47         ` Pablo Rodriguez via ntg-context
  2 siblings, 0 replies; 11+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-06 17:47 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez

On 12/4/22 11:53, Hans Hagen via ntg-context wrote:
> [...]
> assuming that i can motivate myself (read: the fonts look nice) i can 
> probably sort out all the side effects

Many thanks for the fixes in the new beta, Hans.

> i'll check if we can deal with tags instead of names as not all fonts 
> have nice names for the axis defined (which might be why one ends up 
> with all these predefined instances)

Many thanks to for allowing tag values for using axes.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-04 21:16         ` Henning Hraban Ramm via ntg-context
@ 2022-12-06 18:56           ` Pablo Rodriguez via ntg-context
  2022-12-06 20:07             ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-06 18:56 UTC (permalink / raw)
  To: Henning Hraban Ramm via ntg-context; +Cc: Pablo Rodriguez

On 12/4/22 22:16, Henning Hraban Ramm via ntg-context wrote:
> [...]
> An increasing number of fonts in the Google repository is (becoming) 
> variable. So far, I only used the additionally provided fixed versions...

Hi Hraban,

I have just added a first draft about variable font usage:
https://wiki.contextgarden.net/Variable_Fonts.

Would you be so kind to improve it?

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-06 18:56           ` Pablo Rodriguez via ntg-context
@ 2022-12-06 20:07             ` Henning Hraban Ramm via ntg-context
  2022-12-09 16:44               ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-12-06 20:07 UTC (permalink / raw)
  To: Pablo Rodriguez via ntg-context; +Cc: Henning Hraban Ramm

Am 06.12.22 um 19:56 schrieb Pablo Rodriguez via ntg-context:
> On 12/4/22 22:16, Henning Hraban Ramm via ntg-context wrote:
>> [...]
>> An increasing number of fonts in the Google repository is (becoming)
>> variable. So far, I only used the additionally provided fixed versions...
> 
> Hi Hraban,
> 
> I have just added a first draft about variable font usage:
> https://wiki.contextgarden.net/Variable_Fonts.
> 
> Would you be so kind to improve it?

As I wrote: I never used variable fonts.
While it would be interesting to try, I’ll hardly find time until new year.

Hraban

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: two issues with variable fonts
  2022-12-06 20:07             ` Henning Hraban Ramm via ntg-context
@ 2022-12-09 16:44               ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 11+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-09 16:44 UTC (permalink / raw)
  To: Henning Hraban Ramm via ntg-context; +Cc: Pablo Rodriguez

On 12/6/22 21:07, Henning Hraban Ramm via ntg-context wrote:
> Am 06.12.22 um 19:56 schrieb Pablo Rodriguez via ntg-context:
>> [...]
>> Hi Hraban,
>>
>> I have just added a first draft about variable font usage:
>> https://wiki.contextgarden.net/Variable_Fonts.
>>
>> Would you be so kind to improve it?
> 
> As I wrote: I never used variable fonts.
> While it would be interesting to try, I’ll hardly find time until new
> year.
Sorry, Hraban, I totally misread your message.

Now I realize that my original message doesn’t make sense.

Sorry for the noise and the inconveniences.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-12-09 16:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-02 18:06 two issues with variable fonts Pablo Rodriguez via ntg-context
2022-12-02 19:17 ` Hans Hagen via ntg-context
2022-12-03  0:01   ` Hans Hagen via ntg-context
2022-12-03  9:29     ` Pablo Rodriguez via ntg-context
2022-12-04 10:53       ` Hans Hagen via ntg-context
2022-12-04 17:17         ` Pablo Rodriguez via ntg-context
2022-12-04 21:16         ` Henning Hraban Ramm via ntg-context
2022-12-06 18:56           ` Pablo Rodriguez via ntg-context
2022-12-06 20:07             ` Henning Hraban Ramm via ntg-context
2022-12-09 16:44               ` Pablo Rodriguez via ntg-context
2022-12-06 17:47         ` Pablo Rodriguez via ntg-context

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).