khaledhosny / luaotfload

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

Cannot load fonts with an absolute path #10

Closed wspr closed 14 years ago

wspr commented 14 years ago

I can't load fonts which are specified with an absolute path.

\documentclass{article}
\usepackage{luaotfload}
\begin{document}
\font\1=file:/usr/local/texlive/2009/texmf-dist/fonts/opentype/public/tex-gyre/texgyrepagella-regular.otf at 10pt \1 foo
\end{document}

Fonts specified in this way (e.g., starting with / or [A-Z]:// or whatever it should be in Windows) shouldn't need to consult the font names database at all.

khaledhosny commented 14 years ago

Fix loading fonts with absolute path

Also, as a side effect, fixes loading Windows paths starting with drive letter.

closed by b4d1df9e054a2082ea85dabaf5082f4cc548cdb8