Installing additional fonts: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Other languages:''' [[Instalacja dodatkowych fontów|Polski (pl)]]
'''Other languages:''' [[Instalacja dodatkowych fontów|Polski (pl)]][[Category:Installation]] [[Category:Fonts]] [[Category:EN]]
 
{{TIP Index}}
{{TIP Index}}
==Installing fonts==
==Installing fonts==


Line 9: Line 6:
*Click on the '''Add...''' button and choose the directories, where your fonts are located. Done!
*Click on the '''Add...''' button and choose the directories, where your fonts are located. Done!
*For more, see the  [http://docs.scribus.net/index.php?lang=en&sm=setup&page=fonts1 Scribus Online Documentation]
*For more, see the  [http://docs.scribus.net/index.php?lang=en&sm=setup&page=fonts1 Scribus Online Documentation]
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
[[http://WTHP1.coolhost.biz] [WTHPD1]]
[http://WTHP2.coolhost.biz  WTHPD2]
[[http://WTHP3.coolhost.biz | WTHPD3]]
[http://WTHP4.coolhost.biz | WTHPD4]
[WTHPD5 | http://WTHP5.coolhost.biz]
[[http://WTHP6.coolhost.biz WTHPD6]]
</div>


== Using Fontconfig to install fonts in 1.3 ==
== Using Fontconfig to install fonts in 1.3 ==
Line 64: Line 49:


Once you've saved the fontconfig config file, run <code>fc-cache</code> and you're done.
Once you've saved the fontconfig config file, run <code>fc-cache</code> and you're done.
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
[[http://WTHP1.coolhost.biz] [WTHPD1]]
[http://WTHP2.coolhost.biz  WTHPD2]
[[http://WTHP3.coolhost.biz | WTHPD3]]
[http://WTHP4.coolhost.biz | WTHPD4]
[WTHPD5 | http://WTHP5.coolhost.biz]
[[http://WTHP6.coolhost.biz WTHPD6]]
</div>

Latest revision as of 05:57, 14 January 2011

Other languages: Polski (pl)

This article is part of the Tips & Tricks series.
Installation Usage PDF issues Other

Installing fonts

  • Launch scribus, go straight without opening a document to the menu Settings>Fonts... and click on the tab Additional paths.
  • Click on the Add... button and choose the directories, where your fonts are located. Done!
  • For more, see the Scribus Online Documentation

Using Fontconfig to install fonts in 1.3

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.