views:

39

answers:

0

When a WPF applications starts, it has some standard settings that are applied to determine how text and numbers will look. Is there any way for me to change these default settings programatically?

For instance, the FontNumeralAlignment documentation on MSDN states that a value of "Normal" means that "Default numeral alignment is used". On my system this seems to default to FontNumeralAlignment.Proportional, I would like it to instead be FontNumeralAlignment.Tabular.

Background: WPF 4.0 OpenType support is broken on Windows 7 (see bug report on Microsoft Connect) and it is impossible to change numeral alignment on runs containing only numbers and punctuation. If I could at least change the application defaults to tabular, lining figures I would have a workaround.