public Size Measure(FormattedText formattedText) { if (formattedText.Text == null) { return(Size.Empty); } var ft = formattedText.ToWpf(); return(new Size(ft.Width, ft.Height)); }
public Size Measure(FormattedText formattedText) { if (formattedText.Text == null) { return(Size.Empty); } var ft = formattedText.ToWpf(); return(new Size(ft.WidthIncludingTrailingWhitespace, ft.Height)); }