Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Detetct Retina Display on MacOSX
Detetct Retina Display on MacOSX [message #1791218] Tue, 26 June 2018 07:01 Go to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
I would like to detect reliable a Retina display on MacOSX. Is there a standard method available in the SWT API?

Background: I have some Swing component fonts which I have to scale down on a Retina display.

So far I found only this suggestions:

https://stackoverflow.com/questions/20767708/how-do-you-detect-a-retina-display-in-java

https://stackoverflow.com/questions/40399643/how-to-find-real-display-density-dpi-from-java-code/40399909#40399909
Re: Detetct Retina Display on MacOSX [message #1791236 is a reply to message #1791218] Tue, 26 June 2018 13:39 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 772
Registered: January 2012
Senior Member

Look at `Display#getDPI()` and `Monitor#getZoom()` (which is new to Photon / 4.8).

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: Detetct Retina Display on MacOSX [message #1791364 is a reply to message #1791236] Thu, 28 June 2018 12:04 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Great, thanks for the answer. I will have a look.
Re: Detetct Retina Display on MacOSX [message #1791368 is a reply to message #1791236] Thu, 28 June 2018 12:16 Go to previous message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Great, thanks for the answer. I will have a look.
Previous Topic:Detect Retina Display on MacOSX
Next Topic:Is there a statement of support for Microsoft Edge in SWT Browser.
Goto Forum:
  


Current Time: Sat Sep 22 18:55:20 GMT 2018

Powered by FUDForum. Page generated in 0.01857 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top