Bug 359742

Summary: "_" can't be dispalyed if there are some chinese chars in the same line
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Zhang Jingqiang <zh_jq>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:

Description Zhang Jingqiang 2016-02-24 07:39:51 UTC
It's a font related problem.
The English font is DejaVu Sans Mono, and the chinese font is WenQuanYi Zen Hei Mono.

Reproducible: Always

Steps to Reproduce:
1.Install a WenQuanYi Zen Hei fonts. (Package fonts-wqy-zenhei for Debian)
2.Make sure monospace prefer WenQuanYi Zen Hei Mono
3.Set locale to zh_CN.UTF-8
4.Set fonts used by kwrite to DejaVu Sans Mono
5.Copy these chars "test underscore _  测试下划线" to kwrite 

Actual Results:  
"_" didn't get displayed as in Konsole

Expected Results:  
All chars get displayed.
Comment 1 Dominik Haumann 2016-03-24 16:34:52 UTC
Known issue: since the painting is line-based fonts whose characters exceed the lower or upper bound of their own line height draw in the area of neighboring lines. When neighboring lines are drawn, these parts are lost. Mostly a problem in the fonts, but then again, would be nice, if Kate could handle it correctly.

You can try other fonts, like Noto Sans mono for instance, or change the font size, that also sometimes helps.

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