PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

NotImplementedException: FontResolver not implemented for this platform - MAUI / iOS.

Open UsherNet opened this issue 1 month ago • 0 comments

After updating to latest version as part of my upgrade to .net 10 MAUI, I now receive an exception NotImplementedException: FontResolver not implemented for this platform (PdfSharpCore.Utils.FontResolver.cs). The frustration is that previous version was working fine. No issue when running on Android.

I already had a font resolver in my code (not being used), so I then tried:

if (GlobalFontSettings.FontResolver == null) GlobalFontSettings.FontResolver = new FileFontResolver();

however, as soon as it tried the null check it throws the error.

Interestingly, just using the setter (no null check)

GlobalFontSettings.FontResolver = new FileFontResolver();

and everything is working fine.

UsherNet avatar Nov 26 '25 00:11 UsherNet