empira / PDFsharp-1.5

A .NET library for processing PDF
MIT License
1.28k stars 588 forks source link

XUnit should be universally used #113

Closed gdennie closed 1 year ago

gdennie commented 4 years ago

Just started to use this library and was surprise to see a messy treatment of units of measure of plain floats and integers with no clear indication of whether they are points, cm, inches, etc. as one might expected from a graphics package. Additionally, a translator object, PdfSharp.Drawing.XUnit does exists but is not relied upon or extensive, missing emSize for instance.

Why not have all units simply expect XUnit where that object's FromXXX constructors and XXX properties can be expanded and thereby eliminate this current lack of clarity to us novices.