There’s a shape with some text in the attached file. When I remove the text and it’s formatting and add it back, it gets messed up in the saved file. Precisely, character spacing gets set to 0.
The way my application works is if there’s no formatting difference between the first and the second text, it applies the same formatting values from the first char to the second char. But if you read font scale values of the first char, you’ll get: -1.7976931348623157E308 which forces text to shrink.
According to your previous post, the value should be 1, as the first text has character spacing of 100% when you check it in MS Visio.
We managed to replicate the problem of incorrect retrieval of the font scale value. It has been logged under the ticket ID DIAGRAMJAVA-50594 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.