How can you tell (programmatically) if large fonts are in use on a Windows 7 PC
问题 I need to identify whether or not large fonts are in use on Windows 7 from within an app written in C++. Any assistance would be appreciated. 回答1: In MFC: void CTestFontDlg::OnBnClickedButton1() { CDC* pDC = GetDC(); int nRes = GetDeviceCaps(*pDC, LOGPIXELSY); } Normal font size = 96 (100%), medium (125%)= 120... 回答2: The Windows display settings (Control Panel\Appearance and Personalization\Display) affect the current number of dots per inch (DPI). There is in fact a way to get DPI