Possible Duplicate:
Lining numbers not working in certain fonts
In the following example, the line with an exclamation sign should be in oldstyle figures:
\documentclass[12pt]{article}
\usepackage{fontspec}
\renewcommand*\oldstylenums[1]{{\addfontfeature{Numbers=OldStyle}#1}}
\begin{document}
\Large
{\fontspec[Numbers=Lining]{LinBiolinum_R.otf}
1234567890
\oldstylenums{1234567890}}
{\fontspec[Numbers=OldStyle]{LinBiolinum_R.otf}
1234567890
\oldstylenums{1234567890}}
{\fontspec[Numbers=Lining]{LinLibertine_R.otf}
1234567890
\oldstylenums{1234567890} !}
{\fontspec[Numbers=OldStyle]{LinLibertine_R.otf}
1234567890
\oldstylenums{1234567890}}
\end{document}
Why isn't it? Biolinum is a companion sans font and the definition of \oldstylenums works for it.
Numbers=OldStylesuccessfully overwriteNumbers=Liningfor Biolinum (as it should) but not for Libertine. Can you be satisfied with a solution usinglibertineotf(= Are you using Libertine/Biolinum in your whole document anway)? – Qrrbrbirlbel Nov 05 '12 at 03:38