Bug 1226525

Summary: xterm is using wrong line spacing
Product: [Fedora] Fedora Reporter: Ralf Ertzinger <redhat-bugzilla>
Component: fontconfigAssignee: Akira TAGOH <tagoh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: fonts-bugs, i18n-bugs, mlichvar, pnemade, redhat-bugzilla, tagoh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-30 03:32:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fedora 21 screenshot. Note the following:
none
Fedora 22 screenshot none

Description Ralf Ertzinger 2015-05-30 09:16:11 UTC
Created attachment 1032417 [details]
Fedora 21 screenshot. Note the following:

Description of problem:

Since the update to Fedora22 the line spacing in xterm is wrong (it's too large). This causes a larger window and/or less lines displayed, and line drawing characters not to line up any more.

I'll attach example screenshots from Fedora 21 and Fedora 22. In both screenshots xterm was configured to use /usr/share/fonts/ucs-miscfixed/7x14.bdf as the font.

Version-Release number of selected component (if applicable):
xterm-314-1.fc22.x86_64

Comment 1 Ralf Ertzinger 2015-05-30 09:19:19 UTC
Note the following in the Fedora 21 screenshot:

- A line is 14 pixels high (the blue status line forms the bottom of the screen).
- Square brackets and the vertical bar symbol in the status line are 13 pixels high, and are flush with the bottom of the line, with one pixel space on top
- The vertical line drawing characters (next to the cursor, on the line above the status bar) are 14 pixels high, and the same height as the cursor

This is how things should look using this font.

Comment 2 Ralf Ertzinger 2015-05-30 09:20:14 UTC
Created attachment 1032418 [details]
Fedora 22 screenshot

Comment 3 Ralf Ertzinger 2015-05-30 09:23:15 UTC
Note the following in the Fedora 22 screenshot:

- A line is 19 pixels high (the blue status line forms the bottom of the screen).
- Square brackets and the vertical bar symbol in the status line are still 13 pixels high, but are no longer flush with the bottom of the line (there is one pixel below them). There are 5 pixels of space above them.
- The vertical line drawing characters (next to the cursor, on the line above the status bar) are still 14 pixels high, but not as large as the cursor. The cursor also has one additional pixel at the bottom, and 4 on top, compared with the line drawing character.

This is how things are not supposed to look.

Note that only the line height has changed, the font itself looks exactly the same in F21 and F22.

Comment 4 Ralf Ertzinger 2015-05-31 12:25:31 UTC
This seems fixable by getting rid of 10-scale-bitmap-fonts.conf in /etc/fonts/conf.d.
I'm unsure if the observed behaviour (increased line spacing without actual scaling of the fonts) was the desired behaviour, though, and if and how this might be fixed for xterm if one would like to keep 10-scale-bitmap-fonts.conf for whatever reason.

Comment 5 Miroslav Lichvar 2015-06-26 12:48:51 UTC
It seem the 10-scale-bitmap-fonts.conf file has changed between f21 and f22. Maybe the fontconfig maintainer will have some suggestions.

Comment 6 Akira TAGOH 2015-06-29 02:31:35 UTC
What a font do you use and the version of fontconfig?

Any kinda information to reproduce it here would be appreciated.

Comment 7 Ralf Ertzinger 2015-06-29 16:59:34 UTC
This is fixed by now (via bz1226522).

Sorry for not closing this.

Comment 8 Akira TAGOH 2015-06-30 03:32:52 UTC

*** This bug has been marked as a duplicate of bug 1226522 ***