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:

\documentclass{article}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Latin Modern Roman}
\begin{document}

\fontsize{7}{7}\selectfont\emph{blabla}
\directlua{for i=1,1000,1 do
if font.fonts[i] == nil then
%texio.write_nl("XXX ERROR")
else
if (font.fonts[i].name == nil) then
texio.write_nl(tostring(i) .. ": " .. tostring(font.fonts[i]))
else 
texio.write_nl(tostring(i) .. ": " .. font.fonts[i].name)
end
end
end
}
\end{document}

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
</usr/local/texlive/2011/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.
otf></usr/local/texlive/2011/texmf-dist/fonts/opentype/public/lm/lmroman7-itali
c.otf>


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
-- 
-------------------------------------------------------
Yannis Haralambous
Directeur d'études
Institut Télécom, Télécom Bretagne
Département Informatique
UMR CNRS 3192 Lab-STICC
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: [email protected]
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.

BEGIN:VCARD
VERSION:3.0
N:Haralambous;Yannis;;;
FN:Yannis Haralambous
ORG:Enseignant-chercheur\, TELECOM Bretagne;
EMAIL;type=INTERNET;type=WORK;type=pref:[email protected]
TEL;type=WORK;type=pref:+33 229001427
TEL;type=CELL:+33 607981626
TEL;type=WORK;type=FAX:+33 229001282
item1.ADR;type=WORK;type=pref:;;Département Informatique\, TELECOM Bretagne\, CS 83818;Brest Cedex 3;;29238;France
item1.X-ABADR:fr
X-ABUID:CD3E6B27-C13F-40A4-B2F7-8393D5CE6493\:ABPerson
END:VCARD


Reply via email to