[lltx] debugging when luaotfload can't find fonts

Will Robertson wspr81 at gmail.com
Sun Sep 26 18:06:52 CEST 2010


Hi,

I'm having trouble loading fonts and I don't know how to debug the problem.

My otfl-names.lua cache contains, for example,

>   {
>    ["familyname"]="XB Zar",
>    ["filename"]={ "/Users/will/Library/Fonts/XB Zar/XB Zar.ttf", false },
>    ["fontname"]="XBZar",
>    ["fullname"]="XB Zar",
>    ["names"]={
>     ["family"]="XB Zar",
>     ["fullname"]="XB Zar",
>     ["psname"]="XBZar",
>     ["subfamily"]="Regular",
>    },
>    ["size"]={},
>    ["slant"]=0,
>    ["weight"]=400,
>    ["width"]=5,
>   },


and yet when I run

> \documentclass{article}
> \usepackage{fontspec}
> \begin{document}
>   \huge
>   \fontspec[Script=Arabic,Numbers=Arabic]{XB Zar}
>   test
> \end{document}


I get the following:

> luaotfload | Font names database loaded: /Users/will/Library/texlive/2010/texmf
> -var/luatex-cache/generic/names/otfl-names.lua(load: /Users/will/Library/texliv
> e/2010/texmf-var/luatex-cache/generic/fonts/otf/temp-xb-zar.lua)(load: /Users/w
> ill/Library/texlive/2010/texmf-var/luatex-cache/generic/fonts/otf/temp-xb-zar-b
> d.lua)(load: /Users/will/Library/texlive/2010/texmf-var/luatex-cache/generic/fo
> nts/otf/temp-xb-zar-it.lua)(load: /Users/will/Library/texlive/2010/texmf-var/lu
> atex-cache/generic/fonts/otf/temp-xb-zar-bdit.lua) [1{/usr/local/texlive/2010/t
> exmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )
>  276 words of node memory still in use:
>    2 hlist, 1 vlist, 1 rule, 2 glue, 3 attribute, 40 glue_spec, 3 attribute_lis
> t, 1 write nodes
>    avail lists: 2:22,3:5,4:26,6:27,7:2,9:7
> </Users/will/Library/texmf/fonts/opentype/public/lm/lmroman10-regular.otf>
> !LuaTeX error: cannot find OpenType font file for reading
>  ==> Fatal error occurred, no output PDF file produced!


What's going wrong here? Could this error messages be a little more clear?

-- Will




More information about the lualatex-dev mailing list