Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mumim-0002YF-Dn for mharc-grub-devel@gnu.org; Tue, 07 Dec 2021 21:30:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mumik-0002Y7-El for grub-devel@gnu.org; Tue, 07 Dec 2021 21:30:14 -0500 Received: from [2607:f8b0:4864:20::72d] (port=35640 helo=mail-qk1-x72d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mumig-0006w5-3r for grub-devel@gnu.org; Tue, 07 Dec 2021 21:30:14 -0500 Received: by mail-qk1-x72d.google.com with SMTP id m192so808076qke.2 for ; Tue, 07 Dec 2021 18:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=6yAH74vv4mIpHHtS+I7MBXMus5roUURwnlA2kYA+5BA=; b=fhiZPNtjX5XJBFwS038bpxnHy1WqdS/nzk+mzyLCnP3KJBU7TxvIiK9Q8ZI60QNXn9 pRwAT6QbpW3yXkIsAuM2/TVLqhJl3FOJDH3Hkc1gRhoTo61KpMGK3XMjlJqAFyblh0WR 2YYmv1yH8IlSjUQP/GGXNJ/jOO7B5c+kInfXukMzzZppNMl/eV1A8tgkn6/tE5AGJcoQ KTMUpvVpd1iexOXxUTuLJha232uCmmAQoIQ/ZCi5IbhvNXjmaIGITLxqb60lTAPfig2V FtSMhwcG/lFxFMVIMpJap0TOLhIY589vL1EM5TT9f93RlvbaMK4UKFy2yBfq7V4cKbSl T7dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6yAH74vv4mIpHHtS+I7MBXMus5roUURwnlA2kYA+5BA=; b=Z5rAavkXk5PZ2CdVx/42sghkdiFoapy+dJoxJVn3oBqgfneIoGTC8gqnt9eBhJQ9FZ D+ZLmpVXXuNocUJQPMoTmygoNwe8EauQAjtqupbytnifRmTqCLlF2GdChxsX739vOWSW MMl6f7+IFdUL+s0PqEv0cODzU41oNB6lzQFWBVHB0yXrd2Owm7zJ+SD9FxUYmt2BiTLW TBJpeo0+NLVM4olVlr0AyFSn/e0usilKL+566gbuZhFyZHSa6xruDN/7Suq6stiAkN95 GBcJ75gEKgaodSJoMEj1Y+UVdeMOUyJSL1bLB7dNyJHykKPf2DtWWswxeLEiJMFfZRM3 68cw== X-Gm-Message-State: AOAM5315dVnQfwvuAQBXI3qTZknbp54q5D9rc5copDMVMGbClZtolbhR JmIZiKYjqxe0ZpRoZnZJlls8T/AVgWc= X-Google-Smtp-Source: ABdhPJype4YZ7ve+n/LxH57yMXLd0XzjojTXjxXsWOMU/fJ7Mc8R/MxTSt/w2rQOBV28oU+EbksaXg== X-Received: by 2002:a05:620a:1511:: with SMTP id i17mr3432529qkk.89.1638930608189; Tue, 07 Dec 2021 18:30:08 -0800 (PST) Received: from ?IPv6:2602:ae:136d:6d00:b04f:7885:e4dd:d300? ([2602:ae:136d:6d00:b04f:7885:e4dd:d300]) by smtp.gmail.com with ESMTPSA id w2sm922550qta.11.2021.12.07.18.30.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Dec 2021 18:30:07 -0800 (PST) Subject: Re: [PATCH] Add Fedora location of DejaVu SANS font To: Robbie Harwood , grub-devel@gnu.org References: <20211206222542.20068-1-rharwood@redhat.com> From: Nicholas Vinson Message-ID: <4dff5c81-6efc-41b9-3ef6-52f63025ec9e@gmail.com> Date: Tue, 7 Dec 2021 21:30:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::72d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=nvinson234@gmail.com; helo=mail-qk1-x72d.google.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-2.44, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2021 02:30:14 -0000 On 12/7/21 15:04, Robbie Harwood wrote: > Nicholas Vinson writes: > >> Wouldn't it be better to modify configure.ac so the location could be >> passed in instead of having one-off patches for alternate locations? >> Something like --with-dejavu-font=/usr/share/fonts/dejavu-sans-fonts? > > That would mean that anyone using grub2 that wants the dejavu fonts will > have to figure out that the option exists and pass it to the > buildscripts. That's a pretty bad user experience for anyone building > their own grub. On the contrary, it doesn't have to mean that at all. It could mean that when a path is given, configure would use the provided path; otherwise, it falls back to its default list to find the font. Such an approach would mimic configure's current behavior for values such as bootdir and grubdir. > > I get that maintaining a list of where everyone has put their fonts is > somewhat obnoxious, but in the absence of a standard way of doing it, > I'm not sure there's anything better. The only other alternative I See above and configure.ac's solutions to similar issues for better approaches. > could think of was running find in /usr/share/fonts, which struck me as > fraught. Because it's the same solution you're already doing. The use of find won't fix anything because you'd still have to hard-code the patterns find uses to locate the font file. Regards, Nicholas Vinson > > Be well, > --Robbie >