The dpi module enables querying the OS for the screen DPI.
vispy.util.dpi.
get_dpi
Get screen DPI from the OS
If True, raise an error if DPI could not be determined.
Dots per inch of the primary screen.