From 28b9552dcd0be18c32563f55fd461992ec122157 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Tue, 6 Jul 2021 21:10:57 +0200 Subject: [PATCH] fix font bug --- .../QuickLook.Plugin.TextViewer/TextViewerPanel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.cs b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.cs index e93a246..5d706e0 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.cs @@ -72,7 +72,8 @@ namespace QuickLook.Plugin.TextViewer PreviewMouseWheel += Viewer_MouseWheel; - FontFamily = new FontFamily(TranslationHelper.Get("Editor_FontFamily")); + FontFamily = new FontFamily(TranslationHelper.Get("Editor_FontFamily", + domain: Assembly.GetExecutingAssembly().GetName().Name)); TextArea.TextView.ElementGenerators.Add(new TruncateLongLines());