Le 14/07/14 22:44, Marcelo Galvão Póvoa a écrit :
Hello,

LyX has been lacking HiDPI ("retina") support for a while now and I
decided to tackle this project. It has been listed as a GSoC 2013
potential project [1], so I assume there's enough interest in it.

Definitely! For reference, the corresponding bug report is:
http://www.lyx.org/trac/ticket/9130

I worked on a patch which adds basic 2x DPI drawing support for text
and graphics. Math formulas and inline images also work (except the
splash screen) but the UI icons would require creating higher res
versions.

This is excellent work. I am surprised that so many parts of the code need to be changed, the way the blog entry is written made me think that the changes could be smaller.

Do we really want to add a lyxrc variable for this, though? I would think that Retina macs can automatically know that they need the x2 multiplier.

There seems to be some code related to that here:
http://stackoverflow.com/questions/16527971/detect-hidpi-mode

Qt added HiDPI support in version 5 [2], but I think it's not yet
fully functional.

I think that part of this is backported to recent 4.8 versions too. It would be nice to see what 4.8 version can work correctly.

I say this because I ran into a problem where
partial viewport updates (namely the cursor and preedit strings) are
rendered incorrectly. It seems that it wrongly uses non-scaled pixels
dimensions which displays viewport contents from half the requested
coordinates, but I'm not sure it is a Qt bug. To workaround this
(second patch)  I used full viewport updates only, but this can
degrade performance. I would appreciate some help on this issue as I'm
not experienced with Qt.

This part is also clearly beyond my knowledge [and moreover I do not own a retina display].

Thanks for your work,
JMarc

Reply via email to