Not searching the font cache
Hi, I ran into an inconvenience with lualatex and would like some help debugging it. Consider the following .tex file: ---- documentclass{article} \usepackage{bbm} \begin{document} $\mathbbm{1}$ \end{document} ---- When compiling with pdflatex, the font file for the bbm font is created in the local cache (~/.texlive/texmf-var/fonts) only if it does not exist. When the font exists in the cache, it is used without warning. When compiling with lualatex, the font file is created every time. When the font exists, this results in a simple warning ("mktexpk: [...] already exists."). Trying to create the fonts slows down compilation noticeably. How do I go about debugging this? The fact that pdflatex has no problems suggests that this is not an issue with my texmf.cnf, right? Regards, - Jouke
On Sat, Nov 17, 2018 at 9:10 AM Jouke Witteveen
I ran into an inconvenience with lualatex and would like some help debugging it.
Consider the following .tex file: ---- documentclass{article}
\usepackage{bbm}
\begin{document} $\mathbbm{1}$ \end{document} ----
When compiling with pdflatex, the font file for the bbm font is created in the local cache (~/.texlive/texmf-var/fonts) only if it does not exist. When the font exists in the cache, it is used without warning.
When compiling with lualatex, the font file is created every time. When the font exists, this results in a simple warning ("mktexpk: [...] already exists."). Trying to create the fonts slows down compilation noticeably.
How do I go about debugging this? The fact that pdflatex has no problems suggests that this is not an issue with my texmf.cnf, right?
A little tinkering later, I discovered that if I remove $MAKETEX_MODE in the line PKFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/pk/{$MAKETEX_MODE,modeless}// in texmf.cnf, or replace $MAKETEX_MODE by /, the problems go away. Apparently, that variable is not set the way it should on my system. Any ideas on why this might be? Thanks, - Jouke
I ran into an inconvenience with lualatex and would like some help debugging it.
Consider the following .tex file: ---- documentclass{article}
\usepackage{bbm}
\begin{document} $\mathbbm{1}$ \end{document} ----
When compiling with lualatex, the font file is created every time. When the font exists, this results in a simple warning ("mktexpk: [...] already exists."). Trying to create the fonts slows down compilation noticeably.
Sorry, I completly forgot about this. This is a luaotfload problem, not luatex. There is an open pull request to solve the problem https://github.com/u-fischer/luaotfload/pull/30 but I don't know if I find the time this week to merge it and to upload a new luaotfload. Ulrike Fischer
On Tue, Jan 8, 2019 at 2:27 PM Ulrike Fischer
I ran into an inconvenience with lualatex and would like some help debugging it.
Consider the following .tex file: ---- documentclass{article}
\usepackage{bbm}
\begin{document} $\mathbbm{1}$ \end{document} ----
When compiling with lualatex, the font file is created every time. When the font exists, this results in a simple warning ("mktexpk: [...] already exists."). Trying to create the fonts slows down compilation noticeably.
Sorry, I completly forgot about this. This is a luaotfload problem, not luatex. There is an open pull request to solve the problem https://github.com/u-fischer/luaotfload/pull/30 but I don't know if I find the time this week to merge it and to upload a new luaotfload.
Ulrike Fischer
Thanks! This means I can stop my bug hunt. - Jouke
participants (2)
-
Jouke Witteveen
-
Ulrike Fischer