-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fonts registered by fontconfig fail to load resulting in panick #118
Comments
Ugh, why font handling is such a mess. As a quick workaround: you may specify an absolute path (e.g /usr/share/fonts/inter/Inter-Regular.ttf). I couldn't reproduce your case yet, for me output is the following:
Do you have some no-default path for this font? It seems rust-fontconfig that searches fc-cache doesn't handle xdg dirs properly, is it your case? |
Okay, the absolute path works. (I thought I tried that before) The fonts I want are located in I leave My other apps load the fonts fine.
Sorry, I don't know what you mean. I don't know rust. But fontconfig registers all my fonts fine. I can print all their information (For example, with |
Yeah, sure. The link is for the library I'm using for finding fonts, it's not a system fontconfig thus a different behavior. It doesn't handle XDG standard directories, in particular yours
So basically these 3 dirs are searched. There are also entries Unfortunately I didn't find any other libraries for that job and I don't really want to be bound to fontconfig system libs. Hopefully I make my own implementation soon. |
I get the same output when grepping /etc/fonts/fonts.conf I'm a novice coder, but to me it seems strange that the tilde (~) would be referenced here. I thought it was considered poor form to use the tilde anywhere outside of the command line, and that instead we should use $HOME. Additionally, by only looking at the base of the home directory, we're inviting our home to be cluttered with dot files. Again, strange policy. In any case, I'll go with the absolute path for now. Thanks again |
In
yofi.config
font = "Inter"
Running
yofi
producesNone of my fonts are working except a few that are installed under root directory.
Querying
fontconfig
(with formatting) produces:The text was updated successfully, but these errors were encountered: