https://bugzilla.redhat.com/show_bug.cgi?id=1836987

            Bug ID: 1836987
           Summary: Font descent miscalculated for some applications
           Product: Fedora
           Version: 32
            Status: NEW
         Component: dejavu-fonts
          Assignee: nicolas.mail...@laposte.net
          Reporter: mc...@redhat.com
        QA Contact: extras...@fedoraproject.org
                CC: fonts-bugs@lists.fedoraproject.org,
                    nicolas.mail...@laposte.net, p...@frixxon.co.uk,
                    pe...@thecodergeek.com
  Target Milestone: ---
    Classification: Fedora



Created attachment 1689621
  --> https://bugzilla.redhat.com/attachment.cgi?id=1689621&action=edit
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.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
fonts-bugs mailing list -- fonts-bugs@lists.fedoraproject.org
To unsubscribe send an email to fonts-bugs-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/fonts-bugs@lists.fedoraproject.org

Reply via email to