On 29.06.2012 16:30, Ben Bucksch wrote:
I just want my page to use the full printer resolution, I want 4920
CSS pixel width for a printed DIN A4 page, that's all. That must be
possible.
From what I understand, we just need to add the CSS rule and let
nsDeviceContext::SetDPI()
http://mxr.mozilla.org/comm-central/source/mozilla/gfx/src/nsDeviceContext.cpp#281
use it, correct?
I tried that now, changing above function to use pref "layout.css.api" =
600 even for print. A printf() confirms that it's invoked and indeed
always 600 dpi with 1 device pixel per CSS pixel, even when I click "Print".
Yet, the page still renders with web resolution.
What am I missing?
Ben
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout