Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load type 'System.drawing.text.InstalledFontCollection' from assembly 'System.Drawing', Version=4.0.0.0,culture=neutral, publickeytoken= b03f5f7f11d50a3a #181

Open
mycodings22 opened this issue Nov 24, 2020 · 1 comment

Comments

@mycodings22
Copy link

var families = new InstalledFontCollection();

I'm using .net core 2.0. I have installed pdfsharp and htmlrendererSharp latest versions. Exactly at the pdfGenerator.GeneratePdf() method it is throwing an exception. When I debugged the code, In pdfsharp adapter InstalledFontCollection is not being recognized. I tried install system.drawing.common through nuget but didn't work. But after installing System.Drawing.Common, I could initialize InstalledFontCollection(create an object) class in my class file. Could you able to tweak the code so that I can send my InstalledFontCollection Class as a parameter or Could you please fix the issue for the developers who are using .net Version Core 2.0.

@AlizerUncaged
Copy link

looks like this library does not support .net core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants