From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 3/3] doc: Describe how to make X server find TrueType fonts. Date: Sat, 02 Jul 2016 16:38:42 +0200 Message-ID: <87bn2gf6kt.fsf@gnu.org> References: <20160701092730.2265-1-alezost@gmail.com> <20160701092730.2265-4-alezost@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJM4J-00037R-Ao for guix-devel@gnu.org; Sat, 02 Jul 2016 10:38:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJM4E-0005zl-7U for guix-devel@gnu.org; Sat, 02 Jul 2016 10:38:50 -0400 In-Reply-To: <20160701092730.2265-4-alezost@gmail.com> (Alex Kost's message of "Fri, 1 Jul 2016 12:27:30 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > * doc/guix.texi (Application Setup): Document how to add TrueType fonts > installed in a Guix profile to the X server font path. [...] > @@ -1192,6 +1193,24 @@ to display fonts, you have to install fonts with G= uix as well. > Essential font packages include @code{gs-fonts}, @code{font-dejavu}, and > @code{font-gnu-freefont-ttf}. >=20=20 > +However, some programs do not support Fontconfig and rely on the X > +server to recognize a font. What about: =E2=80=9COlder programs such as @command{xterm} do not use Fontconfig and instead rely on server-side font rendering.=E2=80=9D? > Such programs require to specify a full > +name of a font using XLFD (X Logical Font Description), like this: > + > +@example > +-*-dejavu sans-medium-r-normal-*-*-100-*-*-*-*-*-1 > +@end example > + > +To be able to use such full names for the TrueType fonts installed in > +your Guix profile, you need to extend the font path of the X server: > + > +@example > +xset +fp ~/.guix-profile/share/fonts/truetype > +@end example > + > +After that, you can run @code{xlsfonts} (from @code{xlsfonts} package) > +to make sure your TrueType fonts are listed there. OK. > To display text written in Chinese languages, Japanese, or Korean in > graphical applications, consider installing > @code{font-adobe-source-han-sans} or @code{font-wqy-zenhei}. The former I would move the new text below the paragraph about Chinese languages (the paragraph about Chinese languages is about client-side rendering.) Thanks! Ludo=E2=80=99.