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

get_regular_family_fonts("sans") fails to find any font in a flatpak #8

Open
JMS55 opened this issue Jan 5, 2021 · 3 comments
Open

Comments

@JMS55
Copy link

JMS55 commented Jan 5, 2021

See Smithay/client-toolkit#170 (comment)

@JMS55
Copy link
Author

JMS55 commented Jan 23, 2021

It appears that andrew::text::fontconfig::FontConfig::get_font_dir_files() fails to find any files called fonts.dir. I don't know enough about fontconfig to tell if andrew should be using something else, or if flatpak needs to have that file.

@r-c-f
Copy link

r-c-f commented Feb 23, 2021

@JMS55 fonts.dir is the output from mkfontfdir that indexes fonts by the old X logical font descriptors, so if you include that as part of your packaging process it should work. The fact that andrew is using XLFDs instead of fontconfig proper is indeed highly suspect, however.

@ArtemGr
Copy link

ArtemGr commented Sep 29, 2021

Per https://www.x.org/archive/X11R7.0/doc/html/fonts2.html, "Installing scalable fonts", I'm doing

cd /usr/share/fonts/truetype/dejavu && sudo mkfontscale && sudo mkfontdir
cd /usr/share/fonts/truetype/freefont && sudo mkfontscale && sudo mkfontdir

Just my two cents.

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

3 participants