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_googlef...). \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
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_googlef...).
\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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
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
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.
On 12/3/2022 10:29 AM, Pablo Rodriguez via ntg-context wrote: 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 -----------------------------------------------------------------
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
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
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
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
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
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
participants (4)
-
Hans Hagen
-
Hans Hagen
-
Henning Hraban Ramm
-
Pablo Rodriguez