home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / gnome / help / system-admin-guide / C / fontconfig.xml < prev    next >
Encoding:
Text File  |  2006-08-09  |  4.8 KB  |  96 lines

  1. <chapter id="fontconfig-0">
  2.   <title>Configuring Fonts</title>
  3.   <highlights>
  4.     <para>This chapter describes how to configure fonts in the GNOME
  5. Desktop.</para>
  6.   </highlights>
  7.   <sect1 id="fontconfig-1">
  8.     <title>Introduction to Configuring Fonts</title>
  9.     <indexterm>
  10.       <primary>configuring fonts</primary>
  11.       <see>fonts</see>
  12.     </indexterm>
  13.     <indexterm>
  14.       <primary>fontconfig</primary>
  15.       <see>fonts</see>
  16.     </indexterm>
  17.     <indexterm>
  18.       <primary>fonts</primary>
  19.       <secondary>introduction</secondary>
  20.     </indexterm>
  21.     <para>GNOME Desktop uses the <literal>fontconfig</literal> font configuration and
  22. customization library. The <literal>fontconfig</literal> library can use all
  23. kinds of fonts, including PostScript Type 1 fonts and TrueType fonts.</para>
  24.     <para>The <literal>fontconfig</literal> library provides a list of all the
  25. fonts available on a GNOME Desktop system. To compile this list, <literal>fontconfig</literal> searches the directories listed in the <filename>/etc/fonts/fonts.conf</filename> file. To view all the fonts available on a system, access the <literal>fonts:///</literal> location in the file manager on the system.</para>
  26.     <para>For more information about the <literal>fontconfig</literal> library,
  27. see the following URL: </para>
  28.     <literallayout>
  29.       <ulink url="http://freedesktop.org/software/fontconfig">http://freedesktop.org/software/fontconfig</ulink>
  30.     </literallayout>
  31.   </sect1>
  32.   <sect1 id="fontconfig-4">
  33.     <title>Font Substitution</title>
  34.     <indexterm>
  35.       <primary>fonts</primary>
  36.       <secondary>substitution</secondary>
  37.     </indexterm>
  38.     <para>The <literal>fontconfig</literal> library performs font substitution
  39. when either entire fonts, or individual characters, are not present. If the
  40. system needs to display a font that is not available, <literal>fontconfig</literal> attempts to display another, similar font. For example, if a web
  41. page requests to display the Verdana font, and that font is not installed
  42. on the system, <literal>fontconfig</literal> displays a similar font, such
  43. as Helvetica. The list of similar fonts is defined in the <filename>/etc/fonts/fonts.conf</filename> file. </para>
  44.     <para>If the system needs to display a character that is not present in the
  45. selected font, <literal>fontconfig</literal> attempts to display the character
  46. in another, similar font. For example, you might select Bitstream Vera Sans
  47. as the font for the Text Editor application. The Bitstream Vera font family
  48. does not include Cyrillic characters. If you open a document which contains
  49. a Cyrillic character, Text Editor uses a similar font that includes Cyrillic
  50. characters to display the character.</para>
  51.     <para>The <literal>fontconfig</literal> library also defines aliases for fonts,
  52. for example, <literal>serif</literal>, <literal>sans-serif</literal>, and <literal>monospace</literal>. When you select one of the aliases for a font, the system
  53. uses the first font that is defined for that alias in the <filename>/etc/fonts/fonts.conf</filename>. </para>
  54.   </sect1>
  55.   <sect1 id="fontconfig-2">
  56.     <title>To Add a Font for All Users</title>
  57.     <indexterm>
  58.       <primary>fonts</primary>
  59.       <secondary>adding for all users</secondary>
  60.     </indexterm>
  61.     <para>To add a font for all users, perform the following steps:</para>
  62.     <orderedlist>
  63.       <listitem>
  64.         <para>Copy the font file to one of the directories in the <filename>/etc/fonts/fonts.conf</filename> file. Typically, fonts are stored in the <filename>/usr/share/fonts/</filename> directory.</para>
  65.       </listitem>
  66.       <listitem>
  67.         <para>The <literal>fontconfig</literal> library updates the list
  68. of fonts automatically. If the list of fonts is not updated, run the following
  69. command:</para>
  70.         <screen><userinput>fc-cache <replaceable>directory-name</replaceable></userinput></screen>
  71.       </listitem>
  72.     </orderedlist>
  73.   </sect1>
  74.   <sect1 id="fontconfig-3">
  75.     <title>To Add a Font for an Individual User</title>
  76.     <indexterm>
  77.       <primary>fonts</primary>
  78.       <secondary>adding for individual users</secondary>
  79.     </indexterm>
  80.     <para>To add a font for an individual users, perform
  81. the following steps:</para>
  82.     <orderedlist>
  83.       <listitem>
  84.         <para>Copy the font file to the <filename>$HOME/.fonts</filename>
  85. directory of the user. If you drag the font file to the <literal>fonts:///</literal> location in the file manager, the font file is copied to the <filename>$HOME/.fonts</filename> directory.</para>
  86.       </listitem>
  87.       <listitem>
  88.         <para>The <literal>fontconfig</literal> library updates the list
  89. of fonts automatically. If the list of fonts is not updated, run the following
  90. command:</para>
  91.         <screen><userinput>fc-cache <replaceable>directory-name</replaceable></userinput></screen>
  92.       </listitem>
  93.     </orderedlist>
  94.   </sect1>
  95. </chapter>
  96.