Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts corrupt under Wayland #67

Open
spl237 opened this issue Feb 15, 2024 · 0 comments
Open

Fonts corrupt under Wayland #67

spl237 opened this issue Feb 15, 2024 · 0 comments

Comments

@spl237
Copy link

spl237 commented Feb 15, 2024

If you run bless on a system using a Wayland backend, the fonts used to display hex, dec and oct are corrupted.

This is caused by Gdk Pixmaps on Wayland having a hard limit of 4096 pixels wide, so the pre-rendered versions of the byte symbols overflow and the bitmaps get corrupted.

The easy fix is to not try to pre-render all the individual symbols, but just to pre-render "0123456789abcdef" (reduced as appropriate for decimal or octal) and to copy multiple individual characters for each byte from the buffer instead of trying to copy the entire byte value in one.

I can submit a patch if it is useful - I have implemented this on Raspberry Pi and it works fine.

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

No branches or pull requests

1 participant