You are not logged in.

#1 2024-01-25 01:48:45

PhtRonin
Member
Registered: 2024-01-25
Posts: 3

[SOLVED] No aliasing on Gtk apps

Hey guys what's up, i've been cracking my head trying to fix this issue, some apps like lutris and virt-manager are not showing fonts properly, i think it's related to the anti-aliasing issue from arch. I already tried a few fixes from the wiki https://wiki.archlinux.org/title/Font_c … figuration

What i already tried:
setting up configuration on xsettingsd (No deal)
Stuff from the section Hinting in GTK4 programs, did that to gtk-3 settings too and the issue persists
created local.conf and messed with that too no deal

I'm out of ideas, first image  is the font maxed out on gnome-tweaks, and i think it should look like the default system font on the second image, the third image is what it looks like on lutris
https://imgur.com/a/PPtHcA3

I'm already making my peace and accepting as is lmao

Last edited by PhtRonin (2024-01-26 13:40:56)

Offline

#2 2024-01-25 08:15:05

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

Re: [SOLVED] No aliasing on Gtk apps

Wtf is "the anti-aliasing issue from arch"?
The screenshots are significantly artifacted jpegs, but looks like antialiasing indeed.
nb. that that's NOT hinting.

tried a few fixes… setting up configuration on xsettingsd (No deal)
Stuff from the section Hinting in GTK4 programs, did that to gtk-3 settings too and the issue persists
created local.conf and messed with that too no deal

So you did stuff™ and it didn't work™ because you done fucked up®…

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

fc-conflist
printenv

And post any file in ~/.fonts.conf/ & ~/.fonts.conf.d/*
Are eg. Qt clients also affected?

~/.xsettingsd isn't necessarily parsed

xrdb -q | grep -i xft
loginctl session-status

Please use [code][/code] tags for all outputs and file contents.

Offline

#3 2024-01-25 16:40:03

PhtRonin
Member
Registered: 2024-01-25
Posts: 3

Re: [SOLVED] No aliasing on Gtk apps

seth wrote:

Wtf is "the anti-aliasing issue from arch"?
The screenshots are significantly artifacted jpegs, but looks like antialiasing indeed.
nb. that that's NOT hinting.

tried a few fixes… setting up configuration on xsettingsd (No deal)
Stuff from the section Hinting in GTK4 programs, did that to gtk-3 settings too and the issue persists
created local.conf and messed with that too no deal

So you did stuff™ and it didn't work™ because you done fucked up®…

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

fc-conflist
printenv

And post any file in ~/.fonts.conf/ & ~/.fonts.conf.d/*
Are eg. Qt clients also affected?

~/.xsettingsd isn't necessarily parsed

xrdb -q | grep -i xft
loginctl session-status

Please use [code][/code] tags for all outputs and file contents.

Well bro, i'm not an linux expert but this issue pursuits me everytime i try a distro derived from arch and it affects only gtk applications so i assumed it's something to do with arch, but if it's not then my bad
I was only following the arch wiki because i thought it was related lmao
But ok, glad it's nothing serious, so far is affecting only gtk

And no hard fellings bro, i was just stating what i did, didn't mean to upset anyone here


Anyways here is the code

 ╭─wanderson@WandersonPc in ~ took 24ms
╰─λ fc-conflist
+ /etc/fonts/conf.d/10-hinting-slight.conf: Set hintslight to hintstyle
+ /etc/fonts/conf.d/10-scale-bitmap-fonts.conf: Bitmap scaling
+ /etc/fonts/conf.d/10-sub-pixel-rgb.conf: Enable sub-pixel rendering with the RGB stripes layout
+ /etc/fonts/conf.d/10-yes-antialias.conf: Enable antialiasing
+ /etc/fonts/conf.d/11-lcdfilter-default.conf: Use lcddefault as default for LCD filter
+ /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-serif.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-vera.conf: Disable hinting for Bitstream Vera fonts when the size is less than 8ppem
+ /etc/fonts/conf.d/30-metric-aliases.conf: Set substitutions for similar/metric-compatible families
+ /etc/fonts/conf.d/30-win32-aliases.conf: No description
+ /etc/fonts/conf.d/40-nonlatin.conf: Set substitutions for non-Latin fonts
+ /etc/fonts/conf.d/45-generic.conf: Set substitutions for emoji/math fonts
+ /etc/fonts/conf.d/45-latin.conf: Set substitutions for Latin fonts
+ /etc/fonts/conf.d/46-noto-mono.conf: No description
+ /etc/fonts/conf.d/46-noto-sans.conf: No description
+ /etc/fonts/conf.d/46-noto-serif.conf: No description
+ /etc/fonts/conf.d/48-spacing.conf: Add mono to the family when spacing is 100
+ /etc/fonts/conf.d/49-sansserif.conf: Add sans-serif to the family when no generic name
+ /etc/fonts/conf.d/50-user.conf: Load per-user customization files
+ /etc/fonts/local.conf: No description
+ /etc/fonts/conf.d/51-local.conf: Load local customization file
+ /etc/fonts/conf.d/57-dejavu-sans-mono.conf: No description
+ /etc/fonts/conf.d/57-dejavu-sans.conf: No description
+ /etc/fonts/conf.d/57-dejavu-serif.conf: No description
+ /etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf: No description
+ /etc/fonts/conf.d/58-dejavu-lgc-sans.conf: No description
+ /etc/fonts/conf.d/58-dejavu-lgc-serif.conf: No description
+ /etc/fonts/conf.d/60-generic.conf: Set preferable fonts for emoji/math fonts
+ /etc/fonts/conf.d/60-latin.conf: Set preferable fonts for Latin
+ /etc/fonts/conf.d/65-fonts-persian.conf: No description
+ /etc/fonts/conf.d/65-nonlatin.conf: Set preferable fonts for non-Latin
+ /etc/fonts/conf.d/65-wqy-zenhei.conf: No description
+ /etc/fonts/conf.d/66-noto-mono.conf: No description
+ /etc/fonts/conf.d/66-noto-sans.conf: No description
+ /etc/fonts/conf.d/66-noto-serif.conf: No description
+ /etc/fonts/conf.d/69-unifont.conf: No description
+ /etc/fonts/conf.d/70-noto-cjk.conf: No description
+ /etc/fonts/conf.d/75-noto-color-emoji.conf: No description
+ /etc/fonts/conf.d/75-yes-terminus.conf: No description
+ /etc/fonts/conf.d/80-delicious.conf: No description
+ /etc/fonts/conf.d/90-synthetic.conf: No description
+ /etc/fonts/fonts.conf: Default configuration file
- /usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf: Re-define fonts dirs sample
- /usr/share/fontconfig/conf.avail/09-autohint-if-no-hinting.conf: Enable autohinter if font doesn't have any hinting
- /usr/share/fontconfig/conf.avail/10-autohint.conf: Enable autohinter
- /usr/share/fontconfig/conf.avail/10-hinting-full.conf: Set hintfull to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-medium.conf: Set hintmedium to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-none.conf: Set hintnone to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-slight.conf: Set hintslight to hintstyle
- /usr/share/fontconfig/conf.avail/10-no-antialias.conf: Disable antialiasing
- /usr/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf: Bitmap scaling
- /usr/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf: Enable sub-pixel rendering with the BGR stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-none.conf: Disable sub-pixel rendering
- /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf: Enable sub-pixel rendering with the RGB stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf: Enable sub-pixel rendering with the vertical BGR stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf: Enable sub-pixel rendering with the vertical RGB stripes layout
- /usr/share/fontconfig/conf.avail/10-unhinted.conf: Disable hinting
- /usr/share/fontconfig/conf.avail/10-yes-antialias.conf: Enable antialiasing
- /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf: Use lcddefault as default for LCD filter
- /usr/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf: Use lcdlegacy as default for LCD filter
- /usr/share/fontconfig/conf.avail/11-lcdfilter-light.conf: Use lcdlight as default for LCD filter
- /usr/share/fontconfig/conf.avail/11-lcdfilter-none.conf: Use lcdnone as default for LCD filter
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-sans.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-serif.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-sans.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-serif.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-vera.conf: Disable hinting for Bitstream Vera fonts when the size is less than 8ppem
- /usr/share/fontconfig/conf.avail/25-unhint-nonlatin.conf: Disable hinting for CJK fonts
- /usr/share/fontconfig/conf.avail/30-metric-aliases.conf: Set substitutions for similar/metric-compatible families
- /usr/share/fontconfig/conf.avail/30-win32-aliases.conf: No description
- /usr/share/fontconfig/conf.avail/35-lang-normalize.conf: No description
- /usr/share/fontconfig/conf.avail/40-nonlatin.conf: Set substitutions for non-Latin fonts
- /usr/share/fontconfig/conf.avail/43-wqy-zenhei-sharp.conf: No description
- /usr/share/fontconfig/conf.avail/45-Hack.conf: No description
- /usr/share/fontconfig/conf.avail/45-generic.conf: Set substitutions for emoji/math fonts
- /usr/share/fontconfig/conf.avail/45-latin.conf: Set substitutions for Latin fonts
- /usr/share/fontconfig/conf.avail/46-noto-mono.conf: No description
- /usr/share/fontconfig/conf.avail/46-noto-sans.conf: No description
- /usr/share/fontconfig/conf.avail/46-noto-serif.conf: No description
- /usr/share/fontconfig/conf.avail/48-spacing.conf: Add mono to the family when spacing is 100
- /usr/share/fontconfig/conf.avail/49-sansserif.conf: Add sans-serif to the family when no generic name
- /usr/share/fontconfig/conf.avail/50-user.conf: Load per-user customization files
- /usr/share/fontconfig/conf.avail/51-local.conf: Load local customization file
- /usr/share/fontconfig/conf.avail/57-dejavu-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/57-dejavu-sans.conf: No description
- /usr/share/fontconfig/conf.avail/57-dejavu-serif.conf: No description
- /usr/share/fontconfig/conf.avail/58-dejavu-lgc-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/58-dejavu-lgc-sans.conf: No description
- /usr/share/fontconfig/conf.avail/58-dejavu-lgc-serif.conf: No description
- /usr/share/fontconfig/conf.avail/60-generic.conf: Set preferable fonts for emoji/math fonts
- /usr/share/fontconfig/conf.avail/60-latin.conf: Set preferable fonts for Latin
- /usr/share/fontconfig/conf.avail/65-fonts-persian.conf: No description
- /usr/share/fontconfig/conf.avail/65-khmer.conf: No description
- /usr/share/fontconfig/conf.avail/65-nonlatin.conf: Set preferable fonts for non-Latin
- /usr/share/fontconfig/conf.avail/65-wqy-zenhei.conf: No description
- /usr/share/fontconfig/conf.avail/66-noto-mono.conf: No description
- /usr/share/fontconfig/conf.avail/66-noto-sans.conf: No description
- /usr/share/fontconfig/conf.avail/66-noto-serif.conf: No description
- /usr/share/fontconfig/conf.avail/69-unifont.conf: No description
- /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf: Reject bitmap fonts
- /usr/share/fontconfig/conf.avail/70-noto-cjk.conf: No description
- /usr/share/fontconfig/conf.avail/70-yes-bitmaps.conf: Accept bitmap fonts
- /usr/share/fontconfig/conf.avail/75-yes-terminus.conf: No description
- /usr/share/fontconfig/conf.avail/80-delicious.conf: No description
- /usr/share/fontconfig/conf.avail/90-synthetic.conf: No description

╭─wanderson@WandersonPc in ~ took 14ms
╰─λ printenv
HOME=/home/wanderson
JOURNAL_STREAM=8:12980
HG=/usr/bin/hg
INVOCATION_ID=e156b81c998c491caebdaaa394f3482a
KONSOLE_VERSION=230804
STARSHIP_SHELL=fish
KONSOLE_DBUS_SERVICE=:1.52
KDE_SESSION_UID=1000
LANG=pt_BR.UTF-8
LANGUAGE=
LC_IDENTIFICATION=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
PLASMA_USE_QT_SCALING=1
LC_NAME=pt_BR.UTF-8
MOTD_SHOWN=pam
LC_NUMERIC=pt_BR.UTF-8
LC_ADDRESS=pt_BR.UTF-8
XDG_SEAT=seat0
TERM=xterm-256color
DESKTOP_SESSION=plasmawayland
XCURSOR_SIZE=24
WAYLAND_DISPLAY=wayland-0
KONSOLE_DBUS_SESSION=/Sessions/1
LC_PAPER=pt_BR.UTF-8
XAUTHORITY=/run/user/1000/xauth_hEeQEH
QT_AUTO_SCREEN_SCALE_FACTOR=0
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
USER=wanderson
PROFILEHOME=
LOGNAME=wanderson
XCURSOR_THEME=Sweet-cursors
MANPAGER=sh -c 'col -bx | bat -l man -p'
SHELL_SESSION_ID=da280c21c2204aecaf25ddeb4e54becc
AMD_VULKAN_ICD=RADV
SYSTEMD_EXEC_PID=1888
SHLVL=1
BROWSER=firedragon
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
SHELL=/usr/bin/fish
EDITOR=/usr/bin/micro
GTK_RC_FILES=/etc/gtk/gtkrc:/home/wanderson/.gtkrc:/home/wanderson/.config/gtkrc
XKB_DEFAULT_LAYOUT=br
LC_MONETARY=pt_BR.UTF-8
COLORFGBG=15;0
COLORTERM=truecolor
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/wanderson/.gtkrc-2.0:/home/wanderson/.config/gtkrc-2.0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
GTK_USE_PORTAL=1
XDG_SESSION_CLASS=user
XDG_VTNR=1
XDG_SESSION_TYPE=wayland
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_ID=2
PWD=/home/wanderson
KONSOLE_DBUS_WINDOW=/Windows/1
XDG_CURRENT_DESKTOP=KDE
WINDOWID=2
XDG_RUNTIME_DIR=/run/user/1000
QT_WAYLAND_FORCE_DPI=96
XDG_ACTIVATION_TOKEN=kwin-3
KDE_SESSION_VERSION=5
VISUAL=kate
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
XDG_SESSION_DESKTOP=KDE
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
KDE_APPLICATIONS_AS_SCOPE=1
STARSHIP_SESSION_KEY=7815114112169220
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service/memory.pressure
SESSION_MANAGER=local/WandersonPc:@/tmp/.ICE-unix/1834,unix/WandersonPc:/tmp/.ICE-unix/1834
MANAGERPID=1379
LC_TIME=pt_BR.UTF-8
KDE_FULL_SESSION=true
XDG_CONFIG_DIRS=/home/wanderson/.config/kdedefaults:/etc/xdg
DISPLAY=:1
MAIL=/var/spool/mail/wanderson
LC_TELEPHONE=pt_BR.UTF-8

Sorry bro another nb problem here, i didn't understand what you meant by posting the files (if it means attach them here i didn't find the option, new here) So i'm gonna post the config from fonts.conf and a image from fonts.conf.d

fonts.conf

 <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
	<description>Default configuration file</description>

<!--
	DO NOT EDIT THIS FILE.
	IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
	LOCAL CHANGES BELONG IN 'local.conf'.

	The intent of this standard configuration file is to be adequate for
	most environments.  If you have a reasonably normal environment and
	have found problems with this configuration, they are probably
	things that others will also want fixed.  Please submit any problems
	to the fontconfig issue tracking system located at fontconfig.org

	Note that the normal 'make install' procedure for fontconfig is to
	replace any existing fonts.conf file with the new version.  Place
	any local customizations in local.conf which this file references.

	Keith Packard
-->

<!-- Font directory list -->

	<dir>/usr/share/fonts</dir>
	<dir>/usr/local/share/fonts</dir>

	
	<dir prefix="xdg">fonts</dir>
	<!-- the following element will be removed in the future -->
	<dir>~/.fonts</dir>

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>mono</string>
		</test>
		<edit name="family" mode="assign" binding="same">
			<string>monospace</string>
		</edit>
	</match>

<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans serif</string>
		</test>
		<edit name="family" mode="assign" binding="same">
			<string>sans-serif</string>
		</edit>
	</match>

<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans</string>
		</test>
		<edit name="family" mode="assign" binding="same">
			<string>sans-serif</string>
		</edit>
	</match>
<!--
  Accept alternate 'system ui' spelling, replacing it with 'system-ui'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>system ui</string>
		</test>
		<edit name="family" mode="assign" binding="same">
			<string>system-ui</string>
		</edit>
	</match>

<!--
  Load local system customization file
-->
	<include ignore_missing="yes">conf.d</include>

<!-- Font cache directory list -->

	<cachedir>/var/cache/fontconfig</cachedir>
	<cachedir prefix="xdg">fontconfig</cachedir>
	<!-- the following element will be removed in the future -->
	<cachedir>~/.fontconfig</cachedir>

	<config>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
 -->
		<rescan>
			<int>30</int>
		</rescan>
	</config>
	 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>false</bool>
  </edit>
 </match>

</fontconfig>

fonts.conf.d
https://imgur.com/a/xsfP6br


Apologies for any inconvenience and thanks for the help

Offline

#4 2024-01-25 20:07:38

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

Re: [SOLVED] No aliasing on Gtk apps

XDG_SESSION_TYPE=wayland

Do you have the same problems when running KDE on X11?

~/.fonts.conf/ & ~/.fonts.conf.d/* - not the paths under /etc - and please don't post images of your filebrowser to list files but the output of ls.

Also please avoid fully quoting posts for no reason, you're bloating the thread, "bro".

Offline

#5 2024-01-26 04:04:01

PhtRonin
Member
Registered: 2024-01-25
Posts: 3

Re: [SOLVED] No aliasing on Gtk apps

seth wrote:
XDG_SESSION_TYPE=wayland

Do you have the same problems when running KDE on X11?

Actually i tested just now and it's working flawlessly on X11, this only happens on wayland

seth wrote:

~/.fonts.conf/ & ~/.fonts.conf.d/* - not the paths under /etc - and please don't post images of your filebrowser to list files but the output of ls.

I didn't find these files on this directory only under /etc that's why i posted those

Edit: Thanks to your insight i just found out this is a known bug on wayland.

Solution: My system had XDG Desktop Portal installed but it was not configured https://wiki.archlinux.org/title/XDG_De … figuration
already configured and tested here, fixed the issue. Again thank you

Last edited by PhtRonin (2024-01-26 13:43:26)

Offline

#6 2024-01-26 09:31:12

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

Re: [SOLVED] No aliasing on Gtk apps

\o/
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

Board footer

Powered by FluxBB