From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Suggest installing more fonts? Date: Fri, 16 Oct 2020 15:24:00 +0200 Message-ID: <87eely5mof.fsf@gnus.org> References: <87wnzqa1be.fsf@gnus.org> <83y2k6v378.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29198"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 16 15:26:01 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTPk8-0007Sd-Ol for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Oct 2020 15:26:00 +0200 Original-Received: from localhost ([::1]:33706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTPk7-000339-QW for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Oct 2020 09:25:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTPiL-0001oA-AG for emacs-devel@gnu.org; Fri, 16 Oct 2020 09:24:10 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:45538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTPiJ-0007gV-8R; Fri, 16 Oct 2020 09:24:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pFIZcfSFK5KpwdM9mP+tvvYTirFJI/CyrR44Ie2MHQs=; b=aFGSOHc18KT1AiDYERn2MThvSj cvRqqSxwXNMSRmiAk48IPWDzDI4vfT3LwQ67YXsDpysi4QyKKPsJ66PoXegpJAV+D9hvnMcPqgOSr FDxpahV2Vr3cda+E7m+zkNoAOOFx8KqEIlFv9S4js5c494l1M6L3GpxigUq+YS5+HFUE=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTPiD-0003SD-O9; Fri, 16 Oct 2020 15:24:04 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUPDhAsKy49PUFe XGGamZ9+fILExc3///+6ZzRAAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+QKEA0ONOxH9mIAAAG1SURB VDjLbZTRmYQgDIRlrwFhKwArWNAKjDagduBH/yVcJgHRu2WfNr+TCSHQdX3XWWOfi2Nt2f5PAKvv ro9bEGl8DDHI8k31k5Y0TzPRllJi3EQsCMOQdEXWlPgrhDh4l+oKFp4A/GeMojiOtLOmLz7WhqCZ diJiSfR9qSoEic8T0dJsDMcFEHFpNAswBSA+ki7xt2oxVAMSSQNJM12S6EGct+8LnIQORDGx1jGY uKI1c3hHLgHvDzymkeNZSAUuFJDzua5nMUGqWm0GKUA8XKkWqXJ1F8BhtlYAsuFUUBUrjlTiAHN8 ATjdX6Jcc83JVTDNo5grWNgDLQm1U5d7ir1Bc3HgC8dbWQCswLlymwSsNI/LltBE3eCuCnw/ck+s BzC6kQomPl5R9LrDFeboSdoUGI/jOLQqAegVz4nRWSiA8ikAwyB9ny6AGY4yWDo+2KGaYxp0Eh0A JHR1vevaYO3XlMQy8MZKg3ngFv5xCz/1iujIca5tX3bO5G8AkoPLOaaDZ7cCo/Z1xXYPWeLDN/CU 3K6nbKWS4G/A6HWLA267v78PFuTfE/BAj1ejki9PT0M1/AshILYj9YoopgAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMC0xMC0xNlQxMzoxNDo1MiswMDowMIoTElwAAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjAtMTAtMTZUMTM6MTQ6NTIrMDA6MDD7TqrgAAAAAElFTkSuQmCC X-Now-Playing: Kate Bush's _50 Words For Snow_: "50 Words For Snow" In-Reply-To: <83y2k6v378.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 16 Oct 2020 14:07:55 +0300") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:257805 Archived-At: Eli Zaretskii writes: >> For added helpfulness, would it be possible for Emacs to be even more >> specific? Like, say "sudo apt install fonts-noto-color-emoji >> fonts-symbola", or whatever, depending on the system. > > For that, you'd need a database of fonts per OS and per release (and I > think on GNU systems this will have to depend on the distro as well?), > and you'd need to maintain that database. Who around here knows > enough about fonts on different systems to maintain such a database? To have perfect coverage, we'd need to do a lot of work. But we don't have to have that, so we don't need to do that much work. Having a list of nice fonts with good coverage for, say, the five most significant operating systems, should be a list of less than thirty font packages. >> Fonts change over the years, so this would be an added maintenance >> burden... but they don't change a lot: New general-use fonts with good >> coverage aren't created very often. > > IME, the fonts do change quite a lot between releases. The fonts change, but the number of fonts we care about doesn't. > I think the best we can do here is (a) add more fonts to the default > fontset (it isn't trivial, as quite a few good fonts aren't free); and > (b) have a command to report which of the fonts mentioned in the > default fontset aren't available. There's still the issue of letting them know what the issue is. Clearly, showing them tofu isn't enough, because the issue comes up again and again. Popping up a warning buffer (at the first time tofu is displayed per session) may be OK, but could be annoying? However, our warning buffers now have buttons to easily disable the warning permanently, so it might be OK. Displaying a message in the echo area (again, only the first time we tofu in a session) saying something like "Unable to display character; type `C-h TO-BE-DETERMINED' for more information" might also be an option. Or... adding help echo text props to tofu? We give non-character bytes in a buffer a special font, so that would be kinda analogous. I think there's probably plenty of opportunity here to be more helpful to the users. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no