Fonts not available in text Tool - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Installation and usage (https://www.gimp-forum.net/Forum-Installation-and-usage) +---- Forum: Linux and other Unixen (https://www.gimp-forum.net/Forum-Linux-and-other-Unixen) +---- Thread: Fonts not available in text Tool (/Thread-Fonts-not-available-in-text-Tool) |
Fonts not available in text Tool - Rocket - 01-02-2020 Hello, I have installed gimp 2.10.12 (I have the same problem for 2.10.14) on Linux (Kiss Linux). When I try to add some text on a picture, I get: Code: Due to lack of any fonts, text functionality is not available. So I can't add text on a picture. On my system I have the following fonts:
Code: ls -l /var/cache/fontconfig/ With fc-list I get: Code: /usr/share/fonts/X11/TTF/DejaVuSerif-Italic.ttf: DejaVu Serif:style=Italic In Kiss Linux, each package is built from source. Because it isn't packaged, I have created a package. I compiled gimp with the following: Code: ./configure \ In Kiss Linux, intltool isn't packaged, so I had to remove everything concerning internationalization from code. My build compiled, but perhaps I removed something which is needed to add text. I applied the following patches: - patch to remove intltool dependency - patch to remove translation directory As I understand, the dependency glib-networking is only used for documentation. I also remove this dependency. - patch to remove glib-networking At start, gimp is a little slow, but all tools I have tested until now works. Perhaps there is a better way to remove internationalization. I have tested other "paint" software, for example imagemagick and I can add text on a picture without problems. Do somebody has an idea what to check and what could be wrong ? Thank you! RE: Fonts not available in text Tool - rich2005 - 01-02-2020 With the best will in the world I do not think you will get far with KISS on this forum. There are linux users here but the chances of another KISS user are slim. What probability of ? Quote:Do somebody has an idea what to check and what could be wrong ? A couple of suggestions If you put font files in the Gimp user profile ~/.config/GIMP/2.10/fonts Do they show in the text tool ? I assume a flatpack Gimp is out of the question but would an appimage work ? One from here. https://github.com/aferrero2707/gimp-appimage/releases/ I have tried the 2.10.14-with plugins and it is good. I believe these are derived from Gentoo so might work with your installation. Otherwise have you tried contacting the KISS team (one person) with the issue. RE: Fonts not available in text Tool - Ofnuts - 01-02-2020 The fonts are loaded in app/text/gimpfontfactory.c. It appears to use Pango (in other words, it will see the fonts that Pango itself reports). Perhaps there is something in the Pango package that may tell you what fonts Pango sees. RE: Fonts not available in text Tool - Rocket - 01-02-2020 (01-02-2020, 10:38 AM)rich2005 Wrote: With the best will in the world I do not think you will get far with KISS on this forum. There are linux users here but the chances of another KISS user are slim. I'm probably the only KISS user here! But my problem is rather with the compilation, it doesn't play a role if it's another distribution. I will try your suggestions. I have already reported the issue to the KISS community, but probably at the moment I'm the only one using it, because it's not packaged! (01-02-2020, 11:08 AM)Ofnuts Wrote: The fonts are loaded in app/text/gimpfontfactory.c. It appears to use Pango (in other words, it will see the fonts that Pango itself reports). Perhaps there is something in the Pango package that may tell you what fonts Pango sees. Hmm, it could be promising. So I discovered pango-list and pango-view. With pango-list all fonts are displayed, with pango-view I can display a text with a given font. It works on my system. The next question is: is the file app/text/gimpfontfactory.c compiled and without error? I have to compile gimp again and I'll have a look. I'll report what I will see. RE: Fonts not available in text Tool - Rocket - 01-02-2020 After checking, app/text/gimpfontfactory.c is compiled. At the end, I packaged intltool, gettext and glib-networking. At start, there is an error Code: Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file “/var/lib/dbus/machine-id”: No such file or directory dbus is not used in KISS, so it's not installed. In order to start gimp, I have to delete the pagecurl plugin. But after that, there is always the same problem. I have tried to add fonts in .config/GIMP/2.10/fonts, I have given the full permission (777), but the fonts are not found. I'll have a look at the bugs and if nobody has a suggestion, I will probably open a bug. I prefer the compilation at the moment to have the same build system for all packages, instead of using flatpak or appimage (but to be honest, I don't really know how it works!). RE: Fonts not available in text Tool - shachter - 08-20-2020 I had the same problem on one of my systems, where Gimp 2.8 was the version made available by the package manager. I tried to solve it by building my own Gimp from source; that led to other problems, described in a different posting to this forum. I solved my original problem after noting that I had 2 different versions of fontconfig.so and that ldconfig was, apparently, preferring the one that didn't work with Gimp 2.8; all I had to do was invoke gimp with a LD_LIBRARY_PATH variable that led to the dynamic linking with the other fontconfig.so. Your symptoms may have a different cause, and I make no promises, of course, that what solved the problem for me will work for you. jay at m5 dot chicago dot il dot us |