Instalacja dodatkowych fontów

From Scribus Wiki
Jump to navigation Jump to search

Inne języki: English (en) Template:Porady


Instalacja fontów

  • Uruchom Scribusa, nie otwierając dokumentów pojdź do mneu Ustawienia>Czcionki... (Scribus 1.2.x) lub Edycja>Konfiguracja>Czcionki... (Scribus od wersji 1.3.0) i kliknij na zakładkę Dodatkowe ścieżki.
  • Kliknij na przycisk Dodaj... i wybierz katalog, w którym znajdują się twoje fonty. Gotowe!
  • Więcej na temat fontów dowiesz się w artykule o polskich darmowych fontach przeznaczonych do druku oraz w dokumentacji online Scribusa

Fontconfig i instalacja fontów w Scribusie 1.3.x

Scribus 1.3 still supports, and will continue to support, the ability to add extra font paths in the Scribus preferences. However, many people will want to install fonts for their entire system, not just Scribus.

An easy way to do this is with fontconfig. In most cases, just copy the fonts into a folder called .fonts in your home directory. If .fonts doesn't exist, create it. Once you've copied the fonts into the .fonts folder, just run fc-cache. You do not need to run it as root.

When you next launch Scribus, it should find the new fonts. Most other applications on an even remotely modern Linux desktop will also use fontconfig to find fonts, though some major apps still may not (especially vanilla, rather than distro-customised, builds):

  • Mozilla / Firefox / Thunderbird
  • OpenOffice.org
  • Adobe Acrobat Reader 5

Multiple font directories with Fontconfig

Fontconfig doesn't restrict you to just one fonts folder. You can have multiple fonts folders if you want, and this can be an immensely useful way to organize a growing collection of fonts from numerous sources. Fonts will still appear the same in Scribus.

To add some extra font directories, first create the directories and put the fonts in them. For now, I suggest using names like .fonts-collectionname. I have, for example, .fonts-unfonts, .fonts-mac-converted, etc. Copy fonts into the directories as appropriate.

To tell fontconfig how to find the directories, all you need to do is add them to the fontconfig config file, usually .fonts.conf in your home directory. This file probably does not yet exist. If it does not exixt, create it with the following contents:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <dir>/home/craig/.fonts-mac-converted</dir>
</fontconfig>

Change the <dir>blah</dir> entry to match where your font folder(s) are. You do not need to list /home/$USERNAME/.fonts, it will be found automatically. If you need more fonts folders, just add more <dir>blah</dir> entries, eg:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <dir>/home/craig/.fonts-mac-converted</dir>
    <dir>/home/craig/.fonts-unfonts</dir>
    <dir>/home/craig/.fonts-adobe-japanese</dir>
</fontconfig>

The biggest advantage of sorting your fonts this way is that you can keep fonts from different sources clearly separated, and easily enable/disable large blocks of them.

Once you've saved the fontconfig config file, run fc-cache and you're done.