# Anki in Wayland

**URL:** <https://forums.ankiweb.net/t/anki-in-wayland/40361>\
**Category:** Beta Testing\
**Created:** [January 27, 2024, 12:16pm UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361 "2024-01-27T12:16:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrislg](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/chrislg/32/32411_2.png) [@chrislg](https://forums.ankiweb.net/u/chrislg)\
**Post date:** [January 27, 2024, 12:16pm UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361/1 "2024-01-27T12:16:44Z")

</div>

So I tried running Anki in KDE Plasma 6 and the fonts are blurry. I have a 125% scaling in KDE and Anki. Even with 100% scaling in Anki the fonts are blurry. In legacy X11 Applications I have the set the applications to apply scaling themselves

I see the following lines in command line:

```auto

Qt warning: The cached device pixel ratio value was stale on window expose. Please file a QTBUG which explains how to reproduce.

```

Is there a way to fix it?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/0/00200f2be1db14e51dab6b9d646aa353e3c652ed.png)

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [January 27, 2024, 5:25pm UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361/2 "2024-01-27T17:25:00Z")

</div>

Does this help? [Wayland - Anki Manual](https://docs.ankiweb.net/platform/linux/wayland.html)

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [January 27, 2024, 5:44pm UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361/3 "2024-01-27T17:44:43Z")

</div>

Wayland support is not ready

See [Wayland issues · Issue #1767 · ankitects/anki · GitHub](https://github.com/ankitects/anki/issues/1767) for discussion and bug reports

---

<div class="post-metadata">

**Author:** ![chrislg](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/chrislg/32/32411_2.png) [@chrislg](https://forums.ankiweb.net/u/chrislg)\
**Post date:** [January 28, 2024, 7:07am UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361/4 "2024-01-28T07:07:23Z")

</div>

i will just run in X11 mode with `QT_QPA_PLATFORM=xcb` variable until the bug is fixed

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [January 28, 2024, 6:41pm UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361/5 "2024-01-28T18:41:02Z")

</div>

Did the variable `QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor` did not work? or is it another [problem](https://bugreports.qt.io/browse/QTBUG-113574) with fractional scaling?

---

<div class="post-metadata">

**Author:** ![chrislg](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/chrislg/32/32411_2.png) [@chrislg](https://forums.ankiweb.net/u/chrislg)\
**Post date:** [January 28, 2024, 7:46pm UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361/6 "2024-01-28T19:46:19Z")

</div>

I tried it now and it works 🙂

---

<div class="post-metadata">

**Author:** ![bensankiaccount](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bensankiaccount](https://forums.ankiweb.net/u/bensankiaccount)\
**Post date:** [January 28, 2024, 11:58pm UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361/7 "2024-01-28T23:58:26Z")

</div>

Hi. I am also getting the blurry fonts in wayland (hyprland)

```auto
export QT_QPA_PLATFORM=wayland
export ANKI_WAYLAND=1
export QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor

```

in ~/.bashrc  
one of those fixed the error message OP was getting but the weird blurry font persists

---

<div class="post-metadata">

**Author:** ![bensankiaccount](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bensankiaccount](https://forums.ankiweb.net/u/bensankiaccount)\
**Post date:** [January 31, 2024, 9:10pm UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361/8 "2024-01-31T21:10:52Z")

</div>

update : the conjunction of the following 2 lines in hyprland.conf fixes the issue…

```auto
monitor=,highres,auto,$INTEGER
```

and

```auto
QT_SCALE_FACTOR,$INTEGER
```

where INTEGER is any positive integer.

the problem with this solution is that everything else scales with the monitor setting, and 1 is too small while 2 is too big. The rounding policy environment variable doesn’t seem to work

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [March 1, 2024, 9:11pm UTC](https://forums.ankiweb.net/t/anki-in-wayland/40361/9 "2024-03-01T21:11:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
