It seems that modern X11 servers with modern monitors can retrieve the display information automatically. At least I can't find any reference to the display size or dpi information in the configuration files, but the information provided by xdpyinfo is pretty accurate (only about 0.5 centimeters off).