Bug 467848

Summary: Saving legacy Text blocks in nightly changes display size
Product: [Applications] krita Reporter: keyth_qcfx2 <keyth2363214>
Component: Tool/TextAssignee: wolthera <griffinvalley>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alvin, halla
Priority: NOR    
Version: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: original font size
benchmark file on 5.1.0
benchmark on load on nightly
benchmark on save on nightly with no edits

Description keyth_qcfx2 2023-03-27 09:27:51 UTC
SUMMARY
openning files in Krita krita-nightly-x64-5.2.0-prealpha-d722ed8729-setup will display text blocks much closer to the original size (the error is very small) but despite that if no change is made and you hit save with what you have the text will scale up or down on the document despite having the same font size


STEPS TO REPRODUCE
1. create a document in krita 5.0.0 or krita 5.1.0
2. create a text block in a vector layer
3. save KRA file
4. Open KRA file in the nightly build
5. Use text tool to open the editor but make no changes and hit SAVE

OBSERVED RESULT
Text block display size will shrink or scale up I think depending which version you saved the original file in despite the text having the same font size.

EXPECTED RESULT
Saving to display the same result as when I opened the editor because I did no changes to the text

SOFTWARE/OS VERSIONS
Windows: 10
Qt Version: 5.12

ADDITIONAL INFORMATION
this is somehow related to another bug when creating files in 5.0.0 and 5.1.0 as they also have size differences between them.
Comment 1 keyth_qcfx2 2023-03-27 09:28:13 UTC
Created attachment 157625 [details]
original font size
Comment 2 keyth_qcfx2 2023-03-27 09:28:45 UTC
Created attachment 157626 [details]
benchmark file on 5.1.0
Comment 3 keyth_qcfx2 2023-03-27 09:29:16 UTC
Created attachment 157627 [details]
benchmark on load on nightly
Comment 4 keyth_qcfx2 2023-03-27 09:29:44 UTC
Created attachment 157628 [details]
benchmark on save on nightly with no edits
Comment 5 Halla Rempt 2023-03-30 13:50:36 UTC
Wolthera, when you are back from your vacation, can you take a look? I haven't tried to reproduce this yet.
Comment 6 Alvin Wong 2023-07-22 08:10:25 UTC
I presume this is the same as bug 470782 and fixed.
Comment 7 Alvin Wong 2023-07-22 10:26:11 UTC

*** This bug has been marked as a duplicate of bug 470782 ***