khaledhosny / luaotfload

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

Color feature seems somehow broken #9

Closed wspr closed 14 years ago

wspr commented 14 years ago

I swear this was working yesterday:

\documentclass{article}
\usepackage{luaotfload}
\begin{document}
\font\1="file:texgyretermes-regular.otf:color=559922" at 12pt\1 foo
\end{document}

Today I get

error: ...ibrary/texmf/tex/luatex/luaotfload/otfl-font-clr.lua:49: attempt to 
get length of local 'hex' (a number value)
.

\newpage ...erypar {}\fi \par \vfil \penalty -\@M 

l.10 \end{document}
wspr commented 14 years ago

Different colours work. The closest I can get is AA9922; any lower in the red reproduces the error. (Font doesn't seem to make a difference.)

khaledhosny commented 14 years ago

Any color mad of numbers only would trigger this, because I was assuming the value will always be a string.

khaledhosny commented 14 years ago

Explicitely convert color value to string

Closed by d2b32f51a324046b00757cf6a5e0e8b1b73327ff