Gimp-Forum.net
How to update fonts ? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: How to update fonts ? (/Thread-How-to-update-fonts)



How to update fonts ? - jacques_duflos - 08-06-2023

Hi there,
I am working on a project in gimp, I am using a font that I modify sometimes with the software fontforge (it's part of the project). The font is in .local/share/fonts/. The folder GIMP_FOLDER/fonts is empty. The program LibreOffice acknowledges the changes instantly. But Gimp won't. How do I get gimp to re-load/update the fonts ?


RE: How to update fonts ? - Ofnuts - 08-06-2023

In the Fonts list, hit the |<| icon on the right of the tab line, then Fonts menu ➤ Rescan fonts list.

[attachment=10172]



RE: How to update fonts ? - jacques_duflos - 08-06-2023

didn't work. I guess this button invoke the

Code:
pdb.gimp_fonts_refresh()
procedure ? the documentation about this tool says that it refreshes the fonts in the user's font path. My font is installed on the system (ubuntu).


RE: How to update fonts ? - rich2005 - 08-06-2023

It is as the documentation states. If you install a font and Gimp is still open, then refreshing the font forces Gimp to rescan. Saves having to shut Gimp down and restart. (applies to other resources as well - brushes - gradients -...all have a refresh button in their dock)

It is worth trying the font in the Gimp user profile ~/.config/GIMP/2.10/fonts

I also keep fonts in ~/.fonts when I want to share with Gimp / Inkscape / LO etc.

It might be that the font is just not compatible with Gimp, It sometimes happens. Can you share the font?

Just out of interest, which version of ubuntu.


RE: How to update fonts ? - jacques_duflos - 08-06-2023

Ubuntu 22.04.2 LTS
The font is compatible with Gimp. Here is all the story (it was several month ago, so I might be mistaken on the order of operations ):
1) fond the font in the internet https://www.fontmonkey.com/archive1.php. the font is Belligerent Madness
2) install it on ubuntu thanks to the normal graphical way (the software Polices)
3) modify the font to add accents èéêë etc...
5) use it normally on gimp without adding it to a gimp-specific location of modifying the preferences
6) realizing I forgot to add the ç and Ç, and modify the font again
7) here I am today. the font does not update in gimp, I can't use the two new characters I added to it. on other programs like libreoffice writer it does.

I join the updated font
[attachment=10176]

Ok, the problem just solved itself I don't know how. Gimp was open, I modified and saved the font, and VOILÀ, gimp took the changes into account. I'm puzzled.