haplokuon / netDxf

.net dxf Reader-Writer
MIT License
981 stars 400 forks source link

Allow zero width #360

Closed chr-schubert closed 2 years ago

chr-schubert commented 2 years ago

Here is another change I had to make to be able to read a wide range of dxf files. The text width turned out to be zero and it's text alignment was set to fit and the two alignment points coincide - which seems odd. I am not sure whether this is the correct way to address this problem, as I am everything but an AutoCad expert.

haplokuon commented 2 years ago

If you have a problem loading a DXF open an issue, make a description, and upload a sample file; instead of making a pull request.

The Width value is only applicable to text alignment Fit and Aligned. If I allow the width to be zero the rotation will be lost. This kind of out of range issues should be fixed while reading the file.