Why can't lualatex in MiKTeX find stmaryrd fonts unless pdflatex is run first?

by Jason Gross   Last Updated June 30, 2020 02:23 AM

MNWE:

\documentclass{acmart}
\usepackage{stmaryrd}
\begin{document}
$\Mapsto$
\end{document}

Running lualatex on this file gives a log containing

luaotfload | cache : Lookup cache loaded from C:/Users/Jason/AppData/Local/MiKTeX/2.9/luatex-cache/generic-dev/names/luaotfload-lookup-cache.luc.
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: "Font stmary9
 not found.".
luaotfload | resolve : sequence of 3 lookups yielded nothing appropriate.
luaotfload | resolve : sequence of 3 lookups yielded nothing appropriate.
Missing character: There is no Z (U+005A) in font stmary9!

What does this mean? And, perhaps more confusingly, why does it disappear if I run pdflatex on my document before running lualatex?

(Perhaps this last has something to do with the pdflatex log entry

miktex-maketfm: security risk: running with elevated privileges
Making stmary9.tfm from "D:\Program Files\MiKTeX 2.9\fonts/source/public/stmaryrd\stmary9.mf"...
Running miktex-mf.exe...
miktex-mf: security risk: running with elevated privileges
This is METAFONT, Version 2.7182818 (MiKTeX 2.9.7400 64-bit)

(D:\Program Files\MiKTeX 2.9\fonts/source/public/stmaryrd\stmary9.mf

?)

Full lualatex log available here, full pdflatex log available here.



Related Questions


Lualatex produces no output (MiKTeX)

Updated May 26, 2020 08:23 AM

fontspec error with lualatex MiKTeX

Updated February 01, 2018 21:23 PM

Error during luaotfload font name database creation

Updated September 12, 2016 08:09 AM