Is it possible to control style of digits for a given font? In the following example 2nd, 3rd and 4th lines print old style digits. How to get linear digits for these fonts?
Style["abcxyz=0.123456789"]
Style["abcxyz=0.123456789", FontFamily -> "Cambria"]
Style["abcxyz=0.123456789", FontFamily -> "Constantia"]
Style["abcxyz=0.123456789", FontFamily -> "Corbel"]
Note that the fonts used in this example come with Microsoft Windows.
UPFATE: As indicated by Mr. Wizard, a solution is given in Accessing figure style (oldstyle or lining) of TrueType fonts .
But actually I want to use fonts with default OldStyle digits (e.g. Consolas or Corbel) for Ticks in Plot and similar routimes but I need Lining digits in the ticks instead of OldStyle. How to do that?
Style["₀₁₂₃₄₅₆₇₈₉", FontFamily -> "Constantia", FontSize -> 24]
(I am not sure how that will appear here.) If you feel that your question is substantively different from the question linked above please edit it to clarify how it is so; otherwise I shall mark it as a duplicate. On a personal note: Mathematica is sadly lacking in advanced typesetting controls; you are better off using $\LaTeX$ for such things IMHO. $\endgroup$