Print Preview, Zoom and font size?
-
Hello everybody! I hope that someone can help me with the strange problem that I have. I am printing the text on the page using DrawText function. The text is big enough so it may go across several pages. And the strange thing is that when I do Zoom in the Print Preview, size of the font changes so the boundary box of the resulting text is different for different zooms! And on the page itself it looks like different portion of the text is displayed per page for every zoom coefficient. I wonder if someone knows what is the catch here? Thanks in advance.
-
Hello everybody! I hope that someone can help me with the strange problem that I have. I am printing the text on the page using DrawText function. The text is big enough so it may go across several pages. And the strange thing is that when I do Zoom in the Print Preview, size of the font changes so the boundary box of the resulting text is different for different zooms! And on the page itself it looks like different portion of the text is displayed per page for every zoom coefficient. I wonder if someone knows what is the catch here? Thanks in advance.
-
Hello! Thanks for your suggestion. Unfortunately it will not work, because this behavior (as I found out later) is caused by bug (feature?!) in CPreviewDC implementation of the DrawText routine that I am using to output text. It does not take into account m_hAttribDC and uses only m_hDC for drawing - as a result for different zoom levels there are fonts of different height, selected into m_hDC -> size of the bounding box for DrawText veries. I do not know yet how to overcome this bug, but for sure this is not that easy...