We have been using Diagram Studio for a long time and a large number of our diagrams are held in a database in the older "text" format.
Now that we have updated the package to Delphi 12 and Diagram Studio v4.32 we are seeing text scaling problems when the old diagram is loaded if the Text Scaling factor of Windows is not 100%.
I can see this has been mentioned previously, but perhaps not tackled for importing older file formats?
If it makes any difference we use LoadFromStream() to read the diagram from the database but I've generated an example file to make it easier to demonstrate the problem. TMS Diagram Scaling.zip (233.5 KB)
I've discovered a work around which appears to initialize the Diagram editor and forces good behaviour when loading older drawings...
After the editor has been created, first load the attached empty drawing, then any old drawings loaded after this will have consistent text scaling irrespective of the current screen scaling.
Thank you for the feedback. This is really a complicated issue, and it shows that you have to know how the previous diagram was saved for it to be properly loaded. Old Diagram Studio file formats were not DPI-aware, and thus missing information.
The difference between your regular old .dgr and this init.dgr is that the former has information about the font used, while the previous one had not, so it uses the default diagram font size, which is inherited from the form, which is bigger in high-dpi forms.