I'm using the Junicode typeface with the fontspec package, and I've set OldStyle numerals as the default. The OS numerals work fine, but if I try to switch to lining numbers in the middle of the text, they won't print, and instead LaTeX defaults to oldstyle. I get the following warning message:
Package fontspec Warning: OpenType feature 'Numbers=Uppercase' (lnum) not available for font 'Junicode' with script 'CustomDefault' and language 'Default'.
However, according to Junicode's documentation, it does have both lining numbers and oldstyle. So I'm not sure why LaTeX can't find it.
Here's a MWE:
\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{Junicode}[Numbers=OldStyle]
\begin{document}
123456789
\liningnums{123456789}
\addfontfeature{Numbers=Lining} 123456789
\end{document}
Which in prints the following:
How can I switch to lining numbers with Junicode and fontespec? I'm using LuaLaTeX, by the way.