khaledhosny / luaotfload

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

Numerical selection of "salt" (etc.) feature #16

Closed wspr closed 14 years ago

wspr commented 14 years ago

Several OpenType font features allow numerical selection, such as salt:

\documentclass{article}
\usepackage{luaotfload}
\begin{document}
\font\1="Linux Libertine"\1 \& h
\font\2="Linux Libertine:+salt=0"\2 \& h
\end{document}

This works correctly in XeTeX but not with luaotfload. If you remove the =0 then it does work, but you wouldn't be able to load any of the alternatives (with =1, =2, etc.). Also see the nalt feature which behaves analogously, with example in the fontspec manual "Annotation forms for OpenType fonts".

khaledhosny commented 14 years ago

It should be: \font\2="Linux Libertine:salt=0"\2 & h Without the +, this seems to be incompatible with xetex syntax. I'll see if I can fix it, else fontspec has to be adapted in the mean time.

khaledhosny commented 14 years ago

Support keys prefixed by "+"

Key/value features prefixed by a plus sign now work, closed by ab0debed28f4b7b30f96e554062f43cd8599a84f. Needs a more thoroughly testing, as it might break other feature assignments.