diff options
author | Mike Krüger <mikkrg@microsoft.com> | 2019-07-30 15:54:39 +0300 |
---|---|---|
committer | Vsevolod Kukol <sevoku@microsoft.com> | 2019-10-16 08:51:56 +0300 |
commit | c1d360239e2cc4022ee0fd2f4e106f8eb43ab04c (patch) | |
tree | 094e7a1bd64693cbb15901fdfd90c627aa77f10d /main/src/addins/MonoDevelop.Refactoring | |
parent | af6c3d148951cc27a214b38a52da893a9d8219d2 (diff) |
[Ide] Switched IDE font handling to xwt.
Diffstat (limited to 'main/src/addins/MonoDevelop.Refactoring')
-rw-r--r-- | main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringPreviewTooltipWindow.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringPreviewTooltipWindow.cs b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringPreviewTooltipWindow.cs index cdeb62ef83..dc47f8d3d7 100644 --- a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringPreviewTooltipWindow.cs +++ b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringPreviewTooltipWindow.cs @@ -40,6 +40,7 @@ using Pango; using MonoDevelop.Ide.Editor.Highlighting; using Gdk; using MonoDevelop.Ide.TypeSystem; +using MonoDevelop.Ide.Fonts; namespace MonoDevelop.Refactoring { @@ -64,7 +65,8 @@ namespace MonoDevelop.Refactoring this.codeAction = codeAction; TransientFor = IdeApp.Workbench.RootWindow; - if (IdeServices.FontService.TryParsePangoFont (DefaultSourceEditorOptions.Instance.FontName, out fontDescription)) { + if (IdeServices.FontService.TryGetFont (DefaultSourceEditorOptions.Instance.FontName, out var font)) { + fontDescription = font.ToPangoFont (); fontDescription.Size = (int)(fontDescription.Size * 0.8f); } else { LoggingService.LogError ("Error loading font : " + DefaultSourceEditorOptions.Instance.FontName); |