You are not logged in.

#1 2022-09-20 19:17:52

ollosh
Member
Registered: 2022-09-20
Posts: 51

[SOLVED] Font icons of weird size larger then selection

I've recently installed Arch with xorg on Thinkpad T14 G3 AMD. Since I've had previously a setup that worked I've slowly migrated it and configured, but one thing that sticks out is the size of the font icons for some reason take more space then they should. To better explain what I mean I'll post a screenshot. On the SS you can clearly see that the selection takes less space then the actual screenshot

Font icons of weird size

Font is from nerd-fonts which I've manually installed through install.sh script.

Anyone has an idea what could be the problem? Let me know if any other info would be useful smile

Last edited by ollosh (2022-09-22 15:49:19)

Offline

#2 2022-09-20 19:41:57

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,657
Website

Re: [SOLVED] Font icons of weird size larger then selection

That's because the battery symbol takes more than 2 bytes in UTF-8.
See @Seth's answer.

Last edited by schard (2022-09-22 00:07:27)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2022-09-20 19:55:52

ollosh
Member
Registered: 2022-09-20
Posts: 51

Re: [SOLVED] Font icons of weird size larger then selection

Hmm ok, that something. Do you think there is a reason why it was behaving 'normally' in my previous system?

Offline

#4 2022-09-20 20:15:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,486

Re: [SOLVED] Font icons of weird size larger then selection

The problem rather sems to be that the battery icon is resolved from a variable width font?
Which font do you use exactly?

Offline

#5 2022-09-20 20:19:47

ollosh
Member
Registered: 2022-09-20
Posts: 51

Re: [SOLVED] Font icons of weird size larger then selection

I'm using FuraMono Nerd Font for these icons specifically

Offline

#6 2022-09-20 20:37:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,486

Re: [SOLVED] Font icons of weird size larger then selection

There're 4 of them?
https://github.com/ryanoasis/nerd-fonts … r/complete

fc-list | grep -i fura

Also which utf-8 codepoint is any of those batteries in that font (I assume it's somewhere in the private range)?

Edit: my guess is btw. since there's an explicit "Mono" version, that one will have the icons in monospace while the other one has the FiraMono font, but the patched on icons use a variable width - and that'd be the one you end up using.

Last edited by seth (2022-09-20 20:39:08)

Offline

#7 2022-09-21 22:09:31

ollosh
Member
Registered: 2022-09-20
Posts: 51

Re: [SOLVED] Font icons of weird size larger then selection

Yeah, you are right, Mono version is working correctly!

Offline

#8 2022-09-22 07:12:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,486

Re: [SOLVED] Font icons of weird size larger then selection

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#9 2022-09-22 15:49:38

ollosh
Member
Registered: 2022-09-20
Posts: 51

Re: [SOLVED] Font icons of weird size larger then selection

Got it! Thanks for the reminder smile

Offline

Board footer

Powered by FluxBB