#[moved to archforum] Anki font issue.

9 messages · Page 1 of 1 (latest)

gusty viper
#

I asked on AnkiForum and this was the reply - 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. https://forums.ankiweb.net/t/pixelated-text-anki-in-hyprland-and-plasma-wayland-with-scaling-1-25/33746/3

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: Hyprland

Same behaviour is for Plasma-wayland Session, only plasma-x11 is showing anki perfectly.

[phoenix@ArchLinux ~]$ echo $ANKI_WAYLAND 
1
[phoenix@ArchLinux ~]$ echo $QT_QPA_PLATFORM 
wayland

These variables are defined in ~/.bashrc

#
[phoenix@ArchLinux ~]$ yay -Qs ttf
local/gnu-free-fonts 20120503-8
    A free family of scalable outline fonts
local/noto-fonts 1:23.8.1-1
    Google Noto TTF fonts
local/ttf-fira-code 6.2-2
    Monospaced font with programming ligatures
local/ttf-hack 3.003-6
    A hand groomed and optically balanced typeface based on Bitstream Vera Mono.
local/ttf-jetbrains-mono-nerd 3.0.2-1 (nerd-fonts)
    Patched font JetBrains Mono from nerd fonts library
local/ttf-liberation 2.1.5-1
    Font family which aims at metric compatibility with Arial, Times New Roman,
    and Courier New
local/ttf-opensans 1.101-2
    Sans-serif typeface commissioned by Google
cunning fulcrum
#

show your fontconfig

#

cat ~/.config/fontconfig/fonts.conf

gusty viper
# cunning fulcrum cat ~/.config/fontconfig/fonts.conf
[phoenix@ArchLinux ~]$ cat .config/fontconfig/fonts.conf
cat: .config/fontconfig/fonts.conf: No such file or directory
[phoenix@ArchLinux ~]$ ls .config/fontconfig/ -a
.  ..

Do i need to create one , i read the archwiki on fonts but couldn't figure it out

P.S - sorry for late reply , these support thread don't give notification. maybe need to turn on some setting.

cunning fulcrum
#

you should create one

gusty viper
#

What specifically should i add in ~/.conf/fonts/fonts.conf ?