Hi, I see in previous versions of MigraDoc that there was the MigraDoc.DocumentObjectModel.TextMeasurement class to be able to use the MigraDoc font to measure string sizes. This doesn't appear to exist anymore, and I can't find the equivalent version (if one exists). I see that PDFsharp has XGraphics.CreateMeasurementContext, so I was wondering if I could somehow use that to measure strings instead (specifically, how do I get the underlying XFont that MigraDoc is using). The use case is that I'm trying to display a table with a lot of columns, and I'd like to dynamically change the font size to not have overflow. The built in wrapping is nice, but some values can't be wrapped.
|