2. Text

2.1. Lägg till typsnitt

GIMP uses the FreeType 2 font engine to render fonts, and a system called Fontconfig to manage them. FreeType 2 supports many common font file formats.

Any font in Fontconfig's font path is available in GIMP. In addition, any font which is located in GIMP's Font Folders is available in GIMP. Font Folders are set on the Fonts page in the Folders preferences.

By default, there are two Font Folders: The system GIMP fonts folder (which you should not alter), and a fonts folder inside your personal GIMP directory. You can also add additional font folders if wanted.

  • Linux

    Det finns flera sätt att installera ett typsnitt:

    • Använd ett program som GNOME Typsnitt eller KFontView för att installera typsnittet.

    • Placera typsnittsfilen i katalogen ~/.local/share/fonts/. Detta kommer göra typsnittet tillgängligt endast för dig.

    • Om du har administratörsrättigheter, placera typsnittsfilen i katalogen /usr/local/share/fonts/. Detta kommer göra typsnittet tillgängligt för alla användare.

    I alla fall kommer typsnittet bli tillgängligt för alla program som använder Fontconfig.

  • Microsoft Windows

    Det finns flera sätt att installera ett typsnitt för hela systemet:

    • Dra typsnittsfilen till katalogen Fonts C:\Windows\Fonts.

    • Install the font via the Settings app. In Windows, go to Settings, select Personalization, then from there go to Fonts.

  • macOS

    • Installera typsnittet genom programmet Typsnittsbok.

The installed fonts will show up the next time you start GIMP. If you want to use it in an already running GIMP instance, press the Refresh button in the Fonts dialog.

[Notera] Notera

Om du av någon orsak stöter på problem när du försöker installera ett typsnitt över hela systemet, försök att installera typsnittet i mappen fonts in din personliga GIMP-katalog i stället (se ovan).

2.1.1. Typsnittsproblem

In most cases, problems with fonts are caused by malformed font files or outdated font formats. If you experience crashes at start-up when GIMP scans your font directories, as a quick workaround you can start GIMP with the --no-fonts command line argument, but then you will not be able to use the text tool.