Bugfix font-resolver new MigraDoc Version
This commit is contained in:
parent
e2f7ef1486
commit
57ed0b5b19
@ -21,6 +21,7 @@ using Microsoft.Win32;
|
||||
using System.Diagnostics;
|
||||
using System.ComponentModel;
|
||||
using static bsmd.database.Message;
|
||||
using PdfSharp.Fonts;
|
||||
|
||||
namespace ENI2.DetailViewControls
|
||||
{
|
||||
@ -576,6 +577,12 @@ namespace ENI2.DetailViewControls
|
||||
Util.UIHelper.SetBusyState();
|
||||
ReportManager rm = new ReportManager();
|
||||
|
||||
// TODO!!
|
||||
// https://docs.pdfsharp.net/PDFsharp/Topics/Fonts/Font-Resolving.html
|
||||
// https://docs.pdfsharp.net/MigraDoc/DOM/Document/MigraDocSettings.html
|
||||
GlobalFontSettings.UseWindowsFontsUnderWindows = true;
|
||||
GlobalFontSettings.UseWindowsFontsUnderWsl2 = true;
|
||||
|
||||
// create PDF from message classes
|
||||
if (rm.Create(sfd.FileName, this.Core, sicd.SelectedClasses, out string importResultText))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user