Yesterday I installed a new LMTX instance *ex nihilo*. Unfortunately, the
new instance will not load my typescripts. My several commercial fonts and
the typescripts I wrote for them reside in the texmf-project tree, along
with a style file that loads them. I load the style file in my source files
with the \environment command.

The files in texmf-project are properly indexed. I know this, because the
style file's name appears in the log, because I can list the fonts with mtxrun
--script fonts --list --files --all --pattern=Dolly*, and because he style
file evokes \showframe and \showgrid; the result of which I see in the
typeset results.

Regardless of whether a typescript files, e.g. type-DollyPro.tex, is in the
texmf-tree or in the same directory as the ConTeXt source file, evoking
\usetypescriptfile[type-DollyPro] fails. The log says:

fonts           > typescripts > unknown library 'DollyPro'
fonts           > typescripts > unknown library 'DollyPro'

However, including the typescripts in the ConTeXt source file succeeds;
which would seem to imply that my typescript definitions are correct.

Using an old instance: LMTX LuaTeX 2.03 20191227 + ConTeXt MkIV 2019.12.27
19:26, loading the typescript via the style file works as expected.

I regret that my mwe remains academic, since you need the Dolly font to run
it.

Any encouragement in how to resolve this would be much appreciated.

Cheers,

Michael
% \starttypescript [serif] [DollyPro]
%   \definefontsynonym [Regular]   [file:DollyPro-Regular.otf]
%   \definefontsynonym [Bold]      [file:DollyPro-Bold.otf]
%   \definefontsynonym [Italic]    [file:DollyPro-RegularItalic.otf]
%   \definefontsynonym [SmallCaps] [file:DollyPro-RegularSmallCaps.otf]
% \stoptypescript

% \starttypescript [serif] [DollyPro]
%   \setups[font:fallback:serif]
%   \definefontsynonym [Serif]       [Regular]   [features=default]
%   \definefontsynonym [SerifBold]   [Bold]      [features=default]
%   \definefontsynonym [SerifItalic] [Italic]    [features=default]
%   \definefontsynonym [SerifCaps]   [SmallCaps] [features=default]
% \stoptypescript

% \definefontfeature
%   [hz] [default]
%   [protrusion=quality, expansion=quality, mode=node, script=latn]

% \starttypescript[DollyPro]
%   \definetypeface [DollyPro] [rm] [serif] [DollyPro] [default] [features=hz]
% \stoptypescript

\usetypescriptfile[type-DollyPro]
\setupbodyfont[DollyPro]

\starttext
  \input tufte
\stoptext
% Regular

\starttypescript [serif] [DollyPro]
  \definefontsynonym [Regular]   [file:DollyPro-Regular.otf]
  \definefontsynonym [Bold]      [file:DollyPro-Bold.otf]
  \definefontsynonym [Italic]    [file:DollyPro-RegularItalic.otf]
  \definefontsynonym [SmallCaps] [file:DollyPro-RegularSmallCaps.otf]
\stoptypescript

\starttypescript [serif] [DollyPro]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]       [Regular]   [features=default]
  \definefontsynonym [SerifBold]   [Bold]      [features=default]
  \definefontsynonym [SerifItalic] [Italic]    [features=default]
  \definefontsynonym [SerifCaps]   [SmallCaps] [features=default]
\stoptypescript

\definefontfeature
  [hz] [default]
  [protrusion=quality, expansion=quality, mode=node, script=latn]

\starttypescript[DollyPro]
  \definetypeface [DollyPro] [rm] [serif] [DollyPro] [default] [features=hz]
\stoptypescript

% finis
fonts           > beware: no fonts are loaded yet, using 'lm mono' in box
system          > 
system          > ConTeXt  ver: 2021.05.27 14:15 LMTX  fmt: 2021.5.28  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/opt/_lmtx_/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/opt/_lmtx_/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname 'mwe', input './mwe', result 'mwe'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 1, order 2, name './mwe.tex'
fonts           > typescripts > unknown library 'DollyPro'
fonts           > typescripts > unknown library 'DollyPro'
fonts           > preloading latin modern fonts (third stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
open source     > level 2, order 3, name 'tufte.tex'
close source    > level 2, order 3, name 'tufte.tex'
backend         > xmp > using file '/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 1, order 3, name './mwe.tex'
system          > start used files
system          > text: mwe
system          > stop used files
system          > start used files
system          >    1: filename=char-prv.lua filetype=tex format=tex foundname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/char-prv.lua fullname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/char-prv.lua usedmethod=database
system          >    2: filename=lmmono10-regular filetype=otf format=otf foundname=/opt/_lmtx_/tex/texmf/fonts/opentype/public/lm/lmmono10-regular.otf fullname=/opt/_lmtx_/tex/texmf/fonts/opentype/public/lm/lmmono10-regular.otf usedmethod=database
system          >    3: filename=publ-imp-default.lua filetype=scripts foundname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system          >    4: filename=cont-new.mkxl filetype=tex foundname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl fullname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl usedmethod=database
system          >    5: filename=lang-exc.lua filetype=scripts foundname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system          >    6: filename=lang-us.lua filetype=scripts foundname=/opt/_lmtx_/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/opt/_lmtx_/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system          >    7: filename=/tmp/mwe.tex format=tex foundname=/tmp/mwe.tex fullname=/tmp/mwe.tex usedmethod=direct
system          >    8: filename=lm.lfg filetype=tex foundname=/opt/_lmtx_/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=/opt/_lmtx_/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system          >    9: filename=lmroman12-regular filetype=otf format=otf foundname=/opt/_lmtx_/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf fullname=/opt/_lmtx_/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
system          >   10: filename=/opt/lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf foundname=/opt/lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf fullname=/opt/lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=direct
system          >   11: filename=latinmodern-math.otf filetype=opentypefonts foundname=/opt/_lmtx_/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=/opt/_lmtx_/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
system          >   12: filename=tufte.tex filetype=tex format=tex foundname=/opt/_lmtx_/tex/texmf-context/tex/context/sample/common/tufte.tex fullname=/opt/_lmtx_/tex/texmf-context/tex/context/sample/common/tufte.tex usedmethod=database
system          >   13: filename=lpdf-pdx.xml filetype=tex foundname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database
system          > stop used files
system          > start commandline options
system          > currentrun="3"
system          > fulljobname="./mwe"
system          > input="./mwe"
system          > kindofrun="2"
system          > maxnofruns="9"
system          > mode="debug,dolly"
system          > texmfbinpath="/opt/_lmtx_/tex/texmf-linux-64/bin"
system          > stop commandline options
system          > start commandline files
system          >    1: ./mwe
system          > stop commandline files
modules         > start used modules
modules         > stop used modules
system          > 
system          > status after finishing run
system          > 
system          >   ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system          >           string       pool       hash     lookup       node      token      extra     sparse     buffer      input       file       nest  parameter       save       font   language       mark     insert
system          >   ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system          >   max    2097152  100000000    2097152    2097152   50000000   10000000                        100000000     100000       2000      10000     100000     500000     100000      10000      10000        500
system          >   min     150000   10000000     150000     150000    1000000    1000000                          1000000      10000        500       1000      20000     100000        250        250         50         10
system          >   set     500000   10000000     250000     250000   50000000   10000000                         10000000     100000       2000      10000     100000     500000     100000        250        250        250
system          >   stp     100000    1000000     100000     100000     500000     250000                          1000000      10000        250       1000      10000      10000        250        250         50         25
system          > 
system          >   mem     150000     893094     150000               1000000    1000000          0     957360    1000000      10000        500       1000      20000      10000    4310680         96       1200        240
system          >   all    3600000     893094    2400000               9000000    8000000          0     957360    1000000     320000      16000      48000      80000     160000    4310680         96      28800       5760
system          > 
system          >   ini    2141414     835843          0      44248          0     487381                                                                                                             0                      
system          >   ptr      46015                  9027      46001                522118          0                     0          0          0          0          0          0          8          0          0          0
system          >   top      46016                740032     131074      12081     538746          0                   295         40          5         12         40        245        250        250         50         10
system          >   ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system          > 
system          >   current input type    : initial
system          > 
system          >   approximate memory    : 31819790 (30 MB)
system          > 
system          >   expansion depth       : min: 10000, max: 1000000, set: 10000, top: 6
system          > 
system          >   luabytecode registers : 990
system          >   luabytecode bytes     : 15856 (0 MB)
system          >   luastate bytes now    : 47943753 (45 MB)
system          >   luastate bytes max    : 47943753 (45 MB)
system          > 
system          >   file callbacks        : 98
system          >   saved callbacks       : 182
system          >   direct callbacks      : 2
system          >   function callbacks    : 1163
system          >   value callbacks       : 0
system          >   message callbacks     : 0
system          >   bytecode callbacks    : 589
system          > 
system          >   mp instances          : 0
system          >   mp estimated memory   : 0 (0 MB)
system          >   mp file callbacks     : 0
system          >   mp text callbacks     : 0
system          >   mp script callbacks   : 0
system          >   mp log callbacks      : 0
system          > 
system          >   total callbacks       : 2034
system          >   mp total callbacks    : 0
system          >   backend callbacks     : 0
system          > 
mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable+writable: '/home/michael/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e'
mkiv lua stats  > resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 13 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 490 modules (0.277 sec), 99 tables (0.014 sec), 589 chunks (0.292 sec)
mkiv lua stats  > traced context: maxstack: 1549, freed: 0, unreachable: 1549
mkiv lua stats  > cleaned up reserved nodes: 69 nodes, 9 lists of 434
mkiv lua stats  > node memory usage: 6 attribute, 3 attribute_list, 1 glue, 58 glue_spec, 3 kern, 2 penalty, 2 temp
mkiv lua stats  > node list callback tasks: 9 unique task lists, 8 instances (re)created, 56 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.008 seconds loading
mkiv lua stats  > callbacks: internal: 0, file: 0, direct: 0, late: 0, function 0, total: 0 (0 per page)
mkiv lua stats  > randomizer: resumed with value 0.19171403880136
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, lmmono10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.116, afm 1.513, tfm 1.000, 8 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.180 seconds 
mkiv lua stats  > font embedding time: 0.001 seconds, 1 fonts
mkiv lua stats  > result saved in file: mwe.pdf, compresslevel 1, objectcompresslevel 3
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > used engine: luametatex version: 2.0911, functionality level: 20210527, format id: 575, compiler: gcc
mkiv lua stats  > tex properties: 740032 hash slots used of 2097152, 46001 control sequences, approximate memory usage: 30 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 48 MB, ctx: 45 MB, max: 45 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.564 seconds, 1 processed pages, 1 shipped pages, 1.773 pages/second
___________________________________________________________________________________
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