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

Poor UI font rendering on Windows #186

Open
kittybwained opened this issue Jan 17, 2025 · 3 comments
Open

Poor UI font rendering on Windows #186

kittybwained opened this issue Jan 17, 2025 · 3 comments

Comments

@kittybwained
Copy link

I just installed GNAT Studio 25 but I've noticed that all the text looks very strange.
Image
All the text looks slightly green, and the kerning is really off in places (see: the settings window title bar, the text "Adwaita" on the theme options drop down, the text "Custom Styles" in the settings menu bar, etc.). Interestingly, the actual editor code view looks mostly fine.

Image

Image

I'm running GNAT Studio 25 on Windows 11 IoT Enterprise LTSC 24H2 (build 26100.2605). My best guess as to what could be causing this is maybe GTK3 not doing font rendering properly on Windows for some reason, as all my other programs look fine, including a GTK 4.16.2 program.

P.S.: when viewing these screenshots in Chromium, please open them in a new tab and click on them to show it at actual size, as otherwise the image scaling somewhat masks the issues.

@kittybwained
Copy link
Author

I tried playing with the settings in C:\GNATSTUDIO\etc\gtk-3.0 and C:\GNATSTUDIO\etc\fonts, setting subpixel antialiasing to RGB, BGR, Greyscale, changing the hinting level, but no matter what I change it always looks the same somehow.

@kittybwained
Copy link
Author

I've found a workaround. It seems that this is a result of pango/cairo's win32 backend being broken. Setting the environment variable PANGOCAIRO_BACKEND to fc fixes it. It would be nice if this could be incorporated into GNAT Studio in some way, where on Windows it could choose the fc backend over win32.

@AnthonyLeonardoGracio
Copy link
Collaborator

Hello @kittybwained,

Thanks for the workaround! We'll see how we can set the pango backend to fc by default then.

Regards,

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

2 participants