-
Notifications
You must be signed in to change notification settings - Fork 101
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
Incorrect Font Directory Path for Manjaro Linux in CR_SelectFont Class #111
Comments
A middle-ground solution would be to have this configurable - on Gentoo I do not have truetype or TFF in /usr/share/fonts, and packages have their own directories (dejavu, liberation-fonts, noto, …). |
Just noticed the same issue recently. Personally I think, rather than populating system fonts, may be adding a separate path in the ComfyUI installation instead might be better. |
or maybe using command like |
I've proposed a fix in #124 which just reads any directory under |
I like wutipong's suggestion because the path An example would be NixOS, see also my comment to issue #186. |
Description
There appears to be an issue with the
CR_SelectFont
class in the ComfyUI Comfyroll CustomNodes. The class incorrectly specifies the font directory path for Manjaro Linux systems. This causes aFileNotFoundError
since the script is unable to locate the correct font directory.Issue Details
In the
CR_SelectFont
class, the font directory for Linux systems is set as"/usr/share/fonts/truetype"
. However, the standard path for system fonts in Manjaro Linux (an Arch-based distribution) is"/usr/share/fonts/TTF"
. This discrepancy leads to the script not finding the font files, thereby causing this error.Hot Fix For Manjaro
To resolve this issue, I updated the font directory path for Linux systems in the
CR_SelectFont
class. The updated code snippet is:Additional Information
A solution for this problem would ensure better compatibility with Manjaro Linux systems and potentially other Arch-based distributions.
Looking forward to the update, and thank you for your work on this project!
The text was updated successfully, but these errors were encountered: