A recent study of WPF development, which mentions a feature of "Resolution independence", is the main feature of a desktop program that implements development that automatically scales the UI according to the DPI of the system when it is displayed on different resolutions of the computer, without causing distortion to the application.
This one mentions the system dpi, which we can set in our Windows system (regardless of XP or Vista win7, win8, WIN10, etc.). DPI is the number of pixels per inch, and an inch of the length of the presence of the pixel, it actually reflects a density problem. Windows system by default, the system DPI is 96DPI, here still have to pay attention to the actual physical DPI difference with the display: 1, the system DPI is defined by the operating system, you can modify the 2, the physical DPI, in fact, after the production of the Monitor is OK.
Before we increase the system dpi in the system, it will cause the font to become larger in the display, this is why?
Let's analyze why the system DPI increases, causing the same font to grow larger on the monitor. First of all, we need to know that the system to the same font, the size is not changed, not as the size of the 9th font is 0.1 inches, if we use the default system DPI value of 96, then the system will calculate that the 9th font should need 96*0.1 = 9.6 pixels to display. So when we set the system DPI to 100, the same font size is constant, 100*0.1 = 10 pixels to display, and for the display, the resolution does not become the case, you need to use more pixels to display the font, so that we see the word will naturally become larger.
Analysis of the reason why the font becomes larger when the DPI of Windows system grows