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.Diagnostics;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using static bsmd.database.Message;
|
using static bsmd.database.Message;
|
||||||
|
using PdfSharp.Fonts;
|
||||||
|
|
||||||
namespace ENI2.DetailViewControls
|
namespace ENI2.DetailViewControls
|
||||||
{
|
{
|
||||||
@ -574,7 +575,13 @@ namespace ENI2.DetailViewControls
|
|||||||
if (sfd.ShowDialog() ?? false)
|
if (sfd.ShowDialog() ?? false)
|
||||||
{
|
{
|
||||||
Util.UIHelper.SetBusyState();
|
Util.UIHelper.SetBusyState();
|
||||||
ReportManager rm = new ReportManager();
|
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
|
// create PDF from message classes
|
||||||
if (rm.Create(sfd.FileName, this.Core, sicd.SelectedClasses, out string importResultText))
|
if (rm.Create(sfd.FileName, this.Core, sicd.SelectedClasses, out string importResultText))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user