<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2026-06-04 3:56 PM, Juan Vuletich
      via Cuis-dev wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:41338543-6ec1-4d31-93da-3b09ae65199e@cuis.st">
      <blockquote type="cite"
        cite="mid:CBCF20FB-9FB9-4B29-AC5C-BC4B9DB6CAED@me.com">
        <div style="font-size:-apple-system-body">
          <div>
            <div>I read up on the scaling problem. From what I read, I
              assume that the your intention is to have UI that has
              dimensions based on the font size. So when you increase
              the base font size, the UI scales with that. And font size
              takes `hostOSScaleFactor` already into account.</div>
            <div><br>
            </div>
            <div>Which means to create a rect around the text, e.g. a
              button, you are setting the padding that has some fraction
              of line height, which is some multiply of font size. This
              becomes tangled pretty fast.</div>
            <div><br>
            </div>
            <div>The more direct approach is to factor out the font
              size. That way you can use points (logical pixels) for the
              size of UI (including the font size) and have independent
              "zoom factor" that can be user-definable. And then the
              system would compute size of 1pt as `hostOSScaleFactor *
              zoomFactor` in physical pixels.</div>
            <div><br>
            </div>
            <div>This is just describing what is sometimes called
              "density-independent pixel" (dp on Android), or "effective
              pixel" (epx on Windows UWP). On Apple platforms it is just
              called "point". The independent zoom factor corrects for
              inability to know physical dimensions of the screen and
              viewing distance. So you can tune the base font size to
              be ~0.33°.</div>
          </div>
        </div>
      </blockquote>
      <p>Yes. Something like that can be done.</p>
    </blockquote>
    <p>And most likely it means building a new UI based on points and
      not on the Real plane (with floating point coordinates). Just a
      suggestion.</p>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis.st">www.cuis.st</a>
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich</pre>
  </body>
</html>