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

Missing letters #634

Open
nervuri opened this issue Oct 18, 2023 · 4 comments
Open

Missing letters #634

nervuri opened this issue Oct 18, 2023 · 4 comments
Labels
bug Something isn't working wayland

Comments

@nervuri
Copy link

nervuri commented Oct 18, 2023

I'm using Lagrange 1.17.0 on Debian 12 with the Sway window manager (Wayland).

Sometimes (seemingly) random bits of text go missing:

2023-10-19

2023-10-19_2

Going to Preferences and changing the font temporarily fixes this, but not long after it happens again, no matter what font I choose.

@skyjake
Copy link
Owner

skyjake commented Oct 19, 2023

SDL's Wayland backend is known to have various issues and instability with Lagrange. This could be contributing here. Could you attach here your CMake build configuration, especially the various ENABLE_* variable options?

At a glance, the first screenshot looks like misplaced draws and the second one looks like missing glyphs in the font cache.

I have occasionally seen this type of visual artifacts, but in the past they have been resolved by switching to a newer version of SDL.

@skyjake skyjake added the bug Something isn't working label Oct 19, 2023
@nervuri
Copy link
Author

nervuri commented Oct 19, 2023 via email

@skyjake
Copy link
Owner

skyjake commented Oct 22, 2023

Yes, thank you. Looks like you are using the "simple" text renderer that doesn't support RTL text and complex Unicode compositions (HarfBuzz disabled). Is this intentional?

The simple text renderer does use most of the same code as the more full-featured one, but since it's nowadays not the default renderer, bugs may have crept in there. I have a vague recollection that some glyph caching issues were fixed in the new text renderer but perhaps not in the simple one. I'll need to investigate...

@nervuri
Copy link
Author

nervuri commented Oct 23, 2023

Looks like you are using the "simple" text renderer that doesn't support RTL text and complex Unicode compositions (HarfBuzz disabled). Is this intentional?

Yes, I don't really need those complex Unicode features, so I had disabled HarfBuzz. However, now I'm using v1.17.1 with HarfBuzz and the problem persists. This time I compiled with:

ENABLE_FRIBIDI:BOOL=ON
ENABLE_FRIBIDI_BUILD:BOOL=ON
ENABLE_HARFBUZZ:BOOL=ON

Here's a glitch I haven't encountered before:

2023-10-23_14:09:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wayland
Projects
None yet
Development

No branches or pull requests

2 participants