Bug 418620

Summary: Kate unable to properly display lines with CJK characters when using Monospace font
Product: [Applications] kate Reporter: reimu
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: major CC: bugseforuns, gabrielfernnd, gruz103, justin.zobel, mr-peipei, postix, the.neophytes.logs
Priority: NOR    
Version: 19.04.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=404907
https://bugs.kde.org/show_bug.cgi?id=335079
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot
Cut off text when using some non-latin characters

Description reimu 2020-03-08 11:32:36 UTC
Created attachment 126669 [details]
Screenshot

SUMMARY
Kate unable to properly display lines with CJK characters when using a Monospace font.

Same issue didn't happen in Gedit and Sublime text.

STEPS TO REPRODUCE
1. Set font to some monospace font, such as Ubuntu Mono or Dejavu Sans Mono
2. Type or copy&paste some CJK chars.

OBSERVED RESULT
The below part of each line with any CJK chars will not be displayed.
See screenshot in attachments for demonstration.

EXPECTED RESULT
Each line will should be displayed properly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4
Comment 1 Patrick Silva 2020-03-13 15:19:25 UTC
Same thing with Kate 19.12.3 on Arch Linux.
Comment 2 Patrick Silva 2020-03-27 12:37:05 UTC
*** Bug 419279 has been marked as a duplicate of this bug. ***
Comment 3 Felipe Peter 2020-04-17 06:25:50 UTC
Same with Kate 19.12.3 on Manjaro.
Comment 4 Patrick Silva 2020-05-23 19:16:03 UTC
*** Bug 421982 has been marked as a duplicate of this bug. ***
Comment 5 Oussema Bouaneni 2020-07-02 23:12:04 UTC
Created attachment 129855 [details]
Cut off text when using some non-latin characters

This issue is present for me pretty much every time I use a character that is not in Latin script. It exists with Arabic script, CJK and with other characters.
When using Arabic script the descenders of letters like gjpy are a little cut off at the end. Whereas when using a character like this 🜁 half of the line is cut off. See attached screenshot.

Kate Version: 20.04.1
Comment 6 Oussema Bouaneni 2020-07-02 23:35:55 UTC
Possibly relevant patches:
https://phabricator.kde.org/D25339
https://phabricator.kde.org/D29789
Comment 7 Oussema Bouaneni 2020-07-03 00:08:42 UTC
This bug is fixed as far as I can see with Kate 20.07.70
Comment 8 Justin Zobel 2020-11-21 11:51:34 UTC
(In reply to reimu from comment #0)
> Created attachment 126669 [details]
> Screenshot
> 
> SUMMARY
> Kate unable to properly display lines with CJK characters when using a
> Monospace font.
> 
> Same issue didn't happen in Gedit and Sublime text.
> 
> STEPS TO REPRODUCE
> 1. Set font to some monospace font, such as Ubuntu Mono or Dejavu Sans Mono
> 2. Type or copy&paste some CJK chars.
> 
> OBSERVED RESULT
> The below part of each line with any CJK chars will not be displayed.
> See screenshot in attachments for demonstration.
> 
> EXPECTED RESULT
> Each line will should be displayed properly.
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: 
> (available in About System)
> KDE Plasma Version: 5.16.5
> KDE Frameworks Version: 5.62.0
> Qt Version: 5.12.4

Can you please confirm if this bug has been resolved as per Comment 7, thank you.
Comment 9 Bug Janitor Service 2020-12-06 04:34:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2020-12-21 04:34:55 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!