title: How to get screen DPI (linux,mac) programatically?
body: <p>I need to know active screen DPI on Linux and Mac OS. I think on linux xlib might be useful, but I can't find a way how to get currect DPI.
  I want this information to get real screen size in inches.</p>
  
  <p>Thanks in advance!</p>