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

Full support for fontconfig #282

Open
tjw123hh opened this issue Jul 9, 2024 · 1 comment
Open

Full support for fontconfig #282

tjw123hh opened this issue Jul 9, 2024 · 1 comment

Comments

@tjw123hh
Copy link

tjw123hh commented Jul 9, 2024

RazrFalcon/fontdb#56 (comment) suggests that we should entirely avoid using fontdb and directly use fontconfig to index fonts on Linux. Perhaps we should have a better solution?

Originally posted by @tjw123hh in #174 (comment)

@tmke8
Copy link

tmke8 commented Sep 28, 2024

Looking at the #[cfg(feature = "fontconfig")] code in fontdb, it seems to me it's pretty close to a solid fontconfig replacement. It uses fontconfig-parser to parse the config files, so most of what needs to be done is finding the paths where the config files are located, and then dealing correctly with the aliases defined in those config files. There are some problems with the latter part with the current fontdb code. (On my system, the current fontdb code fails to resolve .family_name(Family::Monospace) to a font that actually exists, whereas fontconfig has not such problems.)

Though I get that the fontdb maintainer doesn't want to maintain a whole fontconfig replacement within fontdb.

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