From ee73026b90ee234dd6dad93314ed7065b8c97b50 Mon Sep 17 00:00:00 2001 From: "David P.G" Date: Fri, 3 Oct 2025 12:11:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E7=9A=84=E4=B8=AD=E6=96=87=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DMS.WPF/App.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DMS.WPF/App.xaml.cs b/DMS.WPF/App.xaml.cs index e5a335d..8b1e67b 100644 --- a/DMS.WPF/App.xaml.cs +++ b/DMS.WPF/App.xaml.cs @@ -33,11 +33,14 @@ using DMS.WPF.ViewModels; using DMS.WPF.ViewModels.Dialogs; using DMS.WPF.ViewModels.Items; using DMS.WPF.Views; +using LiveChartsCore; +using LiveChartsCore.SkiaSharpView; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using NLog; using NLog.Web; +using SkiaSharp; using SqlSugar; using ILogger = Microsoft.Extensions.Logging.ILogger; using LogLevel = Microsoft.Extensions.Logging.LogLevel; @@ -67,9 +70,11 @@ public partial class App : System.Windows.Application protected override async void OnStartup(StartupEventArgs e) { base.OnStartup(e); + LiveCharts.Configure(config => config.HasGlobalSKTypeface(SKFontManager.Default.MatchCharacter('汉'))); ShutdownMode = ShutdownMode.OnLastWindowClose; ThemeHelper.InitializeTheme(); await Host.StartAsync(); + try {