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

Use system default monospace font #35

Open
bertob opened this issue Jan 27, 2025 · 2 comments
Open

Use system default monospace font #35

bertob opened this issue Jan 27, 2025 · 2 comments
Labels
frontend GTK, User Interface, UX, etc.

Comments

@bertob
Copy link
Collaborator

bertob commented Jan 27, 2025

Apparently the default monospace font is stored in gsettings, and not automatically used in Sourceviews for some reason, that's why we're getting the ugly fallback :(

I asked on Matrix, and people said we should have a look at the gsetting org.gnome.desktop.interface monospace-font-name. If that doesn't work, use whatever portal API is available (ashpd? libportal?) to get that same value from settings portal.

@adzialocha adzialocha added the frontend GTK, User Interface, UX, etc. label Jan 28, 2025
@jsparber
Copy link
Collaborator

Yes pretty easy to do, it's kinda odd that gtk/sourceview doesn't do this automatically.

@bertob
Copy link
Collaborator Author

bertob commented Jan 30, 2025

Alice said she added some new stuff in libadwaita for this, not sure if we'll get it for free with 48 or need to apply a style class or something though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend GTK, User Interface, UX, etc.
Projects
None yet
Development

No branches or pull requests

3 participants