Hi Rodrigo,
Sometimes the page text is not entirely wrapped to the browser window, resulting in lines extending off screen, which is a pain.
What do you mean by "resulting in lines extending off screen"? If you mean the Dillo viewport, that is probably caused by some missing CSS feature, which we should fix too, but shouldn't happen with CSS disabled.
Here is an example: https://news.ycombinator.com/item?id=40250573 Viewing the page in Dillo with CSS turned off, some of the text runs off the window and I have to scroll right to see it. With CSS turned on, the text is very small and impossible to read on my monitor (but now the offending lines fit on the window). In Firefox, the text appears correctly and is always wrapped to the window regardless of zoom level.
I think we should implement a zoom control, like on other browsers with Control + / Control -. Here is an issue on this topic:
https://github.com/dillo-browser/dillo/issues/21
I have a patch that implements it by adding a zoom factor that changes with Ctrl + and Ctrl -, but it doesn't work well in some cases. Notice that the font_factor is not the same as "zooming" all elements.
I have tested your patch and it works pretty well, minus the image scaling issue you mentioned. One thing I will note however, on a TKL (ten key less) keyboard, there is no dedicated '+' key, so zooming in doesn't work. On a US layout for example, the key is =/+, but pressing Ctrl-Shift-= doesn't have the expected result. I changed the mapping in keys.cc to Ctrl-= and it works for me, but would vary for other localizations. Regards, Alex