ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.08k stars 237 forks source link

feat(TextFormatter): Support vertical alignment, overflow, line height #408

Closed steeltomato closed 10 months ago

steeltomato commented 1 year ago

Enhances the XTextFormatter class to...

Additionally, this seemed like a good opportunity to introduce some sort of unit testing and settled on visual facts. I created these on OSX and suspect they may not match across all platforms due to font anti-aliasing. Putting this out for initial feedback and will do some further testing when I have chance.

This introduces a dependency in Magick.NET within the .Test project to perform the visual diff. If differences are found, the test helper will output a _diff.png file to aid in assessing the change.

ststeiger commented 10 months ago

Merged.