title: C++ Windows API - How to retrieve font scaling percentage
body: <p>I want to retrieve the <strong>&quot;Make text bigger&quot;</strong> percentage in C++ Windows API application. I know how to retrieve the scaling (DPI) factor, but I also want to include the font scaling percentage (see the attached image, the upper value, not the lower one).</p>
  <p>Ultimately, I want to make application that preserves user font and DPI scaling settings in order to fully support accessibility features. Currently, the font is specified in <code>.rc</code> file like so</p>
  <pre><code>FONT 8, &quot;MS Shell Dlg 2&quot;, 0, 0, 0x0
  </code></pre>
  <p>but even omitting the FONT statement, the font still does not change when changing &quot;Make text bigger&quot; setting.</p>
  <p><a href="https://i.stack.imgur.com/gACYz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gACYz.png" alt="enter image description here" /></a></p>