Problem printing text with wxWidgets 3.2.2.1
Fulvio Senore <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
I have recently upgraded a large program from wxWindgets 3.1.1 to 3.2.2.1. As usual I had a couple of problems caused by unexpected changes, but I was able ti fix them. I still have another problem and I really don't know how to fix it. The program needs to print text. This is a wxWidgets area that is not clear to me, but many years ago I was able to write some code that was able to print, for example, a 10 points font at 10 points size so I was happy. After the upgrade to 3.2.2.1, under Windows (I don't know for other platforms), if the screen text size is set to more that 100%, the program prints text smaller than the right size. The size reduction the inverse of the selected screen text increase. If I create a pdf with wxPdfDocument::wxPdfDC the text is still printed at the correct size. It looks like the wxDC draws the text smaller than in previous versions, but it seems that it is not a matter of global scale: if I print a form made by many small boxes with text inside them, the boxes are still drawn at the correct size and text is drawn at the correct position. Simply the text inside the boxed is smaller. Does anybody have a suggestion to fix this problem? Thanks in advance. Fulvio Senore -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/9e882fc4-6746-d013-f825-4609a9dd436c%40fsoft.it.