ststeiger / PdfSharpCore

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

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

Closed steeltomato closed 6 months ago

steeltomato commented 8 months 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 6 months ago

Merged.