khaledhosny / luaotfload

Moved to https://github.com/latex3/luaotfload
23 stars 15 forks source link

Autoselecting bold/italic sometimes fails #13

Closed wspr closed 14 years ago

wspr commented 14 years ago

I get a problem on

\documentclass{article}
\usepackage{fontspec}
\begin{document}
\font\1={XITS Math/B}\1
text
\end{document}

with

./test.tex:12: Font \1=XITS Math/B not loadable: metric data not found or bad.

This should never happen (and usually doesn't); fonts loaded with /B should fall back on the original font.

Also, it looks at the font name database when this is happening, which shouldn't be necessary.

khaledhosny commented 14 years ago

Fallback to regular

If the requested style is not found, fallback to regular. I think this broke in commit b9d377647240804d7d85429a18e1bdf0ff00823c

closed by 54d2c5f1f4e5aaccadf4f4af472a497cab9645c8