248 lines
4.6 KiB
HTML
248 lines
4.6 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Improving Font Appearance Under X</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
|
|
"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux Administration Made Easy"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Configuring the X Window System"
|
|
HREF="xwindows-configuration.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Using the X Desktop Manager"
|
|
HREF="xwindows-xdm.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Choosing a Window Manager for X"
|
|
HREF="xwindows-winmgr.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Linux Administration Made Easy</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="xwindows-xdm.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 5. Configuring the X Window System</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="xwindows-winmgr.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="XWINDOWS-FONTS"
|
|
>5.3. Improving Font Appearance Under X</A
|
|
></H1
|
|
><P
|
|
>Quite frankly, X has never been known for having particularly
|
|
attractive fonts. In fact, many people resign themselves to the notion
|
|
that having ugly, nasty fonts is an unfortunate fact of life under X.</P
|
|
><P
|
|
>Fortunately, it <EM
|
|
>is</EM
|
|
> possible to dramatically
|
|
improve the look of, and increase the number of fonts you can use, under
|
|
X. In fact, if you own a copy of Windows, you can even copy over the
|
|
TrueType fonts from that platform and use them under X as well! Such font
|
|
support is accomplished by using a font server such as ``xfstt'' or
|
|
``xfs''.</P
|
|
><P
|
|
>Red Hat 6.1 now includes support for ``xfs'' built in, and as a
|
|
result provides attractive font support right out of the box. Therefore,
|
|
if you're using this version of Linux, you may be satisfied with the way
|
|
things are. However, there are a couple of things you can do to improve
|
|
things still further, as well as make use of your TrueType fonts if you
|
|
have them available.</P
|
|
><P
|
|
>To enable TrueType font support, create a directory (eg.
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>/usr/local/share/ttfonts</TT
|
|
></TT
|
|
>'') and
|
|
copy any or all of the font files from your Windows system (where they can be
|
|
found in the ``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>c:\windows\fonts</TT
|
|
></TT
|
|
>''
|
|
directory) into the new directory.</P
|
|
><DIV
|
|
CLASS="TIP"
|
|
><BLOCKQUOTE
|
|
CLASS="TIP"
|
|
><P
|
|
><B
|
|
>Tip: </B
|
|
>Tip: If you do not have any TrueType fonts available to you,
|
|
you can download them directly from Microsoft at <A
|
|
HREF="http://www.microsoft.com/typography/fontpack/default.htm"
|
|
TARGET="_top"
|
|
>http://www.microsoft.com/typography/fontpack/default.htm</A
|
|
>.</P
|
|
></BLOCKQUOTE
|
|
></DIV
|
|
><P
|
|
>To make use of the fonts, from within your new ``ttfonts'' directory,
|
|
type the following (as root):</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>ttmkfdir -o fonts.scale
|
|
mkfontdir</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>Next, edit the
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>/etc/X11/fs/config</TT
|
|
></TT
|
|
>'' file, add
|
|
add your new font directory to the list of existing directories. Also,
|
|
change the <TT
|
|
CLASS="LITERAL"
|
|
>default-point-size</TT
|
|
> from 120 to 140, which
|
|
will give you larger, more readable fonts.</P
|
|
><P
|
|
>Finally, exit X (if you haven't done so already), and restart your
|
|
xfs server as follows:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>/etc/rc.d/init.d/xfs restart</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>Finally, restart X and enjoy your glorious new fonts!</P
|
|
><P
|
|
>For more detailed information on improving font support under X, there
|
|
is a very excellent resource called the
|
|
``<EM
|
|
>XFree86 Font Deuglification Mini HOW-TO</EM
|
|
>'' at
|
|
<A
|
|
HREF="http://www.frii.com/~meldroc/Font-Deuglification.html"
|
|
TARGET="_top"
|
|
>http://www.frii.com/~meldroc/Font-Deuglification.html</A
|
|
>.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="xwindows-xdm.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="xwindows-winmgr.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Using the X Desktop Manager</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="xwindows-configuration.html"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Choosing a Window Manager for X</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |