determine screen dpi and prepare for its use