-
Notifications
You must be signed in to change notification settings - Fork 4
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
Font module: Nested font in /usr/share/fonts/nerd-fonts and /usr/share/fonts/google-fonts not recognized by vscode running in distrobox #58
Comments
This happens because distrobox does not see the fonts installed on the host. To do this, it is necessary to load the fonts that are in /run/host/usr/share/fonts, which is where the distrobox loads the fonts available on the host. Use the command |
Distrobox auto mounts the system font in /usr/local/share/fonts inside the container, I'm not sure why it didn't get picked up if the font is nested in 2 layers or more |
I'm using version 1.5.0.2 of distrobox and it only mounts the following directories/files: /tmp:/tmp But apparently, the problem is vscode. I tried to use a font that was in /run/host/usr/share/fonts and it didn't recognize it. When I used gnome-text-editor (installed in container) it worked. It looks like the solution at the moment is what you implemented in the PR. |
I won't be at the computer for the next 4 days, please take your time to review if necessary |
@lucasvsr Hi, I've been doing some testing on my machine for a few days, it seems that this situation was caused by fontconfig cache, which isn't compatible across many distros as mentioned here A simple fix was just to run I'll close this issue and the PR, thanks for your time |
Expanding on my explaination in case someone reads this thread. Vscode installed in arch container are from aur, which uses the source from static build of vscode (.tar.gz file), which doesn't use system fontconfig, therefore it doesn't picked up the nested font like other applications. Vscode installed in ubuntu container (deb) and fedora container (rpm) picks up the font just fine |
I'm currently seeing what I believe to be the same issue with a Fedora 39 host and Fedora 39 container, even after clearing the font cache. Even though the font is recognized by name through fc-match inside the distrobox, VSCode is still not able to use it.
|
Hi, I'd like to report that nested font in
/usr/share/fonts/nerd-fonts/*
and/usr/share/fonts/google-fonts/*
not recognized by vscode running in distrobox.I tried to manual install the fonts using script modules, which only put the fonts in
/usr/share/fonts/$font
and it does get picked upEx:
/usr/share/fonts/nerd-fonts/Meslo/*
doesn't get picked up by vscode/usr/share/fonts/Meslo/*
does get picked up by vscodeThe text was updated successfully, but these errors were encountered: