You are not logged in.

#1 2025-03-22 00:36:10

Silgrond
Member
Registered: 2025-03-20
Posts: 19

[solved] Font issue and Locale C?

Hello, this is my first post here.

I have installed Arch couple days ago migrating from years of using Manjaro. All is running smoothly, except some fonts seemed to be missing.
I have retained my /home partition along with my .configs, but wiped my root partition.

My issue started with weird fallback fonts on Firefox, someone mentioned its possible related to a locale issue.
https://bbs.archlinux.org/viewtopic.php?id=252067

Here's my firefox:

[2298, Main Thread] WARNING: Locale not supported by C library.
  Using the fallback 'C' locale.: 'glib warning', file /usr/src/debug/firefox/firefox-136.0.2/toolkit/xre/nsSigHandlers.cpp:201

(firefox:2298): Gtk-WARNING : 08:08:54.811: Locale not supported by C library.
  Using the fallback 'C' locale.

My Anki has some font rendering issues as well (managed to fix partially by installing previously used fonts backed up by my Manjaro's package_list)

Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.

waybar runs but the time module is disabled and hyprland/workspaces module is using an another font.

(process:2806): Gtk-WARNING : 08:09:16.205: Locale not supported by C library.
  Using the fallback 'C' locale.
[2025-03-22 08:09:16.305] [warning] module clock: Disabling module "clock", locale::facet::_S_create_c_locale name not valid

$ locale

locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=hu_HU.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Tried setting it according the Locale wiki article.
Any help hugely appreciated.

Last edited by Silgrond (2025-03-23 06:31:17)

Offline

#2 2025-03-22 00:40:29

loqs
Member
Registered: 2014-03-06
Posts: 18,875

Re: [solved] Font issue and Locale C?

What is the output of `locale -a`?

Offline

#3 2025-03-22 01:00:13

Silgrond
Member
Registered: 2025-03-20
Posts: 19

Re: [solved] Font issue and Locale C?

loqs wrote:

What is the output of `locale -a`?

Thank you for your quick reply!

locale -a

C
C.utf8
en_US.utf8
POSIX

Offline

#4 2025-03-22 03:13:02

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,171

Re: [solved] Font issue and Locale C?

You have

LC_TIME=hu_HU.UTF-8

which requires a locale you have not generated.

(I think it should have quotes, too, but I'm not sure about that.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2025-03-22 04:17:13

Silgrond
Member
Registered: 2025-03-20
Posts: 19

Re: [solved] Font issue and Locale C?

cfr wrote:

You have

LC_TIME=hu_HU.UTF-8

which requires a locale you have not generated.

(I think it should have quotes, too, but I'm not sure about that.)

Thank you, that fixed my problem of waybar not displaying time!

Firefox launches without problems too, however the font issue still persists.

See the following picture:

https://imgur.com/a/AhUH4kF

Please check how the pinned website icons' and the tab mute icon is misaligned, and how the browser's input bar has different font compared to the ddg search field.

fc-match "Sans Seriff"
matches NotoSans-Regular.ttf: "Noto Sans" "Regular"

(Also, any way to match "Monospace" to something-else? Do I have to do it with fontconfig?)

Last edited by Silgrond (2025-03-22 04:19:32)

Offline

#6 2025-03-22 07:09:44

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

Re: [solved] Font issue and Locale C?

(Also, any way to match "Monospace" to something-else? Do I have to do it with fontconfig?)

Yes.

Fonts of the url bar and the DDG input field seem to be the same family, but one more condensed resp. the other wider.
The font or the url bar (and tabs) will be defined by your gtk or firefore theme, the one in webpages by the firefox default fonts settings or the webpage itself.

I'm not even sure the mute icon there uses a font, but the icon is centered in the button - it's the button that isn't vertically centered, which is gonna be a problem specific to firefox (or the used theme)

Offline

#7 2025-03-23 06:31:01

Silgrond
Member
Registered: 2025-03-20
Posts: 19

Re: [solved] Font issue and Locale C?

Managed to fix my fonts with installing adw-gkt3 theme and setting it through
nwg-look (lxappearance did not work for me)
Firefox icon is still the same, but its not that much of an annoyance.

Thank you for your help, setting it as solved.

Offline

Board footer

Powered by FluxBB