Well, correct me if I'm wrong but I don't think that's correct approach. I want to always print at HighResolution regardless of size of that what I'm printing.
Well, correct me if I'm wrong but I don't think that's correct approach. I want to always print at HighResolution regardless of size of that what I'm printing.
So print at high resolution, I'm not stopping you from doing that - you have three parameters, the resolution of the printer, resolution of the screen and size of the font. Find a combination of the three that works for you. Do you want us to take a calculator and calculate it for you or is there some other thing you are asking us to do?
OK. Now. I want to print at 300 DPI, my screen resolution is what it is - fixed. Now I have to set font size so, that I get proper size, when I print on paper. I am only wondering, why does not zoomOut() function of QTextEdit work, so I can have proper font size for printing and proper size on screen (zoomed out) too.
Probably because zoomOut() is no-op when the effective point size becomes negative (since the default font size is probably somewhere around 9, if you substract 10 it becomes -1). Note that calling zoomOut() is effectively identical to calling setFont() with a fixed font size which is bound to give the effect other than you want if someone has a different printer or a different system font which is what you opted to avoid at the beginning of this thread.
Bookmarks