Numbering and font on linux #220
Replies: 3 comments 2 replies
-
I think this might have been fixed, there is The number should have been fixed too leaving open for now and moving to dev repo |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity, instead of calling a specific font, is it possible to just call a general font-family, like sans-serif, instead? That way there should be no issues with whatever fonts users have installed? |
Beta Was this translation helpful? Give feedback.
-
Please see here where I implemented a fix in a docker image Sygil-Dev/stable-diffusion@9bebf68 You should be able to do the same thing on your actual system. This basically "installs" the font and I believe should be where PIL will search for the ttf file on a linux system. The alternative would be to extend the list to include the path |
Beta Was this translation helpful? Give feedback.
-
Hi, awesome fork.
On linux at least, when saving individual images, webui.py starts at a negative number. (-0001, 00000, 00001, 00002, etc). Saving a grid is fine.
And, when the font "arial.ttf" is not present on the system (most linux distros don't package arial), the script throws an error (doesn't crash though) and refuses to show any images on the gradio ui. It's throwing an error in image_grid() that is easily fixed by replacing with "data/DejaVuSans.ttf".
I'm happy to provide more debugging info if you need it, or test on linux.
Beta Was this translation helpful? Give feedback.
All reactions