Skip to content

Blurry text rendering with non-integer monitor scaling under hyprland #55

Closed

Description

@pothos-dev

What happened

Due to an eye surgery I have configured my monitor to run at a 1.25 scale in Hyprland via

  hl.monitor({ ..., scale = 1.25 })

seems like this fucks up the glyph rendering calculations, as the text gets all blurry:
Image

I tested it with a scale of 1.0 which looks fine. So it definitely has a problem with non-integer scales under Wayland.

What you expected

Glyphs are rendered sharply under the 1.25 scale factor.

Steps to reproduce

  • Run Hyprland (or likely other Wayland compositors)
  • Configure a monitor scale of 1.25
  • Run Rune

Area

GUI and rendering

Rune version

Rune development (HEAD is HEAD) (likely 1.2.1)

OS and architecture

CachyOS amd64

Shell

No response

Logs, crash report, or screenshots

Relevant configuration

Checks

  • I searched existing issues and this is not a duplicate.
  • I can reproduce this on the latest released version.

Activity

  1. added
    bug
    on Sep 12, 2026
  2. added
    help wanted
    on Sep 14, 2026
  3. ernestrc commented on Sep 14, 2026

    @ernestrc
    Contributor

    Thanks for reporting this. We'll look into it.

  4. ernestrc commented on Sep 25, 2026

    @ernestrc
    Contributor

    It turns out it's not a simple fix. On Linux, Rune currently only supports X11, so on Hyprland it runs through XWayland. With Hyprland's default xwayland:force_zero_scaling = false, Rune draws at 1x and Hyprland stretches the result to 1.25x. That stretch is what blurs the text, and Rune can't avoid it from inside XWayland. You can confirm this with hyprctl clients: the Rune window (class rune) shows xwayland: 1.

    The real fix is a native Wayland backend, which we're tracking in #144. I'm closing this issue in favor of that one.

    Workaround until then:

    1. Stop Hyprland from scaling XWayland windows (translate this to your Lua config if you've moved to it):

      xwayland {
          force_zero_scaling = true
      }
      
    2. Rune now renders 1:1 and is sharp, but at 1x size. To get the same text size you had at 1.25, raise the font DPI in ~/.rune/config.yaml:

      gui:
        dpi: 90   # 72 × 1.25

      Or set gui.font_size to taste. You can also adjust it at runtime with <m-=> / <m-->.

    Caveats:

    • force_zero_scaling applies to every XWayland app, so other X11 apps may look small. The Hyprland wiki's XWayland page covers per-toolkit fixes (GDK_SCALE, etc.).
    • For now, don't set Xft.dpi to fix those other apps. Rune would read it as scale 1.25 and hit a separate rounding bug that blurs text at many window sizes. Once that's fixed, Xft.dpi: 120 will be a supported alternative.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions