Hi, During this week I have finished bitmap plotting: - embedding png and jpeg bitmaps in pdf files - adding other types of images as a rgb pixmap + extracting the alpha channel into a soft mask, to make transparency work - adding tiled bitmaps (executing the same image a given number of times) I also changed the formatting of my code a little, as it was requested by some of you - thanks for all your feedback in this field. My former programming experience was mainly quite unorganized and I'd like myself to improve and learn something also in such categories as coding style.
In terms of stuff other than code I have studied a lot the pdf specs (to find out how the softmask should work and how supporting unicode could be done), the part of NetSurf responsible for the layout of the web pages - to prepare myself for making it work for paged output - and a lot of Haru sources (for the smask, embedding images and to get some idea of making it a little more error-safe). For the following week I plan to make the output in pages work - that is: - adjust the width of the content to the width of the page, not keeping it at window-width, and - make the pdf-plotting output the whole document, not just the first page - get some idea of how to fix the problems that are reported for the current riscos printing (as single lines of text being split horizontally on the edge of pages) Now I see some ways of coding it : 1)re-layouting the current content with blocked window redrawing for a moment - or with a dummy one, that would show something like a "screenshot" of the content displayed when the pdf export started - something similar to the one done now in the riscos version 2) copying the whole content and working on it as if it were the same site opened in another window 3) (not sure if it isn't the same as 2) making a new content with a copy of the layout related stuff, but where possible with members shared with the original content (same pointers in the struct) - I found that talloc has means to handle adding more 'parent' elements of a struct, so this could be also doable quite easy By now - 1) has been complained about (in context of the riscos' implementation) 2) would be the easiest one 3) would allow us to save some memory by not doubling some data (I'm not sure yet if it would be any interesting amount or if it's just me who hasn't found it already working for the same site opened in many windows) Also, I want to get a little more into error reporting and type checking in Haru to improve my changes and make them "submittable" and send them as patches to Haru. Because I have some personal stuff to handle until Tuesday (I'm moving to another place), I think I will move reporting my next week to the end of the next Sunday(the 15th), so I can accomplish my goals. Hope, that this is not a problem for you. Adam PS. One more good news - there is one guy who has reported that he started working on unicode for Haru :d
