[Tex/LaTex] Font not loadable: metric data not found or bad

fontsluatexmiktexwindows

Okay, I'm having the following issue that resembles an issue other people have reported. But, I haven't seen any problem that is as simple as mine or any solution that's for my operating system. I am trying to use LuaLaTeX to compile the following document on Windows (I use Miktex to manage my LaTeX packages):

\documentclass[10]{article}
\usepackage{bbold}
\begin{document}
Inserting some words here. 
\[
   \mathbb{1}
\]
\end{document}

The error I'm receiving is the following:

This is LuaTeX, Version beta-0.80.0 (MiKTeX 2.9 64-bit) (rev 5238)  (format=lualatex 2016.1.5)  12 JAN 2016 14:47
 file:line:error style messages enabled.
**test.tex
(./test.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9m> and hyphenation patterns for 69 languages loaded.
(C:/Miktex64/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(C:/Miktex64/tex/latex/base/size10.clo
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (C:/Miktex64/tex/latex/bbold/bbold.sty
Package: bbold 1994/04/06 Bbold symbol package
)

LaTeX Warning: Unused global option(s):
    [10].

(./test.aux)
\openout1 = test.aux

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 18.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 18.
LaTeX Font Info:    Try loading font information for U+bbold on input line 19.
 (C:/Miktex64/tex/latex/jknappen/ubbold.fd
File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk)
)
./test.tex:19: Font \U/bbold/m/n/10=bbold10 at 10pt not loadable: metric data no
t found or bad.
<to be read again> 
relax 
l.19    \mathbb{R}

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

./test.tex:19: Font \U/bbold/m/n/7=bbold7 at 7pt not loadable: metric data not f
ound or bad.
<to be read again> 
relax 
l.19    \mathbb{R}

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

./test.tex:19: Font \U/bbold/m/n/5=bbold5 at 5pt not loadable: metric data not f
ound or bad.
<to be read again> 
relax 
l.19    \mathbb{R}

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

./test.tex:20: \textfont4 is undefined (character 82).
\]  ->\relax \ifmmode \ifinner \@badmath \else $$
                                                 \fi \else \@badmath \fi \ig...
l.20 \]

Somewhere in the math formula just ended, you used the
stated character from an undefined font family. For example,
plain TeX doesn't allow \it or \sl in subscripts. Proceed,
and I'll try to forget that I needed that character.

[1

{C:/Users/John Rinehart/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
(./test.aux))

Here is how much of LuaTeX's memory you used:
 265 strings out of 494933
 100000,89155 words of node,token memory allocated
 264 words of node memory still in use:
    nodes
   avail lists: 2:12,3:4,4:29,5:1,6:32,7:1,9:7,10:2
 3973 multiletter control sequences out of 65536+200000
 25 fonts using 995431 bytes
 23i,4n,17p,127b,110s stack positions out of 5000i,500n,10000p,200000b,50000s
<<C:/Miktex64/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on test.pdf (1 page, 13591 bytes).

PDF statistics: 10 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

Best Answer

Unlike pdflatex lualatex doesn't trigger the tfm generation from a mf-source if it can't find the tfm (this is not miktex specific: it doesn't do it in texlive either, but there bbold10.tfm exist in the main tree while miktex installs only the mf-sources).

So in miktex one has to first call pdflatex which triggers the creation of the tfm and can then use them with lualatex.

Related Question