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

consider enabling fontconfig feature by default #56

Closed
urlordjames opened this issue Aug 6, 2023 · 1 comment
Closed

consider enabling fontconfig feature by default #56

urlordjames opened this issue Aug 6, 2023 · 1 comment

Comments

@urlordjames
Copy link

I think it's worth considering enabling the fontconfig feature be enabled by default. Without the fontconfig feature enabled, fontdb is unable to discover system fonts on NixOS (#20). Enabling the fontconfig feature by default would make dependents easier to work with on NixOS, and would prevent opening an issue to enable the feature for each dependent that wishes to support NixOS (see pop-os/cosmic-text#167).

As an alternative to enabling the fontconfig feature by default, a note could be added to README.md to inform users that enabling the feature is more portable.

Any thoughts on this?

@RazrFalcon
Copy link
Owner

The current fontconfig support isn't perfect, therefore it isn't enabled by default.
I'm not sure what would be the right move here. If it required by NixOS, then I guess we should comply with "sane defaults". But the non-fontconfig version should typically be better/faster on normal distros.

I will think about it.

PS: I'm not sure how cross-platform cosmic-text is, but a proper Linux solution would require using fontconfig directly, avoiding fontdb entirely.

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