https://bugs.winehq.org/show_bug.cgi?id=55852
--- Comment #6 from kadlecf@fzu.cz --- (In reply to Bernhard Übelacker from comment #5)
I could reproduce the issue with notepad with the following steps:
- Create fresh wineprefix
- Start notepad once, enter some text, print to the cups PDF printer. This creates a PDF with the entered text and the page footer.
- Close notepad. This stores a value iPointSize=0x5a to the registry.
- Start notepad a second time. This reads the iPointSize=0x5a from registry. Unfortunately the main window is not yet created, therefore GetDpiForWindow returns 0, which makes Globals.lfFont.lfHeight being 0 too.
- Entering some text now and printing to the cups PDF printer produces now just a PDF containing one empty page.
For this issue I created this MR: https://gitlab.winehq.org/wine/wine/-/merge_requests/4442
But this should not affect other "custom applications", except if they query the notepad configuration.
Thank you for confirming the behavior of notepad I noticed. Obviously, you are right that this can hardly affect other applications, so I think that this bug issue can be closed. In the meantime, an inquiry into the reasons of my printing problems has shown other problems in the code which do not seem quite easy to pinpoint yet. If I am able to advance further, I will file another bug report.