The translation is temporarily closed for contributions due to maintenance, please come back later.

Source string Read only

(itstool) path: sect2/screen
Context English State
Generating an <filename>xorg.conf</filename>:
<prompt>#</prompt> <userinput>Xorg -configure</userinput>
The configuration file is saved to <filename>/root/</filename>. Make any changes desired, then test that file (using <option>-retro</option> so there is a visible background) with:
<prompt>#</prompt> <userinput>Xorg -retro -config /root/</userinput>
After the new configuration has been adjusted and tested, it can be split into smaller files in the normal location, <filename>/usr/local/etc/X11/xorg.conf.d/</filename>.
Using Fonts in <application>Xorg</application>
Type1 Fonts
The default fonts that ship with <application>Xorg</application> are less than ideal for typical desktop publishing applications. Large presentation fonts show up jagged and unprofessional looking, and small fonts are almost completely unintelligible. However, there are several free, high quality Type1 (<trademark class="registered">PostScript</trademark>) fonts available which can be readily used with <application>Xorg</application>. For instance, the URW font collection (<package>x11-fonts/urwfonts</package>) includes high quality versions of standard type1 fonts (<trademark class="registered">Times Roman</trademark>, <trademark class="registered">Helvetica</trademark>, <trademark class="registered">Palatino</trademark> and others). The Freefonts collection (<package>x11-fonts/freefonts</package>) includes many more fonts, but most of them are intended for use in graphics software such as the <application>Gimp</application>, and are not complete enough to serve as screen fonts. In addition, <application>Xorg</application> can be configured to use <trademark class="registered">TrueType</trademark> fonts with a minimum of effort. For more details on this, see the <citerefentry vendor="xfree86"><refentrytitle>X</refentrytitle><manvolnum>7</manvolnum></citerefentry> manual page or <xref linkend="truetype"/>.
To install the above Type1 font collections from binary packages, run the following commands:
<prompt>#</prompt> <userinput>pkg install urwfonts</userinput>
Alternatively, to build from the Ports Collection, run the following commands:
<prompt>#</prompt> <userinput>cd /usr/ports/x11-fonts/urwfonts</userinput>
<prompt>#</prompt> <userinput>make install clean</userinput>
And likewise with the freefont or other collections. To have the X server detect these fonts, add an appropriate line to the X server configuration file (<filename>/etc/X11/xorg.conf</filename>), which reads:
FontPath "/usr/local/share/fonts/urwfonts/"
Alternatively, at the command line in the X session run:
<prompt>%</prompt> <userinput>xset fp+ /usr/local/share/fonts/urwfonts</userinput>
<prompt>%</prompt> <userinput>xset fp rehash</userinput>
This will work but will be lost when the X session is closed, unless it is added to the startup file (<filename>~/.xinitrc</filename> for a normal <command>startx</command> session, or <filename>~/.xsession</filename> when logging in through a graphical login manager like <application>XDM</application>). A third way is to use the new <filename>/usr/local/etc/fonts/local.conf</filename> as demonstrated in <xref linkend="antialias"/>.
<trademark class="registered">TrueType</trademark> Fonts
<primary>TrueType Fonts</primary>
<primary>fonts</primary> <secondary>TrueType</secondary>
<application>Xorg</application> has built in support for rendering <trademark class="registered">TrueType</trademark> fonts. There are two different modules that can enable this functionality. The freetype module is used in this example because it is more consistent with the other font rendering back-ends. To enable the freetype module just add the following line to the <literal>"Module"</literal> section of <filename>/etc/X11/xorg.conf</filename>.
Load "freetype"
Now make a directory for the <trademark class="registered">TrueType</trademark> fonts (for example, <filename>/usr/local/share/fonts/TrueType</filename>) and copy all of the <trademark class="registered">TrueType</trademark> fonts into this directory. Keep in mind that <trademark class="registered">TrueType</trademark> fonts cannot be directly taken from an <trademark class="registered">Apple</trademark> <trademark class="registered">Mac</trademark>; they must be in <trademark class="registered">UNIX</trademark>/<trademark class="registered">MS-DOS</trademark>/<trademark class="registered">Windows</trademark> format for use by <application>Xorg</application>. Once the files have been copied into this directory, use <application>mkfontscale</application> to create a <filename>fonts.dir</filename>, so that the X font renderer knows that these new files have been installed. <command>mkfontscale</command> can be installed as a package:
<prompt>#</prompt> <userinput>pkg install mkfontscale</userinput>
Then create an index of X font files in a directory:
<prompt>#</prompt> <userinput>cd /usr/local/share/fonts/TrueType</userinput>
<prompt>#</prompt> <userinput>mkfontscale</userinput>
Now add the <trademark class="registered">TrueType</trademark> directory to the font path. This is just the same as described in <xref linkend="type1"/>:
<prompt>%</prompt> <userinput>xset fp+ /usr/local/share/fonts/TrueType</userinput>
<prompt>%</prompt> <userinput>xset fp rehash</userinput>
or add a <literal>FontPath</literal> line to <filename>xorg.conf</filename>.
Now <application>Gimp</application>, <application>LibreOffice</application>, and all of the other X applications should now recognize the installed <trademark class="registered">TrueType</trademark> fonts. Extremely small fonts (as with text in a high resolution display on a web page) and extremely large fonts (within <application>LibreOffice</application>) will look much better now.
Anti-Aliased Fonts


No matching activity found.

Browse all component changes

Things to check

Multiple failing checks

Following checks are failing:
Unchanged translation: Chinese (Simplified) (zh_CN), Turkish (tr_TR), Portuguese (Brazil)
Has been translated: Turkish (tr_TR)


Source information

Source string comment
(itstool) path: sect2/screen
no-wrap, read-only
Source string location
String age
a year ago
Source string age
a year ago
Translation file
books/handbook.pot, string 2026