From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH 3/3] doc: Describe how to make X server find TrueType fonts. Date: Fri, 1 Jul 2016 12:27:30 +0300 Message-ID: <20160701092730.2265-4-alezost@gmail.com> References: <20160701092730.2265-1-alezost@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIujl-0001sF-Jg for guix-devel@gnu.org; Fri, 01 Jul 2016 05:27:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIujg-00084p-5W for guix-devel@gnu.org; Fri, 01 Jul 2016 05:27:45 -0400 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:36016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIujf-00083Q-T6 for guix-devel@gnu.org; Fri, 01 Jul 2016 05:27:44 -0400 Received: by mail-lf0-x244.google.com with SMTP id a2so10802215lfe.3 for ; Fri, 01 Jul 2016 02:27:41 -0700 (PDT) Received: from localhost.localdomain ([217.107.192.156]) by smtp.gmail.com with ESMTPSA id u193sm2160448lfd.36.2016.07.01.02.27.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Jul 2016 02:27:40 -0700 (PDT) In-Reply-To: <20160701092730.2265-1-alezost@gmail.com> 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: guix-devel@gnu.org * doc/guix.texi (Application Setup): Document how to add TrueType fonts installed in a Guix profile to the X server font path. --- doc/guix.texi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 62c0d34..0e7b698 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -13,6 +13,7 @@ Copyright @copyright{} 2012, 2013, 2014, 2015, 2016 Ludovic Courtès@* Copyright @copyright{} 2013, 2014, 2016 Andreas Enge@* Copyright @copyright{} 2013 Nikita Karetnikov@* +Copyright @copyright{} 2014, 2015, 2016 Alex Kost@* Copyright @copyright{} 2015, 2016 Mathieu Lirzin@* Copyright @copyright{} 2014 Pierre-Antoine Rault@* Copyright @copyright{} 2015 Taylan Ulrich Bayırlı/Kammer@* @@ -1192,6 +1193,24 @@ to display fonts, you have to install fonts with Guix as well. Essential font packages include @code{gs-fonts}, @code{font-dejavu}, and @code{font-gnu-freefont-ttf}. +However, some programs do not support Fontconfig and rely on the X +server to recognize a font. 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. + 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 -- 2.8.3