Bug 374022

Summary: xos4 Terminus font - Cyrillic letters - wrong alignment and unexpected font substitution
Product: [Applications] konsole Reporter: Igor Zhuravlov <zhuravlov.ip>
Component: fontAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: eikoninaru, zhuravlov.ip
Priority: NOR    
Version: 16.08.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: xos4 Terminus font in "kcmshell5 fontinst" looks ok
xos4 Terminus font in xterm looks ok
xos4 Terminus font in konsole looks wrong
xos4 Terminus font in xterm looks ok
xos4 Terminus font in xterm looks ok

Description Igor Zhuravlov 2016-12-22 04:19:49 UTC
Created attachment 102935 [details]
xos4 Terminus font in "kcmshell5 fontinst" looks ok

When selecting "xos4 Terminus" font, Cyrillic letters are rendered by another font family, so its width and alignment is wrong. The problem is seen with all font style and size combinations excepting one: Regular, 9pt.

While it is displayed correctly in "kcmshell5 fontinst" and in xterm, e.g.
> xterm -xrm 'XTerm*font: -xos4-terminus-medium-r-normal-*-14-*-*-*-*-*-iso10646-*'
Comment 1 Igor Zhuravlov 2016-12-22 04:21:00 UTC
Created attachment 102936 [details]
xos4 Terminus font in xterm looks ok
Comment 2 Igor Zhuravlov 2016-12-22 04:27:09 UTC
Created attachment 102937 [details]
xos4 Terminus font in konsole looks wrong

Cyrillic letters are replaced by another font. As a result, wrong width and alignment. Notice in last line cursor "eats" some letters at the end:
- must be: "Для продолжения нажмите любую клавишу..."
- but is shown: "Для продолжения нажмите любую клав"
Comment 3 Igor Zhuravlov 2016-12-22 04:35:23 UTC
Created attachment 102938 [details]
xos4 Terminus font in xterm looks ok
Comment 4 Igor Zhuravlov 2016-12-22 04:36:41 UTC
Created attachment 102939 [details]
xos4 Terminus font in xterm looks ok
Comment 5 Igor Zhuravlov 2016-12-22 04:40:01 UTC
My distro is openSUSE Leap 42.2 x86_64.
The same bug is in Konsole version 15.12.3 (openSUSE Leap 42.1 x86_64).
Comment 6 Christoph Feck 2016-12-22 14:06:12 UTC
The decision which font to use as a replacement for fonts lacking certain scripts is made by the Qt libraries. Please report this issue directly to Qt developers via https://bugreports.qt.io/

You probably need to attach the font file and state that Qt incorrectly thinks that this font does not support the Cyrillic script.
Comment 7 Igor Zhuravlov 2016-12-26 02:03:43 UTC
It turned out, this bug is known for ages there. Thank you for hint, I've added comment to https://bugreports.qt.io/browse/QTBUG-22599 .
Comment 8 Stanislav Sizonov 2017-03-27 20:08:34 UTC
(In reply to Igor Zhuravlov from comment #7)
> It turned out, this bug is known for ages there. Thank you for hint, I've
> added comment to https://bugreports.qt.io/browse/QTBUG-22599 .

Do you fixed it?