In message <200806212035.11831.adamblokus(a)gmail.com>
Adam Blokus <adamblokus(a)gmail.com> wrote:
Hi,
I am greatly disappointed with this week's work of mine.
He, don't be too hard for yourself ;-)
Although I finished
my idea of the fuzzy margins with visible effects ( you look how
http://www.netsurf-browser.org/documentation/guide is printed - a lot of text
breakings are fixed), I wasted a lot of time with figuring out the maths and
geometry (PDF files have the y-coordinate rising upwards and the (0,0) point
in the bottom-left corner of the page) - I made a lot of stupid errors while
coding it the first time. I'm in doubt, whether to use this method for the
top of pages too. The top of the page is the one more visible and the fuzzy
margins will probably make a more visible difference.
I'm probably too late with this idea but if the difference of coordinate
system is bothering you too much, why not make it the same by calling
HPDF_Page_Concat (you already do this for accounting the left margin) ?
I moved also some responsibility for margins etc. to the plotter
code, to make
printing less dependant on the way margins and page sizes are set.
For this week I plan to change the layouting for printed content, so that all
of it will be fit in the available width (the 'loose' layout that I wrote
about last week).
This is including teaching NetSurf layout code to take the text width
determined by the backend into account (as the fonts used in PDF output
do not necessarily have the same width as what the layout engine was
using) ?
John.
--
John Tytgat
joty(a)netsurf-browser.org