Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Support retina display on OSX #51
Comments
|
Alan Schmitt notifications@github.com writes:
Please post a comparison screenshot ? |
brabalan
commented
Feb 14, 2015
|
Alan Schmitt notifications@github.com writes:
Could this be some bad anti-aliasing ? As far as I know there is no need for a resolution in poppler, since all Would you mind uploading the PDF page ?
-ap |
brabalan
commented
Feb 14, 2015
|
Here is the page: https://transfert.inria.fr/fichiers/038db3f7d96457232984b2f9ccae2355/page_17.pdf This may be an emacs + retina macbook issue. I use this emacs https://github.com/railwaycat/emacs-mac-port which may do something special to display png. I'll open an issue there. Edit: this probably explains why docview is not blury: https://github.com/railwaycat/emacs-mac-port/blob/7be6d9e8dbd122b060b058c0a345091debc52975/doc/emacs/macport.texi#L401 |
|
Alan Schmitt notifications@github.com writes:
They look the same to me in doc-view and pdf-view. -ap |
|
Does this advice do the trick ?
|
brabalan
commented
Feb 15, 2015
|
Unfortunately, no. (It also breaks the function that deal with resizing: fit to page is broken, and shrink-pdf and enlarge-pdf both enlarge it.) PS: I don't think the blurry aspect is a bug on your side, it's more of a feature missing of emacs for OS X on Macs with retina display. I just tried increasing the resolution, and the picture becomes sharper. Unfortunately I don't know how to get pixel resolution to do a conclusive test. |
brabalan
commented
Feb 25, 2015
|
I received an answer from YAMAMOTO Mitsuharu and he suggests an approach:
Do you think this could work? |
|
I might (w/o to much trouble) if |
brabalan
commented
Mar 3, 2015
|
My understanding is that it works like |
|
Alan Schmitt notifications@github.com writes:
Yes... |
politza
closed this
Mar 15, 2015
brabalan
commented
Mar 15, 2015
|
Thank you for doing it. I'll test it as soon as it's propagated on Melpa. |
brabalan
commented
Mar 26, 2015
|
I gave it a test and I do not see any change. Is there something special I need to do to activate it? |
|
Alan Schmitt notifications@github.com writes:
I closed the issue because in my view it was resolved. I'm not going to |
brabalan
changed the title from
Option to change resolution?
to
[WONTFIX] Option to change resolution?
Mar 26, 2015
brabalan
commented
Mar 26, 2015
|
OK, I updated the issue title to reflect this. |
dbrumley
commented
Apr 20, 2015
|
I know the issue is closed, but I also would like retina resolution on pdf's on my mac. Putting this message here in case someone has an alternate solution/setup for those looking at this issue. (I don't get retina inside docview, either though). |
politza
changed the title from
[WONTFIX] Option to change resolution?
to
Support retina display on OSX
Apr 21, 2015
politza
reopened this
Apr 21, 2015
brabalan
commented
Apr 21, 2015
|
@dbrumley To get retina support in docview, you need to use this emacs version: https://github.com/railwaycat/emacs-mac-port. In the meantime, I have found a workaround: I run at full retina resolution (and not half resolution by default). I have to increase the font size in emacs of course, but everything is super sharp. |
dbrumley
commented
May 7, 2015
|
I'm sure this is a dumb question, but I couldn't find the answer googling. How do you run it at full resolution? Do you mean you run your mac itself at a non-default resolution, or there is an emacs setting? |
brabalan
commented
May 10, 2015
|
It's a mac thing: you need an utility that gives you access to a "scaled" resolution that is actually not scaled (the preference panel does not let you use the full resolution of the screen). I went back to the normal "double" resolution because the interface is really not meant to run at such a high resolution. So I'm back to square 1. |
dbrumley
commented
May 11, 2015
|
I'm posting here for posterity. If you are using macports, you can |
chuchana
commented
Aug 14, 2015
|
@dbrumley In PDFView mode, too? |
politza
added
the
enhancement
label
Oct 20, 2015
srustamo
commented
Nov 16, 2015
|
I'm using 'emacs-mac-port', DocView renders pdfs in retina resolution. 'pdf-tools' does not. I prefer 'pdf-tools' becasue of many pdf tools it offers (outline mode etc) and hope that it will be possible to render in retina resolution with 'pdf-tools'. |
y0ast
referenced this issue
in syl20bnr/spacemacs
Apr 25, 2016
Closed
Should we still recommend the mac port version for osx? #4955
kwf
commented
Apr 28, 2016
|
This issue is really important to me, and I suspect to other users as well. I'm willing to work on providing a fix, if given a pointer in the right direction. Where in the codebase should I start poking about? |
dbrumley
commented
May 23, 2016
|
On OSX:
I believe, but do not know, that this is a fork of https://github.com/railwaycat/emacs-mac-port.git
|
|
Try to look into the image-io imagetype as suggested here: |
seanfarley
commented
Aug 6, 2016
|
Just wanted to chime in that this would be really, really nice to have. I was hoping @kwf made some progress to see if I could help but couldn't find any. Also, @dbrumley, I'm one of the maintainers of the emacs-mac-app in MacPorts. The default variants shouldn't have affected retina support. If it's still a problem for you, feel free to open a bug with MacPorts. |
kwf
commented
Aug 8, 2016
|
@seanfarley, I haven't had much time to take a look at this, but I'll certainly let you know if I get a chance to make any progress. |
LordZorgoth
commented
Jul 4, 2017
|
I'd just like to point out that there is a very ugly workaround to this issue, which certainly is not a good fix, but works for me until someone implements a patch. The workaround is to use a utility that enables running the display at full Retina resolution, and then ensure that the full Retina resolution is only used when emacs is focused. The resolution transition is ugly, but if, like me, you primarily use emacs in fullscreen mode, it is bearable. Note that in order to enable full resolution on El Capitan and newer versions of OS X, you will need to disable system integrity protection (SIP). You only need to do this once; once the setting is enabled, you can switch to and from that resolution dynamically with system integrity protection on. You will need to increase the default font height to keep emacs readable. I find that 256 works well on my 15" 2880x1800 display. I am using a paid, closed source piece of software because I figured I just needed something that worked and it wasn't worth an hour or three right then to find another piece of software. I imagine that it would not be too difficult to write an open-source script to do a similar operation, and perhaps to improve on it by only changing the resolution only when emacs is fullscreen, if you only work with pdfs in fullscreen windows). I am not about to write one because I don't have time. The closed-source tool I am currently using is |
hisnawi
commented
Sep 11, 2017
|
Any update on this? |
AegisAK
referenced this issue
Sep 18, 2017
Open
[OS X] LuaTeX, synctex, and pdf-tools don't play nicely #286
m-falconi
commented
Oct 6, 2017
|
It has been a while, but @politza can you develop a bit more on how one could implement the suggestion in Yamamoto comment above? I.e. how to make epdfinfo produce a pdf and then raster it with image-io? Alternatively, is someone already working on a different fix? |


brabalan commentedFeb 14, 2015
Documents viewed with pdf-view are much fuzzier than when viewed with doc-view (I have set
doc-view-resolutionto 300). How can I increase the resolution for pfd-view? (I looked at the pdf-tools and pdf-view customize group but could not find a relevant option.)