You are not logged in.
I asked on Anki_Forum and they said
Given that it happens with both system and bundled Qt libraries, I’m guessing it’s some font-related issue. Your distro’s forums may have some ideas.[phoenix@ArchLinux ~]$ grep ttf /var/lo
local/ lock/ log/
[phoenix@ArchLinux ~]$ grep ttf /var/log/pacman.log
[2023-08-15T13:53:12+0530] [ALPM] installed ttf-opensans (1.101-2)
[2023-08-16T11:36:03+0530] [PACMAN] Running 'pacman -S --config /etc/pacman.conf -- extra/ttf-fira-code'
[2023-08-16T11:36:06+0530] [ALPM] installed ttf-fira-code (6.2-2)
[2023-08-16T11:36:06+0530] [PACMAN] Running 'pacman -D -q --asexplicit --config /etc/pacman.conf -- ttf-fira-code'
[2023-08-16T17:52:23+0530] [PACMAN] Running 'pacman -S --config /etc/pacman.conf -- extra/ttf-jetbrains-mono-nerd'
[2023-08-16T17:52:47+0530] [ALPM] installed ttf-jetbrains-mono-nerd (3.0.2-1)
[2023-08-16T17:52:48+0530] [PACMAN] Running 'pacman -D -q --asexplicit --config /etc/pacman.conf -- ttf-jetbrains-mono-nerd'
[2023-08-17T22:08:29+0530] [ALPM] installed ttf-hack (3.003-6)
[2023-08-18T10:34:16+0530] [PACMAN] Running 'pacman -S -y -u --config /etc/pacman.conf -- extra/ttf-liberation'
[2023-08-18T10:35:25+0530] [ALPM] installed ttf-liberation (2.1.5-1)
[2023-08-18T10:36:38+0530] [PACMAN] Running 'pacman -D -q --asdeps --config /etc/pacman.conf -- ttf-liberation'
[2023-08-31T03:04:23+0530] [PACMAN] Running 'pacman -U --config /etc/pacman.conf -- /home/guest/.cache/yay/python-material-color-utilities/python-material-color-utilities-0.1.5-1-any.pkg.tar.zst /home/guest/.cache/yay/geticons/geticons-1.2.2-1-x86_64.pkg.tar.zst /home/guest/.cache/yay/gojq/gojq-0.12.13-1-x86_64.pkg.tar.zst /home/guest/.cache/yay/gtklock-playerctl-module/gtklock-playerctl-module-2.0.1-1-x86_64.pkg.tar.zst /home/guest/.cache/yay/cava/cava-0.9.0-2-any.pkg.tar.zst /home/guest/.cache/yay/material-symbols-git/ttf-material-symbols-git-4.0.0+r86+g589092d9a7-1-any.pkg.tar.zst /home/guest/.cache/yay/swww/swww-0.8.1-0-x86_64.pkg.tar.zst /home/guest/.cache/yay/wlogout/wlogout-1.1.1-3-x86_64.pkg.tar.zst /home/guest/.cache/yay/gtklock-powerbar-module/gtklock-powerbar-module-2.0.1-1-x86_64.pkg.tar.zst /home/guest/.cache/yay/gtklock-userinfo-module/gtklock-userinfo-module-2.0.0-1-x86_64.pkg.tar.zst /home/guest/.cache/yay/lexend-fonts-git/lexend-fonts-git-1:r114.7894f02-2-any.pkg.tar.zst'
[2023-08-31T03:04:24+0530] [ALPM] installed ttf-material-symbols-git (4.0.0+r86+g589092d9a7-1)
[2023-08-31T03:04:24+0530] [PACMAN] Running 'pacman -D -q --asexplicit --config /etc/pacman.conf -- python-material-color-utilities geticons gojq gtklock-playerctl-module cava ttf-material-symbols-git swww wlogout gtklock-powerbar-module gtklock-userinfo-module lexend-fonts-git'also i have
noto-fonts-cjk.
Other than this i haven't done any explicit font configuration.
System info ->
1920x1080@144hz, Scaling - 1.25
Anki_Version 2.1.65 (aa9a734f)
Python 3.11.5 Qt 6.5.2 PyQt 6.5.2
OS: Arch Linux x86_64
Kernel: 6.4.12-arch1-1
DE: HyprlandLast edited by phoenix324 (2023-09-04 06:59:58)
Offline
1920x1080@144hz, Scaling - 1.25
Make that "1", still blurry?
Does your anki use xwayland?
=> https://wiki.archlinux.org/title/Anki#Wayland
Offline
1920x1080@144hz, Scaling - 1.25
Make that "1", still blurry?
I switched scaling to 1, and it looking good now. But i need 1.25 scaling. 1 is too small , 2 is too big. 1.25 is perfect.
Does your anki use xwayland?
=> https://wiki.archlinux.org/title/Anki#Wayland
No it is not using xwayland by default . i have currently these variables exported in environment ->
In .bashrc
export QT_QPA_PLATFORM=wayland
export ANKI_WAYLAND=1In hyprland.conf
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = GDK_BACKEND,wayland
env = QT_QPA_PLATFORM,wayland
env = QT_QPA_PLATFORMTHEME,qt5ct
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = XDG_PICTURES_DIR,$HOME/PicturesAlso this is applied to force-zero-scaling for xwayland ->
# unscale XWayland
xwayland {
force_zero_scaling = true
}-------------------------------------------------------------------------
Observations ->
If i force anki to use xwayland by setting
exort QT_QPA_PLATFORM='xcb', anki runs under xwayland and perfectly renders fonts.
The problem is , i don't want all apps to run under xwayland by setting QT_QPA_PLATFORM='xcb', if the only solution is to run anki under xwayland , is there a way to specifically force only anki to use xwayland.
I tried setting export ANKI_WAYLAND=0, but it has no effect , only QT_QPA_PLATFORM='xcb' affects wether it will run under wayland or xwayland. ( i will ask on anki forum about this ,just in case ).
Offline
You could shadow /usr/bin/anki w/ /usr/local/bin/anki
#!/bin/sh
exort QT_QPA_PLATFORM='xcb'
exec /usr/bin/anki "$@"But it would seem a bit weird that Anki is the only Qt/wayland client that ends up w/ supersampled text scaling.
o/c there's not gonna be a problem if you unscale Xwayland (where otherwise the blur would be systematic, what I initially suspected to be the reason)
Offline
Sorry, i didn't understand what `o/c` and `/w` meant. `/w` most probably would be 'with'.
For now , i am going with
alias anki='QT_QPA_PLATFORM=xcb ankiI will leave this Post opened for some time as i have asked on anki-forum to, after i received you reply wether it is a known bug or just specific to me. Thanks for the help.
Offline
Now i realise you solution of shadowing anki is way better , Thanks.
Offline
"of/course" ![]()
Offline