<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Allow derivative styles to maintain x-height or M-height"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=141418">141418</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Allow derivative styles to maintain x-height or M-height
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.1.1.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>eyalroz1@gmx.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=170888" name="attach_170888" title="Same font size, different character heights">attachment 170888</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=170888&action=edit" title="Same font size, different character heights">[details]</a></span>
Same font size, different character heights

The customary measure of font size is actually a rather complex voodoo which
doesn't tell the user much. At best, it is close to being "somewhere between
1/0.7 and 1/0.6 of the Em-height". See discussion here:

<a href="https://graphicdesign.stackexchange.com/questions/4035/what-does-the-size-of-the-font-translate-to-exactly">https://graphicdesign.stackexchange.com/questions/4035/what-does-the-size-of-the-font-translate-to-exactly</a>

or here:

<a href="https://www.thomasphinney.com/2011/03/point-size/">https://www.thomasphinney.com/2011/03/point-size/</a>

In LO writer (and all of LO) font dialogs, sizes are given in terms of this
inscrutable font size. And if you create a style derived from another style, it
will maintain the same "size" - but not necessarily the same Em-height nor
x-height.

This is problematic in running (Latin) text, where most characters are
lowercase, and their height is basically the x-height. Now, if you use
character styles with different fonts in the same text run, and fail to
carefully set their font size (possibly even to a non-integral value), the
sizes of different parts of the run will vary, distracting the user.

This is not some esoteric use case: You just:

1. Create a new document in LO writer.
2. Write some text, say "foo bar"
3. Select "bar"
4. Change the character style (not the paragraph style!) to "Source Text"

You'll see a significant character height difference. (Actually, this might
depend on your font selection, but it would work with most default choices, and
particularly with Liberation Serif vs Liberation Mono.) The attached document
illustrates this.

This also happens when your concern is the M-height:

1. Create a new document in LO writer.
2. Write some text, say "foo bar"
3. Select "foo"
4. Set the font family to Liberation Serif
5. Select "bar"
6. Set the font family to Lucida Sans Unicode (available from here if you don't
have it: <a href="https://www.wfonts.com/font/lucida-sans-unicode">https://www.wfonts.com/font/lucida-sans-unicode</a> )

You'll again notice a significant difference height difference.

It would be useful (perhaps one might even say: necessary), if it were possible
for derivative styles to track the x-height (or M-height) of the underlying
style rather than its M-height.

This can be achieved in one of several ways - partially depending on the extent
to which there is an interest in exposing these height figures to users. I'm
mulling over opening a separate bug about that.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>