Specify if overflow is allowed, when true the Height of the XRect is ignored and all text is placed
Specify a custom line height, overriding the height detected from the font
Calculate the bounding box of the text after layout (not exposed)
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.
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.