giddie / poppler-cairo-backend

A patchset to enable subpixel rendering of fonts via Cairo in Poppler's Qt wrapper
19 stars 2 forks source link

Cairo back end defaults to nearest-neighbor scaling of raster graphics #6

Open hansscholze opened 9 years ago

hansscholze commented 9 years ago

Hi, I have been using your AUR package of these patches (version 0.32.0-1) with Okular and noticed that raster graphics look worse than they do with Splash. (For example in scanned documents such as this.)

The problem appears to be:

Adding a call output_dev->setPrinting(gFalse) to your patch works around the problem. I see that in the GLib API there are two different calls (poppler_page_render and poppler_page_render_for_printing_with_options) and the printing flag is set appropriately depending on which was called. No idea if/where similar information might be available in the Qt4 API.

giddie commented 9 years ago

Thanks; really useful info. I'll see if I can find a way to detect whether the call is for printing or not.

0xBRM commented 8 years ago

Ah, so this is why the thumbnails look so different.

giddie commented 8 years ago

I'd really appreciate a patch for this, if someone has time to experiment.