[NTG-context] Failure when loading variable font
Hi, the latest ConTeXt version fails for the following document: \definefontfeature [default:test] [default] [axis={Weight=100}] \definefont [SomeFont] [file:Fraunces.ttf*default:test] \starttext \SomeFont Abcdef \stoptext and the font from https://github.com/undercasetype/Fraunces/raw/master/fonts/Fraunces%5BSOFT%2CWONK%2Copsz%2Cwght%5D.ttf renamed to Fraunces.ttf with the error message otf reader > user instance: weight=100, factors: 0 -1.0 0 0 otf reader > fatal error in file 'Fraunces.ttf': ...e0dde776fb1556f32e/formats/luametatex/font-ttf-macro.lua:274: attempt to index a nil value (local 'p1') stack traceback: ...e0dde776fb1556f32e/formats/luametatex/font-otr-macro.lua:2339: in metamethod 'index' ...e0dde776fb1556f32e/formats/luametatex/font-ttf-macro.lua:274: in upvalue 'applyaxis' ...e0dde776fb1556f32e/formats/luametatex/font-ttf-macro.lua:1428: in field 'gvar' ...e0dde776fb1556f32e/formats/luametatex/font-ttf-macro.lua:1155: in local 'reader' ...e0dde776fb1556f32e/formats/luametatex/font-otr-macro.lua:2084: in upvalue 'readtable' ...e0dde776fb1556f32e/formats/luametatex/font-otr-macro.lua:2197: in upvalue 'readdata' ...e0dde776fb1556f32e/formats/luametatex/font-otr-macro.lua:2252: in function <...e0dde776fb1556f32e/formats/luametatex/font-otr-macro.lua:2235> [C]: in function 'xpcall' ...e0dde776fb1556f32e/formats/luametatex/font-otr-macro.lua:2341: in upvalue 'loadfont' ...e0dde776fb1556f32e/formats/luametatex/font-otr-macro.lua:2396: in field 'loadfont' ...mtx/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:160: in field 'load' ...mtx/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:599: in upvalue 'otftotfm' ...mtx/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:627: in function <...mtx/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:626> (...tail calls...) ...mtx/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:377: in function <...mtx/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:365> (...tail calls...) ...mtx/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:483: in field 'read' ...mtx/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1336: in function <...mtx/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1193> (...tail calls...) fonts > otf loading > loading failed due to read error (This run used luametatex, but the same issue occurs when using luatex) The same font worked correctly with the ConTeXt version from 2021-05-20. Best regards, Marcel ___ 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 ___
Re: [NTG-context] em-dash ligature is converted to en-dash in the generic fontloader
On Fri, 01 Mar 2019 11:17:56 +0100 Hans Hagen wrote > On 2/28/2019 12:38 PM, Marcel Krüger wrote: > > On 2/23/2019 1:50 PM, Ulrike Fischer wrote: > >> As reported on the dev-luatex list --- is converted to an en-dash > >> (instead of em-dash) if there are no spaces around the ---. > >> > >> We could now reproduce the problem also with the generic fontloader: > >> it appears only with mode=node. I'm using the files from 2019-02-14, > >> but the problem appeared first in the files from 2018-11-18): > >> > >> \font\test={file:texgyreheros-regular.otf:+tlig;mode=node;}\test > >> > >> dashes-these % gives dash > >> > >> dashes--these % gives en-dash > >> > >> dashes---these % gives en-dash WRONG > >> > >> dashes --- these % gives em-dash > >> > >> em-dashes---these % gives em-dash > >> > >> \bye > >> > >> context is not affected, there the code works fine. > > > > This issue can be fixed in the fontloader with the attached patch. > Hm, I don't see those lines here and it looks ok in context so ... no For reproduction in context, the code \starttext ff\discretionary{l}{}{l} \stoptext currently produces a single `fl` ligature instead of `ffl`. Interesting that you didn't see those lines, maybe we have different versions? The patched line is line 844 in the file `font-ots.lua` of ConTeXt beta, updated today. Best regards Marcel > patches applied (and definitely not in the tex live code freeze window) > > 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 ___
[NTG-context] em-dash ligature is converted to en-dash in the generic fontloader
On 2/23/2019 1:50 PM, Ulrike Fischer wrote: > As reported on the dev-luatex list --- is converted to an en-dash > (instead of em-dash) if there are no spaces around the ---. > > We could now reproduce the problem also with the generic fontloader: > it appears only with mode=node. I'm using the files from 2019-02-14, > but the problem appeared first in the files from 2018-11-18): > > \font\test={file:texgyreheros-regular.otf:+tlig;mode=node;}\test > > dashes-these % gives dash > > dashes--these % gives en-dash > > dashes---these % gives en-dash WRONG > > dashes --- these % gives em-dash > > em-dashes---these % gives em-dash > > \bye > > context is not affected, there the code works fine. This issue can be fixed in the fontloader with the attached patch. Best regards, Marcel Krüger 0001-Fix-ligature-followed-by-disc.diff Description: Binary data ___ 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 ___