[luatex] Font not appearing in font.fonts table

Yannis Haralambous yannis.haralambous at telecom-bretagne.eu
Wed Sep 28 12:12:44 CEST 2011

Hello everybody,
I'm trying to find out how font loading works, so that I can implement the zebrackets package into luatex.
The following code:

\setmainfont{Latin Modern Roman}

\directlua{for i=1,1000,1 do
if font.fonts[i] == nil then
%texio.write_nl("XXX ERROR")
if (font.fonts[i].name == nil) then
texio.write_nl(tostring(i) .. ": " .. tostring(font.fonts[i]))
texio.write_nl(tostring(i) .. ": " .. font.fonts[i].name)

produces a list of all elements of table font.fonts. Here is what I get:

1: cmex10
2: line10
3: linew10
4: lcircle10
5: lcirclew10
6: cmr5
7: cmr7
8: cmr10
9: cmmi5
10: cmmi7
11: cmmi10
12: cmsy5
13: cmsy7
14: cmsy10
15: cmr10
16: file:lmroman10-regular:script=latn;+trep;+tlig;
17: file:lmromanslant10-regular:script=latn;+trep;+tlig;
18: file:lmroman10-italic:script=latn;+trep;+tlig;
19: file:lmroman10-bold:script=latn;+trep;+tlig;
20: file:lmsans10-regular:script=latn;+trep;+tlig;
21: name:LatinModernRoman
22: name:LatinModernRoman/B
23: name:LatinModernRoman/I
24: name:LatinModernRoman/BI
25: name:LatinModernRoman:mode=node;script=latn;language=DFLT;+tlig;+trep;
26: name:LatinModernRoman:mode=node;script=latn;language=DFLT;+tlig;+trep;
27: name:LatinModernRoman/I:mode=node;script=latn;language=DFLT;+tlig;+trep;
[1{/hom/yannis/texmf/config/pdftex.map}] (./luatex-test2.aux) )
 285 words of node memory still in use:
   3 hlist, 1 vlist, 1 rule, 2 glue, 3 attribute, 40 glue_spec, 3 attribute_lis
t, 1 write nodes
   avail lists: 2:40,3:2,4:27,5:1,6:14,7:1,9:8

Fonts 1-15 are the preloaded ones (by lualatex), fonts 16-20 are the files and 21-27 the names of fonts loaded by the
fontspec package for the font family Latin Modern Roman.

What I don't understand (and maybe you can enlighten me) is why the font lmroman7-italic does not appear
in the font.fonts table? 

You can notice that I ask for a printout of the font.fonts table *after* having used that font, and that font indeed
appears in the luatex log. But how come it is not in the font.fonts list although it has been used already?
(I have even added an additional page with text and placed the \directlua command at the very end, the font
still doesn't appear in the list…)

thanks in advance for any hint

Yannis Haralambous
Directeur d'études
Institut Télécom, Télécom Bretagne
Département Informatique
Technopôle Brest Iroise
CS 83818, 29238 Brest Cedex 3, France
Tel: +33 2 29 00 14 27
Fax: +33 2 29 00 12 82
Email: yannis.haralambous at telecom-bretagne.eu
Internet: http://omega.enstb.org/yannis
ICBM address: 48°21'31.57"N 4°34'16.76"W
Twitter: y_haralambous
...pour distinguer l'extérieur d'un aquarium,
mieux vaut n'être pas poisson

...the ball I threw while playing in the park
has not yet reached the ground

Es gab eine Zeit, wo ich nur ungern über Schubert sprechen,
nur Nächtens den Bäumen und Sternen von ihm vorerzählen mögen.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Yannis Haralambous.vcf
Type: text/directory
Size: 508 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20110928/b30baff9/attachment.bin>
-------------- next part --------------

More information about the luatex mailing list