Bug 397669 - Broken behaviour NerdFont glyphs
Summary: Broken behaviour NerdFont glyphs
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 18.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-20 17:05 UTC by Namkhai B.
Modified: 2024-04-08 17:17 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Comparison screenshot of Konsole 18.04 vs 18.08 (737.96 KB, image/png)
2018-08-20 17:05 UTC, Namkhai B.
Details
Screenshot with 19.04 (1.99 KB, image/png)
2019-04-22 09:18 UTC, beojan
Details
konsole vim (90.50 KB, image/png)
2019-04-23 10:44 UTC, basse
Details
Screenshot with 19.12.2 (39.50 KB, image/png)
2020-03-12 07:53 UTC, RoachHao
Details
Screen recording demonstrating the problem (357.05 KB, video/mp4)
2021-07-23 12:40 UTC, Andrew Kvapil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Namkhai B. 2018-08-20 17:05:07 UTC
Created attachment 114521 [details]
Comparison screenshot of Konsole 18.04 vs 18.08

I just updated my system to KDE Applications 18.08, and opening Konsole I notice that the glyphs are "cutted". I attach a screenshot. It's like Konsole can't handle double-width characters.

The screenshot shows the glyphs on Neofetch, but it's also on nvim, vim, their plugins, etc.

Arch Linux up-to-date
Linux 4.18.1-arch1
Plasma 5.13.4
KDE Frameworks 4.49.0
KDE Applications 18.08
Comment 1 Kurt Hindenburg 2018-08-21 02:53:46 UTC
18.08 has changes such that the char cell is clipped.   There is still  WIP that corrects Konsole char width calculations (which was reverted for 18.08).
Comment 2 Namkhai B. 2018-08-21 16:19:36 UTC
(In reply to Kurt Hindenburg from comment #1)
> 18.08 has changes such that the char cell is clipped.   There is still  WIP
> that corrects Konsole char width calculations (which was reverted for 18.08).

And this will be back on a 18.08.xx release? or we will need to wait to another 18.xx/19.xx? Right now I downgraded to 18.04, because I need the glyphs on vim
Comment 3 Kurt Hindenburg 2018-08-22 03:10:05 UTC
I had to revert some patches for 18.08; I guess I should have reverted this as well.  It likely won't be fixed until 18.12; I'll update this ticket if earlier.
Comment 4 Namkhai B. 2018-08-22 22:12:25 UTC
(In reply to Kurt Hindenburg from comment #3)
> I had to revert some patches for 18.08; I guess I should have reverted this
> as well.  It likely won't be fixed until 18.12; I'll update this ticket if
> earlier.

OK, thanks
Comment 5 beojan 2019-01-08 11:32:43 UTC
It seems this is still broken in 18.12.
Comment 6 FiNeX 2019-03-09 00:21:16 UTC
Bug confirmed in 18.12.3 too.
Comment 7 Wolfgang Bauer 2019-03-09 10:57:29 UTC
It's probably fixed by https://cgit.kde.org/konsole.git/commit/?id=ed6d8b702fd590d83d3b1db25bf2d1245b1cae33 which will be in 19.04...
Comment 8 Meconio 2019-03-14 09:57:38 UTC
Same problem on kde neon.
Comment 9 RoachHao 2019-03-30 15:47:35 UTC
(In reply to Wolfgang Bauer from comment #7)
> It's probably fixed by
> https://cgit.kde.org/konsole.git/commit/
> ?id=ed6d8b702fd590d83d3b1db25bf2d1245b1cae33 which will be in 19.04...

Really? I'm now using 18.12.3. But how long we could use 19.04...
Comment 10 Wolfgang Bauer 2019-03-30 18:34:48 UTC
(In reply to RoachHao from comment #9)
> (In reply to Wolfgang Bauer from comment #7)
> > It's probably fixed by
> > https://cgit.kde.org/konsole.git/commit/
> > ?id=ed6d8b702fd590d83d3b1db25bf2d1245b1cae33 which will be in 19.04...
> 
> Really? I'm now using 18.12.3. But how long we could use 19.04...

19.04.0 will be released on April 11th (the beta was already released last week):
https://community.kde.org/Schedules/Applications/19.04_Release_Schedule

And that's the next release, there won't be any earlier one where this change could be part of.
If you would want to test it earlier, you would need to install the 19.04 beta if available for your distribution, ask your distribution to backport the patch to 18.12.3, or compile konsole yourself.
Comment 11 RoachHao 2019-03-31 13:48:20 UTC
(In reply to Wolfgang Bauer from comment #10)
> (In reply to RoachHao from comment #9)
> > (In reply to Wolfgang Bauer from comment #7)
> > > It's probably fixed by
> > > https://cgit.kde.org/konsole.git/commit/
> > > ?id=ed6d8b702fd590d83d3b1db25bf2d1245b1cae33 which will be in 19.04...
> > 
> > Really? I'm now using 18.12.3. But how long we could use 19.04...
> 
> 19.04.0 will be released on April 11th (the beta was already released last
> week):
> https://community.kde.org/Schedules/Applications/19.04_Release_Schedule
> 
> And that's the next release, there won't be any earlier one where this
> change could be part of.
> If you would want to test it earlier, you would need to install the 19.04
> beta if available for your distribution, ask your distribution to backport
> the patch to 18.12.3, or compile konsole yourself.

Thanks a lot for your reply!
Comment 12 beojan 2019-04-22 09:18:39 UTC
Created attachment 119551 [details]
Screenshot with 19.04
Comment 13 beojan 2019-04-22 09:19:22 UTC
I've updated to 19.04, and this still doesn't always work. See the screenshot above.
Comment 14 basse 2019-04-23 10:44:15 UTC
Created attachment 119586 [details]
konsole vim

I just upgraded to Kubuntu 19.04, and noticed the font rendering issue too.  
(see attachement konsolevim.png) Konsole version is 18.12.3

before upgrade, these glyphs were rendering as a whole, but slightly smaller, and  positioned too "high" .. now, position and size looks alright, but it's cut of.

(Font is "Hack"), program in screenshot Vim (SpaceVim)

.b
Comment 15 beojan 2019-04-23 11:30:03 UTC
By the way, when I said 19.04, I meant Konsole 19.04.

I see what the problem is now. If there are ANSI escape codes between the character and the space(s), the character is not correctly grouped with the space(s). Escape codes should therefore probably be ignored when doing this grouping.
Comment 16 Meconio 2019-04-23 12:34:39 UTC
Latest neon upgrade solve my problem with nerfont in konsole now seems all ok thanks
Comment 17 Wolfgang Bauer 2019-04-24 08:32:33 UTC
(In reply to basse from comment #14)
> I just upgraded to Kubuntu 19.04, and noticed the font rendering issue too.  
> (see attachement konsolevim.png) Konsole version is 18.12.3

The mentioned fix is in *konsole* 19.04(.0), not in Kubuntu 19.04.

According to your comment Kubuntu 19.04 apparently ships with konsole 18.12.3, so you'd need to ask them to backport it.
Comment 18 basse 2019-04-24 10:03:31 UTC
(In reply to Wolfgang Bauer from comment #17)
> (In reply to basse from comment #14)
> > I just upgraded to Kubuntu 19.04, and noticed the font rendering issue too.  
> > (see attachement konsolevim.png) Konsole version is 18.12.3
> 
> The mentioned fix is in *konsole* 19.04(.0), not in Kubuntu 19.04.
> 
> According to your comment Kubuntu 19.04 apparently ships with konsole
> 18.12.3, so you'd need to ask them to backport it.

ah.. of course :) sorry about that. well, I can wait.. it will be in backports eventually.
Comment 19 RoachHao 2020-03-12 07:53:08 UTC
Created attachment 126740 [details]
Screenshot with 19.12.2

Konsole still not work with some glyphes, such as the above screenshot with Konsole 19.12.2.

The glyph is `✹` from https://github.com/kristijanhusak/defx-git#indicators
Comment 20 Andrew Kvapil 2021-07-23 12:40:13 UTC
Created attachment 140275 [details]
Screen recording demonstrating the problem

Can confirm this is still a (very annoying) issue on 21.04.3.
Comment 21 Hai Zaar 2023-07-21 07:01:00 UTC
Turned out it's a (mis)configuration issue: https://discourse.nixos.org/t/kde-doesnt-render-nerd-font-glyphs/30153/5?u=haizaar
Comment 22 Hai Zaar 2023-07-21 07:02:41 UTC
Oh, sorry commented on the wrong bug. Please ignore.
Comment 23 Kurt Hindenburg 2024-03-24 01:18:54 UTC
Let us know if this still happens on a recent version
Comment 24 Bug Janitor Service 2024-04-08 03:47:29 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 25 Namkhai B. 2024-04-08 17:17:38 UTC
I can confirm it works as of konsole 24.02.1!