My fonts of choice usually default to text figures

which is one reason I like them. However, for tables or headings I'd like to specify that lining figures should be used:

Is there a way to do so in CSS?
(To appease the search:
- old-style numerals, text figures, non-lining figures, medieval numerals
- lining numerals, titling figures)