title: Detect Windows font size (100%, 125%, and 150%)
body: <p>I created an application that works perfectly until the user selects 125% or 150%. It would break my application. I later found a way to find the font size by detecting the DPI.</p>
  
  <p>This was working great until people with Chinese versions of Windows&nbsp;7 started using my application. The entire application breaks on Chinese Windows&nbsp;7. From what I can tell (I can't really test it for I only have the English version and installation the language packs does not cause the problem) Chinese characters are causing a weird DPI that breaks my application.</p>
  
  <p>My current code works like this:</p>
  
  <pre><code>if (dpi.DpiX == 120) // For 125% fonts
  {
      // Resize form and set default font to correct problems
  }
  else if (dpi.DpiX == 96) // For 100 and 150% fonts
  {
      // Resize form and set default font to correct problems
  }
  </code></pre>
  
  <p>On English versions of Windows&nbsp;7 that works great, but somehow Chinese versions skip right by this, and the form destroys itself, with controls not even showing up, font extremely large and pushing past the problem, picture boxes being moved around.</p>
  
  <p>So what is a good way to detect the Windows font scale (100%, 125%, and 150%) without detecting DPI? I need something solid that will work on all Windows&nbsp;7 operating systems and languages.</p>