From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QL2iLfkW9mTyYAAAauVa8A:P1 (envelope-from ) for ; Mon, 04 Sep 2023 19:42:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QL2iLfkW9mTyYAAAauVa8A (envelope-from ) for ; Mon, 04 Sep 2023 19:42:17 +0200 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 3E160607A5 for ; Mon, 4 Sep 2023 19:42:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693849337; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=n8x8ZZGU1uCelXMfJCGrikcrsmRaXyDcW7t9+eBLKnk=; b=qTRgq361wKS6geNAWkBzXJLQFuyNXIw4aLGompB1jJtM0dL9oGAPbMnm3N+Dm7jR4BI2bv p8MNxx9pg4RbKdspMJx7ehb9H7LdX8+TPOWcQ9CUCdqiAsy+J5t680p4vybAu7tBs3CxJe 44BjXogsnRW68M5iRleHsEpKXOZEel6hwqG1mNSGA9L+WanyhPjlmO7+oSZ60+VfVK6S/K n8wKYsV02ryO3dos7IFajHyIM1Ple4lnhwa3/kJS/HSgGo/mw4qk1S/T02Rr3j8OjpaMt6 hGeXFMah86Tttipm56YpMTpUpqSusXUXbHSoZP9DOhrvMH8Yfeo0N++ZxD27rw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693849337; a=rsa-sha256; cv=none; b=OdMwCnt0WMD7T+uJ+ilvlJUcVAm/MAA6LlwpsCqxMA/Jcm15ZaGo/EMfXEySDeaVDF9guS h89PBcLXid5pL9Ku5aw/Lr0pNhtGIOdGAqlO+c6hzfxEelEb4UMGTNd4hqw0aROZ+tjNYY X81sqdC/DQNjUq+MMuYhr50erywn1zUJRJuHcl7Z8NZHvgrt1oQ2wGmd+OyIGRD82LXHDA cNj67u+UP7CEbjWdaxIByG5o6Wvqf+Og3Zrgd7UJD9oX4SuNhYTLzWwzdCGwr6rn3kh5jj D/BQaLupBXxYQgT9sINwQix4Z6X4FV+kBOXh4zMgjHMNGHqILjmiBIhJGTDRbA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdDaO-000065-7X; Mon, 04 Sep 2023 13:42:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdDaM-00005n-5z for bug-guix@gnu.org; Mon, 04 Sep 2023 13:42:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdDaL-0001b8-Ta for bug-guix@gnu.org; Mon, 04 Sep 2023 13:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdDaL-0000qK-RS for bug-guix@gnu.org; Mon, 04 Sep 2023 13:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65741: The URW fontconfig dilemma Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 04 Sep 2023 17:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65741 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 65741@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.16938493123220 (code B ref -1); Mon, 04 Sep 2023 17:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Sep 2023 17:41:52 +0000 Received: from localhost ([127.0.0.1]:52513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdDaB-0000pr-Pa for submit@debbugs.gnu.org; Mon, 04 Sep 2023 13:41:52 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdDa9-0000pd-Lf for submit@debbugs.gnu.org; Mon, 04 Sep 2023 13:41:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdDa3-0008WC-L8 for bug-guix@gnu.org; Mon, 04 Sep 2023 13:41:43 -0400 Received: from smtpmciv1.myservices.hosting ([185.26.107.237]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdDa0-0001aK-So for bug-guix@gnu.org; Mon, 04 Sep 2023 13:41:43 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv1.myservices.hosting (Postfix) with ESMTP id F37D220CAE for ; Mon, 4 Sep 2023 19:41:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id C4B408005B; Mon, 4 Sep 2023 19:33:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id C_QdVo413P-W; Mon, 4 Sep 2023 19:33:54 +0200 (CEST) Received: from [192.168.1.116] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id BF02F80060; Mon, 4 Sep 2023 19:33:54 +0200 (CEST) Message-ID: Date: Mon, 4 Sep 2023 18:33:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Bruno Victal Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.107.237; envelope-from=mirai@makinata.eu; helo=smtpmciv1.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 3E160607A5 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.22 X-Spam-Score: -6.22 X-TUID: /CX/PqBLPYAU During my attempt to build the enblend-enfuse documentation [1], it would fail and display the following message: --8<---------------cut here---------------start------------->8--- Error: fontconfig: Didn't find expected font family. Perhaps URW Type 1 fonts need installing? --8<---------------cut here---------------end--------------->8--- Naturally searching for the URW fonts in guix didn't yield anything other than some texlive packages so I ended up writing a definition for it. It turned out to be unnecessary as I later found out 'font-ghostscript' provides just that. (an issue of discoverability perhaps?) Nonetheless my newly written package (which should be “merged” into the definition of 'font-ghostscript' with a better description and perhaps a rename) is an update of what font-ghostscript provides and should work just the same, in theory. (spoilers: it doesn't) Intrigued by this difference and after some doc reading and several arcane commands thrown in desperation, I've distilled them to this: With the existing font-ghostscript package: --8<---------------cut here---------------start------------->8--- $ guix shell -C font-ghostscript fontconfig [env]$ fc-match 'Nimbus Sans L' n019003l.pfb: "Nimbus Sans L" "Regular" --8<---------------cut here---------------end--------------->8--- With the new font-urw-base35 package (definition below): --8<---------------cut here---------------start------------->8--- $ ~/src/guix/pre-inst-env guix shell -C font-urw-base35 fontconfig [env]$ fc-match 'Nimbus Sans L' DejaVuSans.ttf: "DejaVu Sans" "Book" --8<---------------cut here---------------end--------------->8--- The source of the font-urw-base35 has a file for fontconfig at 'fontconfig/urw-fallback-backwards.conf' that contains this: --8<---------------cut here---------------start------------->8--- Nimbus Sans L Nimbus Sans … --8<---------------cut here---------------end--------------->8--- So unless I misunderstood the fontconfig documentation and the comment, 'fc-match' should have found the newer Nimbus Sans, not DejaVu Sans. What gives? The definition for this font-urw-base35 package: --8<---------------cut here---------------start------------->8--- ;; Note: add #:use-module (guix build-system copy) to gnu/packages/fonts.scm. ;; when trying this out. ;; See for more information. (define-public font-urw-base35 (let ((commit "3c0ba3b5687632dfc66526544a4e811fe0ec0cd9") (revision "0") (base-version "20200910")) (package (name "font-urw-base35") (version (git-version base-version revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/ArtifexSoftware/urw-base35-fonts") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "11mc9r2ap80jmh0w5jmypyq9hzyi9g9g4hcj45d5xn66m3jnlgjq")))) (build-system copy-build-system) (arguments (list #:install-plan #~`(("fonts/" "share/fonts/urw-base35" #:exclude ("README" "COPYING")) ("appstream/" "share/metainfo" #:exclude ("README.md")) ("fontconfig/" "share/fontconfig/conf.avail/" #:exclude ("README.md"))) #:phases #~(modify-phases %standard-phases (add-before 'install 'configure (lambda _ ;; Set font priority for fontconfig. (with-directory-excursion "fontconfig" (for-each (lambda (f) ;; As recommended in the README.md. (rename-file f (string-append "61-" (basename f)))) (find-files "." "\\.conf$" #:fail-on-error? #t)))))))) (home-page "https://github.com/ArtifexSoftware/urw-base35-fonts") (synopsis "URW++ base 35 font set.") (description "This package provides substitutes for the 35 fonts required by Adobe Postscript(c) Language Level 2 specification.") (license license:agpl3)))) --8<---------------cut here---------------end--------------->8--- [1]: -- Furthermore, I consider that nonfree software must be eradicated. Cheers, Bruno.