Bug 359742 - "_" can't be dispalyed if there are some chinese chars in the same line
Summary: "_" can't be dispalyed if there are some chinese chars in the same line
Status: RESOLVED DUPLICATE of bug 335079
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-24 07:39 UTC by Zhang Jingqiang
Modified: 2016-03-24 16:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***