Typeface typeface = new Typeface(txtTest.FontFamily, txtTest.FontStyle, txtTest.FontWeight, txtTest.FontStretch);
double len = MeasureString("テスト", txtTest.FontSize, typeface).Width;
///
/// 表示文字幅を取得する
///
///
///
///
/// 表示文字サイズ
private Size MeasureString(string text, double fontSize, Typeface typeface)
{
var ft = new FormattedText(text, System.Globalization.CultureInfo.CurrentCulture,
FlowDirection.LeftToRight,
typeface, fontSize, Brushes.White);
return new Size(ft.Width, ft.Height);
}