jeapostrophe / slideshow-latex

embedding LaTeX in Racket slideshows
Other
11 stars 4 forks source link

Pixel doubling issues with GTK3 and high-DPI displays #3

Open david-christiansen opened 8 years ago

david-christiansen commented 8 years ago

I have a laptop with a very high-res display, so GTK3 runs in pixel-doubling mode. When I run slideshow-latex, the bitmaps all come out blurry unless I turn off pixel doubling by setting GDK_SCALE=1 and GDK_DPI_SCALE=1.

I would think that the DPI setting for LaTeX should use my screen's actual pixels, rather than GTK's logical pixes in HiDPI mode.

jeapostrophe commented 8 years ago

Can you try to go to this line https://github.com/jeapostrophe/slideshow-latex/blob/master/slideshow/latex.rkt#L21 and change it to also multiply by (get-display-backing-scale) and see if that does it?