Hi,
I wanted to run by/suggest some ideas for getting oxyplot to work on mono.
Right now, the PDF generation fails in mono because PDFSharp uses the User32.dll file to get some binary information to embed in the PDF for the various fonts. Myself and others have tried to work around this by either 1) Embedding the font information ahead of time in the PDF assembly, or 2) Grabbing the information directly from the font files on the local machine in a platform specific way.
Unfortunately, it seems that the results are still not up to par... and the rendering is much better on windows. I think this might have to do with the GDI library in mono not behaving the same way as the windows one, but it's a pretty buried problem and I can't track it down.
I was thinking of investing more time in it, but it also seemed to me that perhaps just switching over to a different PDF generating library, such as iTextSharp, to do the rendering. It seems shapes are possible as in here:
http://www.mikesdotnetting.com/Article/88/iTextSharp-Drawing-shapes-and-Graphics
I wanted to ask if other people have attempted PDF rendering on Mono though, to see if they had any insights on the ease or feasibility of either:
1) Trying to switch to iTextSharp
2) Trying to get PDFSharp to render correctly.
3) Deciding the problem is too much work to invest in.
Does anyone have any thoughts or experience in how hard any of these might be? (hours/days??)
I wanted to run by/suggest some ideas for getting oxyplot to work on mono.
Right now, the PDF generation fails in mono because PDFSharp uses the User32.dll file to get some binary information to embed in the PDF for the various fonts. Myself and others have tried to work around this by either 1) Embedding the font information ahead of time in the PDF assembly, or 2) Grabbing the information directly from the font files on the local machine in a platform specific way.
Unfortunately, it seems that the results are still not up to par... and the rendering is much better on windows. I think this might have to do with the GDI library in mono not behaving the same way as the windows one, but it's a pretty buried problem and I can't track it down.
I was thinking of investing more time in it, but it also seemed to me that perhaps just switching over to a different PDF generating library, such as iTextSharp, to do the rendering. It seems shapes are possible as in here:
http://www.mikesdotnetting.com/Article/88/iTextSharp-Drawing-shapes-and-Graphics
I wanted to ask if other people have attempted PDF rendering on Mono though, to see if they had any insights on the ease or feasibility of either:
1) Trying to switch to iTextSharp
2) Trying to get PDFSharp to render correctly.
3) Deciding the problem is too much work to invest in.
Does anyone have any thoughts or experience in how hard any of these might be? (hours/days??)





