Skip to content

Add font smoothing for XWayland apps - #3050

Open
Milli189 wants to merge 1 commit into
pop-os:masterfrom
Milli189:master
Open

Milli189 wants to merge 1 commit into
pop-os:masterfrom
Milli189:master

Conversation

@Milli189

@Milli189 Milli189 commented Nov 8, 2026

Copy link
Copy Markdown

This PR fixes issue pop-os/cosmic-epoch#2208

In that issue I've attached screenshots from Minecraft launchers, that are made with Java and still run with XWayland, and I've noticed that cosmic-comp was missing the antialiasing and hinting entries in the XWayland implementation, and by adding them the issue is fixed (at least in my testing with the Minecraft Titan Launcher):

The new defaults added:
grayscale antialiasing
slight hinting

Before:
494743049-34d6228a-6c59-4afb-87b2-68dc050f90c3
494743066-2f394f94-c5cf-4af5-86c8-6eb1aa1dd24f

After:
Screenshot_2026-11-09_00-30-16
Screenshot_2026-11-09_00-30-40


  • I have not included any LLM (also known as AI) generated content in this PR, including code, comments, and descriptions.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.
  • I have read and followed all of the above requirements. For more information, see our contributor guide.

Signed-off-by: LinuxForAll <agarplayerarlon@gmail.com>
@Milli189 Milli189 changed the title Add font smoothing for xwayland apps Add font smoothing for XWayland apps Nov 8, 2026

@Drakulix Drakulix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Comment thread src/xwayland.rs
),
("Xft/Antialias".into(), 1_i32.into()),
("Xft/Hinting".into(), 1_i32.into()),
("Xft/HintStyle".into(), "hintslight".to_string().into()),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, we probably want to make this configurable at some point, but "light" is a very sane default, so good by me.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes exactly, I think that once cosmic-settings gains the ability to configure font antialiasing and hinting, then the XWayland fonts should follow those settings

@Drakulix
Drakulix requested a review from a team November 9, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants