Browse Source

Use correct font size in width calculation

pull/1654/head
Siegfried Pammer 6 years ago
parent
commit
24f51d1bf2
  1. 1
      ILSpy/TextView/XmlDocRenderer.cs

1
ILSpy/TextView/XmlDocRenderer.cs

@ -114,6 +114,7 @@ namespace ICSharpCode.ILSpy.TextView @@ -114,6 +114,7 @@ namespace ICSharpCode.ILSpy.TextView
// Paragraph sadly does not support TextWrapping.NoWrap
var text = new TextBlock {
FontFamily = GetCodeFont(),
FontSize = DisplaySettingsPanel.CurrentDisplaySettings.SelectedFontSize,
TextAlignment = TextAlignment.Left
};
text.Inlines.AddRange(richText.CreateRuns(document));

Loading…
Cancel
Save