https://bugs.documentfoundation.org/show_bug.cgi?id=157282

Eyal Rozenberg <eyalr...@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|v-aligning text to center   |v-aligning text to center
                   |failed to v-center text     |fails to v-center text with
                   |with some fonts             |some fonts

--- Comment #3 from Eyal Rozenberg <eyalr...@gmx.com> ---
(In reply to ⁨خالد حسني⁩ from comment #2)
> Most likely it is centering the font height, i.e. ascender + descender

1. I'm not sure that we should think of the font height (w.r.t vertical
positioning) as the difference between the ascender and the descender lines, as
opposed to baseline to cap line. Of course line spacing should account for
those, but not necessarily centering.

2. Are you sure this is the case for these specific fonts? A cursory inspection
doesn't seem to agree with that.

> and it does not look at the content at all, probably be design.

Yes, that's certain. I'm not arguing against this design choice (although that
might be an interesting discussion to have).

> DejaVu Sans has
> less space above the capitals than below baseline, while Liberation Sans has
> more or less the same space.

But the ascenders are about as high as Liberation Sans... so,

> If you middle-align in a web browser, you get the same effect, and some
> fonts are intentionally designed to look vertically centered in such
> situations https://twitter.com/romanshamin_en/status/1562801657691672576

is ours a case of the font artificially using a larger above-caps space?

Also, suppose a font does this intentionally. Why should we respect its desire
for extra space, when the user has indicated something different, and the extra
space is known not to be necessary?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to