Bug 1836987 - Font descent miscalculated for some applications
Summary: Font descent miscalculated for some applications
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dejavu-fonts
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nicolas Mailhot
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-18 15:28 UTC by Milan Crha
Modified: 2021-05-25 16:17 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-05-25 16:17:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
See the letters like 'j', 'g', 'y', which are cut (38.39 KB, image/jpeg)
2020-05-18 15:28 UTC, Milan Crha
no flags Details

Description Milan Crha 2020-05-18 15:28:46 UTC
Created attachment 1689621 [details]
See the letters like 'j', 'g', 'y', which are cut

When I install hexchat (hexchat-2.14.3-3.fc32.x86_64) it has preselected in Settings->Preferences font "Monospace 9". It seems to be mapped to Dejavu font in Fedora 32, according to:

   $ fc-match monospace
   DejaVuSansMono.ttf: "DejaVu Sans Mono" "Regular"

I have installed dejavu-sans-mono-fonts-2.37-7.fc32.noarch and the font in hexchat has cut the text vertically, the bottom part of the line, some part below the base line, is missing.

I guess it's due to misreported descent for the font, possibly some fraction, which, when recalculated to pixels, rounds down, causing the pixel cut. This is even more problematic for an underscore ('_'), which is not visible at all, because it's at the very bottom of the font height, thus it looks like a space, not underscore.

I see this in more applications, not only with hexchat, thus it might not be a problem in there.

I also see this with other fonts, like with:

   VeraMono.ttf: "Bitstream Vera Sans Mono" "Regular"

thus, maybe, it's even lower in the stack.

I worked around this in my editor by adding one pixel to
   pango_font_metrics_get_descent() / PANGO_SCALE
but it's only a workaround.

I've also Fedora 30 machine and it has installed:
   dejavu-sans-mono-fonts-2.37-1.fc30.noarch
and the hexchat shows lines properly. It also says:
   $ fc-match monospace
   DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"

I've also a Fedora 31 machine, which has installed:
   dejavu-sans-mono-fonts-2.37-2.fc31.noarch
and hexchat is similarly broken as in Fedora 32. It says:
   $ fc-match monospace
   DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"

Looking in the package history in koji, there was not done any real change between 2.37-1 and 2.37-2.

Thus, maybe, it is nothing new.

Comment 1 Fedora Program Management 2021-04-29 16:26:39 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Ben Cotton 2021-05-25 16:17:29 UTC
Fedora 32 changed to end-of-life (EOL) status on 2021-05-25. Fedora 32 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.