title: can I use PdfSharpCore with .net maui
body: <p>I am trying to use PdfSharpCore and MigraDocCore to create a pdf file in .net maui with vs pre 2022</p>
  <p>this is my code</p>
  <pre><code>using System;
  using System.Diagnostics;
  using System.Windows.Input;
  using MigraDocCore.DocumentObjectModel;
  using MigraDocCore.Rendering;
  using PdfKit;
  using PdfSharpCore;
  using PdfSharpCore.Drawing;
  using PdfSharpCore.Pdf;
  
  private void CreatePdf()
          {           System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
  
              PdfSharpCore.Pdf.PdfDocument document = new PdfSharpCore.Pdf.PdfDocument();
  
              PdfSharpCore.Pdf.PdfPage page = document.AddPage();
  
              PdfSharpCore.Drawing.XGraphics gfx = XGraphics.FromPdfPage(page);
              gfx.MUH = PdfFontEncoding.Unicode;
  
              var ren = new PdfDocumentRenderer(true);
  
              XFont font = new XFont(&quot;OpenSans-Semibold&quot;, 20, XFontStyle.Bold);
  
              gfx.DrawString(&quot;Hello, World!&quot;, font, XBrushes.Black, new XRect(0, 0, page.Width, page.Height));
              }
  </code></pre>
  <p>but I have an error with XFont</p>
  <pre><code>static void Main(string[] args)
      {
          // if you want to use a different Application Delegate class      from &quot;AppDelegate&quot;
          // you can specify it here.
          UIApplication.Main(args, null, typeof(AppDelegate));
      }
  </code></pre>