You are not logged in.

#1 2022-02-08 19:11:44

Marvix
Member
Registered: 2013-10-08
Posts: 157

[SOLVED] System-wide font have changed rendering to smaller size

The last four days, system-wide Sans Regular 10 font have become rounder and smaller. I haven't changed anything that I know and I can't set it back as it was before.

It is very clear as I can see it with OpenBox menu and Firefox's elements (menu, bookmarks titles, websites). Also, an obvious change is with character dots that are now very small like pauses, when before they were large as letter height in size, as I see with seahorse and Firefox. QT-based software, like KeePassXC, are also affected, except dots.

Sans fonts are very rounded and, for me, are annoying.

Through LXAppearance I have set Sans Regular 10 since I ever had installed.

.gtkrc-2.0

include "/home/marvix/.gtkrc-2.0.mine"
gtk-theme-name="Arc-Dark"
gtk-icon-theme-name="Numix-Circle"
gtk-font-name="Sans 10"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=0
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="rgb"
gtk-modules="gail:atk-bridge"

I would also note that I have the below parameter set in the .bashrc file.

.bashrc

export GTK_RC_FILES=$HOME/.gtkrc-2.0

and also the environment variable.

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
# QT_STYLE_OVERRIDE=gtk2
# QT_QPA_PLATFORMTHEME=gtk2
# QT_QPA_PLATFORMTHEME=gtk3
QT_QPA_PLATFORMTHEME=qt5ct
# QT_QPA_PLATFORMTHEME=qt6ct

Does anything changed to Arch Linux font rendering? What it might be? How can it be repaired?

For now, I can't find a former screenshot and take an new, in order to attach them here, so you can see the difference and make the comparison.

Edit: Solution at the fifth post.

Last edited by Marvix (2022-02-09 07:30:13)

Offline

#2 2022-02-08 19:24:19

ishaanbhimwal
Member
Registered: 2022-01-21
Posts: 48
Website

Re: [SOLVED] System-wide font have changed rendering to smaller size

What is the output of "fc-match sans-serif && fc-match sans && fc-match serif && fc-match monospace". I recommend setting your fonts manually. See https://wiki.archlinux.org/title/Font_c … figuration.

Offline

#3 2022-02-08 19:32:34

Marvix
Member
Registered: 2013-10-08
Posts: 157

Re: [SOLVED] System-wide font have changed rendering to smaller size

ishaanbhimwal wrote:

What is the output of "fc-match sans-serif && fc-match sans && fc-match serif && fc-match monospace". I recommend setting your fonts manually. See https://wiki.archlinux.org/title/Font_c … figuration.

fc-match sans-serif && fc-match sans && fc-match serif && fc-match monospace

NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSerif-Regular.ttf: "Noto Serif" "Regular"
NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular"

Offline

#4 2022-02-08 19:33:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,302

Re: [SOLVED] System-wide font have changed rendering to smaller size

Sans is not a font but a type of family, so you are relying on implicit defaults, which was changed from Dejavu to Noto for wider coverage by the fontconfig project. To change this back you need to actually configure the fallback for the Sans family: https://wiki.archlinux.org/title/Font_c … ault_fonts

See https://wiki.archlinux.org/title/Font_c … figuration for potential file locations.

Offline

#5 2022-02-09 07:27:18

Marvix
Member
Registered: 2013-10-08
Posts: 157

Re: [SOLVED] System-wide font have changed rendering to smaller size

Thank you for your replies.

As I learned from the articles you gave to me, I deducted to create a fonts.conf in .conf/fontconfig directory with

.config/fontconfig/fonts.conf

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

	<match target="font">
		<edit mode="assign" name="antialias">
			<bool>true</bool>
		</edit>
		<edit mode="assign" name="embeddedbitmap">
			<bool>false</bool>
		</edit>
		<edit mode="assign" name="hinting">
			<bool>true</bool>
		</edit>
		<edit mode="assign" name="hintstyle">
			<const>hintslight</const>
		</edit>
		<edit mode="assign" name="lcdfilter">
			<const>lcddefault</const>
		</edit>
		<edit mode="assign" name="rgba">
			<const>rgb</const>
		</edit>
	</match>

	<alias>
		<family>sans-serif</family>
		<prefer>
			<family>DejaVu Sans</family>
		</prefer>
	</alias>

	<alias>
		<family>serif</family>
		<prefer>
			<family>DejaVu Serif</family>
		</prefer>
	</alias>

	<alias>
		<family>monospace</family>
		<prefer>
			<family>DejaVu Sans Mono</family>
		</prefer>
	</alias>

</fontconfig>

The first part with match target are taken from font example and the second came from my deduction from the wiki article.

After I executed `fc-cache` with the verbose parameter `fc-cache -v`, in order to have output message, immediately I saw the changes in Firefox's bookmark folder, in PCManFM, but not in window titles and OpenBox menu. Now, after I restarted the system, the previous issues are now solved.

Thank you again for your help. I will update the thread as solved.

Offline

#6 2022-02-09 07:58:33

jasondaigo
Member
Registered: 2017-04-21
Posts: 12

Re: [SOLVED] System-wide font have changed rendering to smaller size

just saying its so weird not having this config file personally fpr years and out of sudden this happens. (my fonts got larger though ^^)

Offline

#7 2022-02-09 08:35:22

Marvix
Member
Registered: 2013-10-08
Posts: 157

Re: [SOLVED] System-wide font have changed rendering to smaller size

jasondaigo wrote:

just saying its so weird not having this config file personally fpr years and out of sudden this happens. (my fonts got larger though ^^)

I have so little time available, and for years I don't make decent progress learning Linux. Linux needs time, that's a fact.

Offline

Board footer

Powered by FluxBB