If I set the font for a Windows::UI::Xaml::Controls::TextBox
using the following line of code:
textBox->FontFamily = ref new Windows::UI::Xaml::Media::FontFamily("Arial");
on the x86 Simulator, I get a TextBox with the Arial font. Great.
If I execute that same line of code on my Surface RT device, I get a TextBox with the Arial Narrow font. Not so great.
I checked my device to ensure the Arial font is installed. It is. On my device, I started up WORD and started composing in Arial and my characters were indeed Arial (not Arial Narrow) characters. Is there some trick I should know to get my TextBox to use the Arial font? For what its worth I tried fooling around with the FontStretch
property but it had no effect at all.
do it in xaml.
i mean.
or create a resurce:
although the properties assigned directly to the object override the global style