From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id e5vMHsGLL2OBAQAAbAwnHQ (envelope-from ) for ; Sun, 25 Sep 2022 00:59:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oAugHcGLL2MWCgAAauVa8A (envelope-from ) for ; Sun, 25 Sep 2022 00:59:13 +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 50EFA1CD91 for ; Sun, 25 Sep 2022 00:59:13 +0200 (CEST) Received: from localhost ([::1]:34084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocE76-0008KS-79 for larch@yhetil.org; Sat, 24 Sep 2022 18:59:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocE6x-0008KK-I8 for guix-patches@gnu.org; Sat, 24 Sep 2022 18:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocE6x-0005x2-Aa for guix-patches@gnu.org; Sat, 24 Sep 2022 18:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ocE6w-0003EO-3e for guix-patches@gnu.org; Sat, 24 Sep 2022 18:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57963] [PATCH 0/1] Support user's fontconfig. Resent-From: Taiju HIGASHI Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Sep 2022 22:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57963 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 57963@debbugs.gnu.org, Liliana Marie Prikler , Andrew Tropin Received: via spool by 57963-submit@debbugs.gnu.org id=B57963.166406030512375 (code B ref 57963); Sat, 24 Sep 2022 22:59:02 +0000 Received: (at 57963) by debbugs.gnu.org; 24 Sep 2022 22:58:25 +0000 Received: from localhost ([127.0.0.1]:45426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocE6K-0003DW-TY for submit@debbugs.gnu.org; Sat, 24 Sep 2022 18:58:25 -0400 Received: from mail-pj1-f42.google.com ([209.85.216.42]:55118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocE6G-0003DI-Rm for 57963@debbugs.gnu.org; Sat, 24 Sep 2022 18:58:23 -0400 Received: by mail-pj1-f42.google.com with SMTP id y11so3187157pjv.4 for <57963@debbugs.gnu.org>; Sat, 24 Sep 2022 15:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=taiju-info.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date; bh=qYP1fh7qvQqvVQYI2pP+Kcrpo98qZ5MxM+Wv60x9NyA=; b=PlZpMqUcj8iuoGgExm15LPzv75UcXpVGsbaggSsE+JpaiVIac+w5iiaVogA87g8aCl a/AeDLziBl/fPaecojAS/M4pzCAGm3WB5b11SBM52fPvNSso1ZWz/8I/rslwX6Yx1T2J fbn2bxI6Ac5wzQdkka1s6sDaPcIYxfKPP1c3gag4jYGkK1MRcUSV/oOjtL9IF1gnMDjY 1tDYY49AmYDJY55BXBhXvfT+2d3olj7V1CJwxdy8JC0Utgn35acQaThASUygWa/MeAaM NKyNshZ4IvBOY3ZlMa07tlEF4lEfBPcDJO3xrgTA5e0+ZBT8HLxvikpP/EAnjc/aEMBG qI0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date; bh=qYP1fh7qvQqvVQYI2pP+Kcrpo98qZ5MxM+Wv60x9NyA=; b=aYvvlq38+czlCaY1d8WryGRUIXEm4jFVjYQgR68GQKUOlQADuKB4W5dIes9pkPLius fgqs5fhytsYDJjbe+GDcs+CdoGb2Wj/5U1/p7dHVzgkqs1P9hpO1O6L0UBhLg0474gao 0CI3cc6PJ3ueC8nUb3t2Cr6embOxZj33lMJdlXqZWqcKnkNu+TMFrpK1IzzqvONA2onx bMr92gQnqV+9TcRvQOa8tS2AZe9uInv4LvBmjWpGc5w2jJ76SeJz2fnSOLnJ28M8Lk5y cjjJ1bOlwb9yaDF9NQIkPjNY+59ckJkMNyaCS1DrZO2V1gr0+xUakNwIgDyTABwpIltA XAkA== X-Gm-Message-State: ACrzQf0aEaWkuUf+FAzI7rRxA+aZMpBKR+TbELhd2iRel2d6hu8KOquQ RiXZ6336gLirl5qBktqK+pPdhw== X-Google-Smtp-Source: AMsMyM6hMwYFbpWkIZvIoUqjP91rVqEIdq4ua9uctuSPbzDrmap6PIeaKpH/UFsEsGb4HGr5z6BeFw== X-Received: by 2002:a17:90b:3147:b0:203:6eaa:4894 with SMTP id ip7-20020a17090b314700b002036eaa4894mr29265526pjb.230.1664060294703; Sat, 24 Sep 2022 15:58:14 -0700 (PDT) Received: from Taix ([240b:253:ec40:2400:b7d1:436e:2d61:e925]) by smtp.gmail.com with ESMTPSA id i63-20020a17090a3dc500b001fdcb792181sm3807455pjc.43.2022.09.24.15.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Sep 2022 15:58:14 -0700 (PDT) From: Taiju HIGASHI References: <20220921002721.23511-1-higashi@taiju.info> <20220922012033.30835-1-higashi@taiju.info> <87pmfoq6kt.fsf@trop.in> <87sfkjiyck.fsf@gnu.org> <875yhfwxe9.fsf@taiju.info> <871qs093dq.fsf_-_@gnu.org> Date: Sun, 25 Sep 2022 07:58:11 +0900 In-Reply-To: <871qs093dq.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 24 Sep 2022 17:52:01 +0200") Message-ID: <87edw0v0qk.fsf@taiju.info> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664060353; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qYP1fh7qvQqvVQYI2pP+Kcrpo98qZ5MxM+Wv60x9NyA=; b=HsxDlLw3oyLjtiTSnhYrZZMqJLs6ahYs12jgbWASzJhFfZotMHVyGlUo/5fiDDOOzo7+TR wB4bCjf73YGvbXOpVreIHeQFaS7CJlX59bBcszv+mBrH1mi+1jnC978seOXDpMaQU+6pCM g9BBECh+LAIgifKnidNKPJv0wT1svhIyr+dXHIccAAyo47Dd3TrjLB48w0N2B4ZzF+CJWl LvRYGDktfpIco/1xJcMBGLcidImHAZQ/0WhtyQCQ7zDyAxEqvHdsR/EOOlxYmHQ9WS1SAe C3Btd/kcX8d6CrD3XNoAKDJ9lb9upwHZH7zM9x2eI+ehbz1Nvm64IvvU9F8tIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664060353; a=rsa-sha256; cv=none; b=oHaqh0blKPIwB2xvhLi7z1PqDgC67a/qtsBFK4msqEkFjJCmfxdfph9t7Xr02nXEn25NEy KGC87UEX9Z3rS7xxXkwgnpdwz83xuJ1hd5/TCSdMe386FzBBc9nwxB/hMqjy+4M2Kjs+T4 vLBOp2Lqux86id99KrZZMwcrTO+4n3L8siV9GWcNmC0DpLGjXPVzsSDanz3022uyxzl//+ lrVfbMB33fQWR7igXYZWRT+6uk4ua+BhqWJFsZ3cONPKhQZejHRN1oGWea2Y2T1O+Wi+46 Bctyk5Xl2GYjj9x2lsvpgMyn9NSl8GWIpq8+3ccYTzNLBmIrB9bNUTKVeNTuhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=taiju-info.20210112.gappssmtp.com header.s=20210112 header.b=PlZpMqUc; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.15 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=taiju-info.20210112.gappssmtp.com header.s=20210112 header.b=PlZpMqUc; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 50EFA1CD91 X-Spam-Score: 5.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: LBbQlFMJ3Qrn Ludovic Court=C3=A8s writes: > Hi, > > Taiju HIGASHI skribis: > >> I'm not very knowledgeable about G-Expressions, so I don't understand >> much of what you replied. (I will study it!). > > I didn=E2=80=99t mention gexps. :-) Sorry, that comment of mine was in response to Andrew's comment. >> Ludovic Court=C3=A8s writes: >> My motivation for writing this patch is that I wanted to continue to use >> the settings in the following file after switching to Guix Home. >> >> https://git.sr.ht/~taiju/taix/tree/31a37c231ebba60e38f7fa9cfe1c7a5d7362d= 021/item/dotfiles/fontconfig/.config/fontconfig/fonts.conf >> >> Honestly, I don't know why it is so complicated, but I refered it from >> the following ArchWiki content. >> >> https://wiki.archlinux.org/title/Font_configuration/Examples#Japanese >> >> Therefore, just being able to set font aliasing is unfortunately not >> enough to satisfy my use case. > > Oh I see. Do you need every single bit from the =E2=80=98fonts.conf=E2= =80=99 file > above? There may be some settings that are not needed. > Anyway, it does look like your v2 is the way to go, with the obvious > caveat that using it is tricky: one needs to know about fontconfig=E2=80= =99s > config file format and about sxml. > > Maybe we can go with v2 for now (it provides a useful =E2=80=9Cescape hat= ch=E2=80=9D) > but prepare for more conventional configuration bindings? By conventional configuration binding, do you mean adding something like home-fontconfig-configuration to provide a dedicated fontconfig configuration? I have been reading the DTD and think it might be a bit of a challenge. https://github.com/freedesktop/fontconfig/blob/e291fda7d42e5d64379555097a06= 6d9c2c4efce3/fonts.dtd However, I did notice one thing, and that is that there is an include element. I thought that if we had a configuration where the include element could be added, we could handle most of the use cases. What do you think of this idea? Thanks, --=20 Taiju