Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-03-29 12:38:37

fdelente
Member
Registered: 2012-12-30
Posts: 19

Font has a wrong size on startup, but shows correctly afterward

Hello,

I'm using xfce 4.16.1 through official packages on Fedora 35.

I fiddled a bit the fonts to find one that suited me but ended up reverting to the one I used (Noah Regular). However, when I login, the font is 2pt smaller that the size I request: I set up Noah 10 pt, it shows as 8pt, even though it is shown as 10 pt in the "appearance" dialog. After growing the size to 12 pt and reverting to 10 pt, the font shows correctly as 10 pt.

I didn't change the font file itself, I just tried several fonts and ended up reverting to the one I used without issue for several months; it's just since yesterday that the font displays incorrectly. Is there somewhere a config file that has been corrupted and that I need to modify or erase? I only know about .config/fontconfig/fonts.conf, and I don't have this file in my HOME.

Thanks for any hint!

F. Delente

Offline

#2 2022-03-29 13:56:49

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Font has a wrong size on startup, but shows correctly afterward

Is there anything in ~/.config/gtk-3.0/gtk.css or ~/.config/gtk-3.0/settings.ini that affects font size?

The other thing to try would be to delete your saved sessions cache (delete the contents of ~/.cache/sessions) while not logged in - best to reboot, and before logging in to the desktop environment, drop over to a console (Ctrl+Alt+F2), log in and delete the contents of that directory.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-03-29 15:05:56

fdelente
Member
Registered: 2012-12-30
Posts: 19

Re: Font has a wrong size on startup, but shows correctly afterward

Thank you for your ideas; I didn't have the gtk.css and settings.ini files; and removing the .cache/sessions folder while logged out of XFCE didn't solve the problem, when I restart XFCE I still had a font too small at first.

Thanks again however!

Offline

#4 2022-03-29 17:20:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Font has a wrong size on startup, but shows correctly afterward

Try this. After you login and the font is small, run the following two commands:

xfconf-query -c xsettings -lv

...post back the output, and:

XFSETTINGSD_DEBUG=1 xfsettingsd --replace --no-daemon

See if this second command fixes the problem, and if not, post back the output that the it generates.

Edit:
Can I also see:

ls -al ~/.config/xfce4/xfconf/xfce-perchannel-xml/

Last edited by ToZ (2022-03-29 17:23:02)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2022-03-30 08:16:04

fdelente
Member
Registered: 2012-12-30
Posts: 19

Re: Font has a wrong size on startup, but shows correctly afterward

Here is the output from xfconf-query:

/Gdk/WindowScalingFactor        1
/Gtk/ButtonImages               true
/Gtk/CanChangeAccels            false
/Gtk/ColorPalette               black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90
/Gtk/CursorThemeName            
/Gtk/CursorThemeSize            0
/Gtk/DecorationLayout           menu:minimize,maximize,close
/Gtk/DialogsUseHeader           true
/Gtk/FontName                   Noah 10
/Gtk/IconSizes                  
/Gtk/IMModule                   gtk-im-context-simple:xim
/Gtk/KeyThemeName               
/Gtk/MenuBarAccel               F10
/Gtk/MenuImages                 true
/Gtk/MonospaceFontName          Fira Code 10
/Gtk/TitlebarMiddleClick        lower
/Gtk/ToolbarIconSize            3
/Gtk/ToolbarStyle               icons
/Net/CursorBlink                true
/Net/CursorBlinkTime            1200
/Net/DndDragThreshold           8
/Net/DoubleClickDistance        5
/Net/DoubleClickTime            400
/Net/EnableEventSounds          false
/Net/EnableInputFeedbackSounds  false
/Net/IconThemeName              Numix-Circle
/Net/SoundThemeName             default
/Net/ThemeName                  Numix
/Xfce/LastCustomDPI             96
/Xft/Antialias                  1
/Xft/DPI                        -1
/Xft/Hinting                    1
/Xft/HintStyle                  hintfull
/Xft/RGBA                       vbgr

and from xfsettingsd:

xfce4-settings(xsettings): _XSETTINGS_S0 registered on screen 0
xfce4-settings(xsettings): 33 settings changed (serial=0, len=1292)
xfce4-settings(xsettings): resource manager (xft) changed (len=125)
xfce4-settings(displays): Detected CRTC 479.
xfce4-settings(displays): Detected CRTC 441.
xfce4-settings(displays): Detected CRTC 442.
xfce4-settings(displays): Detected CRTC 443.
xfce4-settings(displays): Detected CRTC 444.
xfce4-settings(displays): Detected CRTC 480.
xfce4-settings(displays): Detected CRTC 481.
xfce4-settings(displays): Detected output 482 eDP-1-1.
xfce4-settings(displays): No matching display profiles found.
xfce4-settings(displays): CRTC 479 assigned to eDP-1-1.
xfce4-settings(displays): CRTC 479, output list[0] -> 482.
xfce4-settings(displays): Total 1 active output(s).
xfce4-settings(displays): Normalized CRTC 479: size=1920x1080, pos=0x0.
xfce4-settings(displays): min_h = 8, min_w = 8, max_h = 32767, max_w = 32767, prev_h = 1080, prev_w = 1920, prev_hmm = 286, prev_wmm = 508, h = 1080, w = 1920, hmm = 286, wmm = 508.
xfce4-settings(displays): Configuring CRTC 479.
xfce4-settings(displays): Configuring CRTC 441.
xfce4-settings(displays): Configuring CRTC 442.
xfce4-settings(displays): Configuring CRTC 443.
xfce4-settings(displays): Configuring CRTC 444.
xfce4-settings(displays): Configuring CRTC 480.
xfce4-settings(displays): Configuring CRTC 481.
xfce4-settings(pointers): initialized xi 2.3
xfce4-settings(keyboards): initialized xkb 1.0
xfce4-settings(keyboards): set auto repeat on
xfce4-settings(keyboards): set key repeat (delay=244, rate=25)
xfce4-settings(keyboards): set numlock off
xfce4-settings(accessibility): AccessXKeys disabled
xfce4-settings(accessibility): stickykeys disabled
xfce4-settings(accessibility): slowkeys disabled
xfce4-settings(accessibility): bouncekeys disabled
xfce4-settings(accessibility): mousekeys disabled
xfce4-settings(keyboard-shortcuts): 39 shortcuts loaded
xfce4-settings(fontconfig): monitoring 149 paths
xfce4-settings(workspaces): 1 desktop names set from xfconf

The xfsettings command correctly modifies the font size.

ls -al for the XML files gives:

total 180
drwx------. 2 fab fab  4096 Mar 30 10:10 ./
drwxr-xr-x. 3 fab fab  4096 Jan 22  2020 ../
-rw-r--r--. 1 fab fab   910 Jan 13 12:13 catfish.xml
-rw-r--r--. 1 fab fab  7251 Mar 27 16:51 displays.xml
-rw-r--r--. 1 fab fab   328 Mar  6  2021 keyboard-layout.xml
-rw-r--r--. 1 fab fab   371 Mar 23 22:20 keyboards.xml
-rw-r--r--. 1 fab fab   553 Jan 22  2020 parole.xml
-rw-r--r--. 1 fab fab   891 Dec 13 16:34 thunar.xml
-rw-r--r--. 1 fab fab  2162 Jan 23 13:19 xfce4-appfinder.xml
-rw-r--r--. 1 fab fab  5183 Mar 27 18:55 xfce4-desktop.xml
-rw-r--r--. 1 fab fab 15439 Jan 27 09:20 xfce4-keyboard-shortcuts.xml
-rw-r--r--. 1 fab fab 16370 Jul 24  2021 xfce4-keyboard-shortcuts.xml_ori
-rw-r--r--. 1 fab fab   448 Jan 31  2020 xfce4-mime-settings.xml
-rw-r--r--. 1 fab fab  2328 Mar 26 19:48 xfce4-notifyd.xml
-rw-r--r--. 1 fab fab 55827 Mar 30 09:53 xfce4-panel.xml
-rw-r--r--. 1 fab fab  1607 Mar 30 10:10 xfce4-power-manager.xml
-rw-r--r--. 1 fab fab   368 Jul  9  2021 xfce4-screensaver.xml
-rw-r--r--. 1 fab fab  1626 Jul 24  2021 xfce4-session.xml
-rw-r--r--. 1 fab fab   336 Jan 22  2020 xfce4-settings-editor.xml
-rw-r--r--. 1 fab fab   339 Mar 26 19:46 xfce4-settings-manager.xml
-rw-r--r--. 1 fab fab   456 Jan 22  2020 xfdashboard.xml
-rw-r--r--. 1 fab fab  5496 Mar 27 18:53 xfwm4.xml
-rw-r--r--. 1 fab fab  2224 Mar 30 08:33 xsettings.xml

Thanks again for your help!

Offline

#6 2022-03-30 11:14:19

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Font has a wrong size on startup, but shows correctly afterward

fdelente wrote:

The xfsettings command correctly modifies the font size.

So its possible that during startup, xfsettingsd properly sets the font size but then something else changes it.

Do you have an ~/.Xresources file? If so what is the content?

One other thing to try. After startup when the font is incorrect, does running this command fix it?

xfconf-query -c xsettings -p /Gtk/FontName -s "Noah 10"

Do you have an ~/.xsession-errors file? If so, can you post back its content after a fresh boot?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2022-03-31 14:34:32

fdelente
Member
Registered: 2012-12-30
Posts: 19

Re: Font has a wrong size on startup, but shows correctly afterward

No, I don't have a .Xresources file, and nothing in .xsession-errors (it's an empy file).

There has been an update of the nvidia driver that I use through RPMfusion yesterday, it seems to have made the problem go away. But it appeared outside of a driver update, when I had been on the previous version for a long time (3 month?) so I don't think it's related to the driver, except if it resets some files somewhere.

Thanks for your help!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 578.54 KiB (Peak: 595.38 KiB) ]