Hi there

as a newcomer in ConTeXt I installed according to 

https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_on_MacOS/

and using TeXShop on macos as advised.

However, I like to use STIX2-Fonts for Text and Math and hence my MWE to test 
which fonts are going to be embedded (CLI pdffonts):

————-
\setupbodyfont[stixtwo]
\starttext

Test ß 1lIjJuQ \% § \& ?! VERSAL-ẞ- \|> --- 1234567890 --- //

\placeformula[eqn:def-m]
\startformula
    m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}
\stopformula
\stoptext
————-

Unfortunately the compiler throws an error — why is there a check of 
STIX2-fonts versions, why is that important?

I checked and found 

/Users/hp/Library/Fonts/STIXTwoText-Regular.otf Version 2.12 b168
/Users/hp/Library/context-osx-64/tex/texmf/fonts/opentype/public/stix2-otf/STIXTwoText-Regular.otf
 Version 2.11 b159

Could you please advise for a work around?

from the log:

————-
fonts           > otf loading > loading 'stixtwotext-regular.otf', hash 
'stixtwotext-regular'
otf reader      > unknown version '



' in file 'stixtwotext-regular.otf'
fonts           > otf loading > loading done
fonts           > otf loading > saving 'stixtwotext-regular.otf' in cache
system          > lua > compiling 
'/Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/stixtwotext-regular.tma'
 into 
'/Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/stixtwotext-regular.tmd'
system          > lua > dumping 
'/Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/stixtwotext-regular.tma'
 into 
'/Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/stixtwotext-regular.tmd'
 stripped
fonts           > otf loading > loading, optimizing, packing and caching time 
0.002
lua error       > lua error on line 1 in file ./Untitled.tex:

registered function call [1129]: 
...-64/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:325: attempt to 
index a nil value (upvalue 'descriptions')
stack traceback:
        ...-64/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:325: in 
local 'prepare_ligature'
        ...-64/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:770: in 
upvalue 'addfeature'
        ...-64/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:899: in 
local 'enhancer'
        ...-64/tex/texmf-context/tex/context/base/mkxl/font-con.lmt:1269: in 
upvalue 'enhance'
        ...-64/tex/texmf-context/tex/context/base/mkxl/font-con.lmt:1291: in 
field 'apply'
        ...-64/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:263: in 
field 'load'
        ...-64/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:602: in 
upvalue 'otftotfm'
        ...-64/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:630: in 
function <...-64/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:629>
        (...tail calls...)
        ...-64/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:378: in 
function <...-64/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:366>
        (...tail calls...)
        ...-64/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:484: in 
field 'read'
        ...-64/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1336: in 
function <...-64/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1193>
        (...tail calls...)
 1 >>  \setupbodyfont[stixtwo]
————-

Many thanks for your support.
Kind regards

Heinrich Paeßens 
Mobile +49 1512 123 9876 <tel:+4915121239876>
Business Card 
<https://www.paessens.tel/img/heinrich-paessens_bc-2021-03-11_signed.pdf>

___________________________________________________________________________________
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