From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eNVjK14UxV52ZQAA0tVLHw (envelope-from ) for ; Wed, 20 May 2020 11:28:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YLJDJ14UxV6gUwAAB5/wlQ (envelope-from ) for ; Wed, 20 May 2020 11:28:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 19ABF9403E9 for ; Wed, 20 May 2020 11:28:29 +0000 (UTC) Received: from localhost ([::1]:57802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbMtf-0002QR-W4 for larch@yhetil.org; Wed, 20 May 2020 07:28:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbMtX-0002QI-VP for guix-devel@gnu.org; Wed, 20 May 2020 07:28:20 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:36943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbMtW-0003Vy-Mb for guix-devel@gnu.org; Wed, 20 May 2020 07:28:19 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 52F145C011D; Wed, 20 May 2020 07:28:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 20 May 2020 07:28:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=8Xl8QThho/BsSIKJUyy1yYxQAx woSkbxB72oEb0FQas=; b=UbymqfDcSZg/Ey4AghK8aR15l9RNOShIDiJsiHK/9H mMaCEAXcGUMIo72uvN9xLuM6o9KKk+mNdyBFr17Dv9KfMCTxSFyOXtzD6fOUuICL 3jQaPlxXMXZTxe6lNG4XrcQWObJ+8DzNBk0PP47r6vCGZX7Sgn1eiKS2Iyy4lmJo BpwFPlTIwLoq994d+hYeAmN7zNEmRFY1VfmRZMMwLzbWXCjup0j4BeJsW60RVP8x o8Pri3K02+SciAlQLH9ZWK1LXRElvn+I2zYWz4uY0JdoqZI6vuiKEFhrrVzZSBfC JcL3lgkm8o03biA9eIqR8YiXn5eU8rLYd/e0EY0tCsoA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=8Xl8QT hho/BsSIKJUyy1yYxQAxwoSkbxB72oEb0FQas=; b=j1dHf+qoinMQHHKuXv3pRt kYcCWu97qW5HUG0PA1Oahr+9iNgkOObimHcj9zOyD7sXihSgmnYbPp8yy1OXRjFr q3Ms/lrLvD9VL5q9oiMQFBbl+8TkCkoa9rvaJx7ijvFGw8er2diy7XFEGkBdEhGi TUpAO3cjHHqFP5tt7FRTEnZ3M5O3mhudIvf/szXXEfIGX6DH6LvoeAmw9cTWwWhf MWE1E1PrnJgRc9iSLrYkeD/uMZ9LXbX1Tbt+vjSKxU949kReqJxzxFODaIqdVbCI DmBk/lKWU2CNkDvk0jQm4P0UU9CF2HA3rntpEru7kXklmKcTWzsMCXkXOOTdq08w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtledgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffgffkfggtgesghdtre ertdertdenucfhrhhomhepofgrrhhiuhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghs thhmrghilhdrtghomheqnecuggftrfgrthhtvghrnheptddvgfegveegiedvffeujeeitd etvdektddugffgtdegfeeitdeikeffudfgueffnecukfhppeekvddrudegkedrudeluddr udeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh gsrghkkhgvsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: from localhost (ip82-148-191-18.breiband.no [82.148.191.18]) by mail.messagingengine.com (Postfix) with ESMTPA id A2E9A3066451; Wed, 20 May 2020 07:28:15 -0400 (EDT) From: Marius Bakke To: Leo Famulari Subject: Re: [PATCH] gnu: fontconfig: Add replacement with font-dejavu instead of gs-fonts. In-Reply-To: <20200519155020.GD24701@jasmine.lan> References: <20200517145012.21532-1-mbakke@fastmail.com> <20200519155020.GD24701@jasmine.lan> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Wed, 20 May 2020 13:28:13 +0200 Message-ID: <87imgqc0c2.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=66.111.4.25; envelope-from=mbakke@fastmail.com; helo=out1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/20 03:21:30 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm2 header.b=UbymqfDc; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=j1dHf+qo; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.31 X-TUID: jv6cVDqDTG4a --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Leo Famulari writes: > On Sun, May 17, 2020 at 04:50:12PM +0200, Marius Bakke wrote: >> This is a hack to make (some) fonts working when users don't have fonts >> specified in their system configuration, and (crucially) places where >> the fontconfig cache may be unavailable such as 'guix pack's. >>=20 >> I'm not sure whether font-dejavu is a good replacement here. Another >> approach could be to convert gs-fonts to TrueType or OpenType format. >>=20 >> Thoughts? I don't know much about fonts and would appreciate feedback. > > I think you should push right away, assuming that it helps and doesn't > rebuild the world. Someone on #guix wanted to test it, so I've attached the patch here again to this message. Will push later today unless anyone objects. Though I'm still not convinced 'font-dejavu' is a good replacement for 'gs-fonts'. > The gs-fonts are important for printing so we might need a real fix > later but for now a quick fix is the right thing. The print infrastructure (CUPS, ghostscript) does not use Pango, so I think gs-fonts still work there. Might be difficult to work with when the end user applications don't recognize them though. What do you expect from a "real fix"? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-fontconfig-Add-replacement-with-font-dejavu-inst.patch Content-Transfer-Encoding: quoted-printable From=20ba3a99430ce1c0f6f27973e1d82539a67c769b89 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 17 May 2020 16:23:29 +0200 Subject: [PATCH] gnu: fontconfig: Add replacement with font-dejavu instead = of gs-fonts. This fixes , , and = . Reported by Pierre Neidhardt, W Knight, Alexandros Theodotou, and others. * gnu/packages/fontutils.scm (fontconfig)[replacement]: New field. (fontconfig/font-dejavu): New variable. =2D-- gnu/packages/fontutils.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index e552ece50b..27c84d5814 100644 =2D-- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -37,6 +37,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages autotools) + #:use-module (gnu packages fonts) #:use-module (gnu packages gettext) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) @@ -292,6 +293,12 @@ fonts to/from the WOFF2 format.") (define-public fontconfig (package (name "fontconfig") + + ;; This replacement is not security-related, but works around the fact + ;; that gs-fonts are not recognized by Pango, causing many applications + ;; to fail to find fonts otherwise. + (replacement fontconfig/font-dejavu) + (version "2.13.1") (source (origin (method url-fetch) @@ -348,6 +355,13 @@ high quality, anti-aliased and subpixel rendered text = on a display.") "See COPYING in the distribution.")) (home-page "https://www.freedesktop.org/wiki/Software/fontconfig"))) =20 +(define fontconfig/font-dejavu + (package + (inherit fontconfig) + (inputs + ;; XXX: Reuse the name to avoid having to override the configure flag= s. + `(("gs-fonts" ,font-dejavu))))) + (define-public t1lib (package (name "t1lib") =2D-=20 2.26.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7FFE0ACgkQoqBt8qM6 VPpKMwf/XPRGLthKEWE1EpJ4W5giLwG0875/TJuMm8ccIS4PHfJlxQQh9dQgDNsS NsMWvtFMGGn1riqfk2OUCxvNmuV6+4E7l+54Y5hPbiMKSrnLlKSkMr8NPZYynhRS 54+WfSfLxNmCcC1RMBLIXqJf07vzQiitX7PWOWDz4JNrnNsWCa8MlkUNNj9Sb+VQ L78QD2MdCKfsH3yn2eFzM2pDUMmYJnCMy8FyCXWRBaVYArhQ3ET9pBw1J3VT0i3m cGOuM9rJZeI4DI22gdG7hVfTcyFS+MiY1jc+TZOzzY892ifxnjxhM7HRnkLIC8ts mna/SaOaijnm/tiNxO+LcecY9haDKg== =QX+0 -----END PGP SIGNATURE----- --==-=-=--