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

            Bug ID: 157282
           Summary: v-aligning text to center failed to v-center text with
                    some fonts
           Product: LibreOffice
           Version: 24.2.0.0 alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 189642
  --> https://bugs.documentfoundation.org/attachment.cgi?id=189642&action=edit
Presentation with boxes demonstrating the bug (examine at different zoom
levels)

When we v-align the text of an object (say, a shape) to the center - the
distance from the baseline to the edge of the bottom margin should be equal to
the distance from the cap line (or if you like, the ascender line) to the edge
of the top margin. And if the margins are equal, then we should have:

|box bottom to baseline| = |cap line to top|

the farther we are from an equality, the more it will seem the text is not
centered.

Of course, this may be affected by the nature of the font itself, e.g. whether
it seems that the caps are somehow "too high"; and there will be some
difference between the choice of the ascender or the cap etc. - but that's the
general rule.

The farther we are from this equality, the more the text appear not to be
vertically centered.

Now, with some fonts, there is a significant difference between the two
distances - especially in lower zoom levels. See the attached document,
comparing v-centered text in DejaVu Sans vs Liberation Sans: 

Font                           to top    to bottom
-----------------------------------------------------
DejaVu Sans regular 20pt       ~0.25 cm  ~0.28 cm
Liberation Sans regular 20pt   ~0.28 cm  ~0.27 cm

both v-aligned center of course. Regular spacing, no v-spacing after paragraph,
default (and identical) bottom and top margin settings.

Seen with:

Version: 7.6.0.3 (X86_64) / LibreOffice Community
Build ID: 69edd8b8ebc41d00b4de3915dc82f8f0fc3b6265
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US

but I've noticed this several times over the years.

Also saw this with a font named Stencil, and probably several others.

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

Reply via email to