I think that would not be anytime soon if ever. I also thought that size of font should not be in PdfFontMetrics but at least in PdfFont as metric of specific font is rather something constant. But I wanted to provide fix of thread-safety that can be used right now without much pain (until it will be eventually fixed by better design). Also it is thing of opinion whether for example size of font should be in font itself or painter. For example pango has object called "font description" which defines family, style, weight and size of font and "layout" object where are attributes like color, underline, strikeout and other attributes, and text to draw, then this layout can be "painted".
On Fri, Nov 16, 2018 at 7:13 PM Francesco Pretto <[email protected]> wrote: > I'm not responsible for this, but I would not fix this issue the way > you're doing, as it's just a a workaround of the real issue: PdfFont > is stateful and it should not be. I would recommend you to use the fix > for your local copy of PoDoFo, but mainstream should have better > solution, at the cost of breaking the API and of course it's a much > more invasive change. > > On Fri, 16 Nov 2018 at 18:26, Michal Sudolsky <[email protected]> wrote: > > > > Discard previous diff. I hope final fix but someone should check it. > > > > >
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
