From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Weird font problem Date: Thu, 06 Jun 2024 09:15:20 +0200 Message-ID: <86msny1r07.fsf@fastmail.fm> References: <86y17jsusk.fsf@fastmail.fm> <86ed9bk1z1.fsf@gnu.org> <868qzjgl6g.fsf@fastmail.fm> <86msnyiqmu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31241"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 09:16:11 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1sF7M1-0007rR-Ss for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 09:16:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sF7LR-000634-1I; Thu, 06 Jun 2024 03:15:33 -0400 Original-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 1sF7LO-00062P-Np for help-gnu-emacs@gnu.org; Thu, 06 Jun 2024 03:15:31 -0400 Original-Received: from fout3-smtp.messagingengine.com ([103.168.172.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sF7LL-0004NV-RI; Thu, 06 Jun 2024 03:15:30 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 622E21380158; Thu, 6 Jun 2024 03:15:24 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 06 Jun 2024 03:15:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1717658124; x=1717744524; bh=Zx2aMPby+wWWa2iS2oEMkKSYAVqHbwzbHSsgTkJbxZg=; b= PTjR5OD6OjEzFb/EIyod8AaWleK+e2jb4aGfF7z99Uh8QijpZk3dbXgYp1f1Q1t1 4RTRkF9+28WoujxcMCdSUCwrQ9ojgmYNOxACuREjf280WOcYXjmq88poFWauP6JC l5tOysLXFC/xw73+Q0MUm1Z2mnaWZEMBWS9x9amwSSFuFl4p5iI5V4clRlu3y8Ac 9pUNy0nxiZIAnyiXmVf2jntQGOjifrJtfNrxo0lO8VR7iWvyOrUmITCYtOQvC193 zHs9RtR+tnX0oNIpwYkH+QGj81lHD08IxMb2cTsf1VJYLbyc2j0xf/PnP2sURcnc cDqm4i/aHACxSATPWg47Xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717658124; x= 1717744524; bh=Zx2aMPby+wWWa2iS2oEMkKSYAVqHbwzbHSsgTkJbxZg=; b=p kGJkyd2LPAEuU/c5Y4jyaBo66pRwIMd0TMsfdu10wBBnSV3mK1TiAAD0/y0KUvJL 3cJ9Mt+Z5tJUhA6eOUjqNJU5ZY8DVVpv6YO+U4DoiozN8sLpZyQO+3BMMs+iQUgc UdtU52znN7Cu6R9BfRfqZXUnEDwIf8CbokIVOSORy3PuVHKF0Zmi/RumASBR8yYN 4yTZyNZfCRtbMkjyosxoklIiiK+crxP/UvennOuMm2ebd3EW8QrcfajEYu+9HX3B 1rxgjZcTrc/tsvbVZunxTA/hyrjeksNVVIz36rvTi+Oo7tLGiLClG02EujbEmbk7 aKJQoE/UYovQPDY7v0c4w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeljedguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpeflohho shhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfh hmqeenucggtffrrghtthgvrhhnpefggfegkeehveefgfdtgfevjeefgeevheefleeuhefg heegjeehveejuefgjeejtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Jun 2024 03:15:23 -0400 (EDT) In-Reply-To: <86msnyiqmu.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 06 Jun 2024 08:31:21 +0300") Received-SPF: pass client-ip=103.168.172.146; envelope-from=joostkremers@fastmail.fm; helo=fout3-smtp.messagingengine.com 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146861 Archived-At: On Thu, Jun 06 2024, Eli Zaretskii wrote: > Then maybe we need to move all this to the bug tracker? Please submit > a bug report with all the details. Bonus points for being able to > show a recipe to reproduce the problem starting from "emacs -Q" (and > loading any add-on packages needed for reproduction). I'll try to do that. With 'emacs -Q' and just vertico loaded, the problem c= annot be reproduced. 'C-x 8 RET' followed by 'DOCU' shows hex boxes for all candidates, so it seems there's something else in my config that is involve= d. I'll try and figure out what that is. >> > Did you try to use a different font for this range of characters? >> > Like Symbola, for example? >>=20 >> I'm not sure how to do that. > > Using set-fontset-font. (set-fontset-font nil ?=F0=9F=97=8E "Noto Sans Symbols 2:style=3DRegular") makes the character appear (i.e., displayed correctly). > So something Vertico does is special, if it has this effect. And the > fact that you see these characters as hex codes elsewhere basically > means that you lack a font for displaying these characters reliably. > So maybe, instead of trying to understand how Vertico succeeds to pull > this trick, you should find and install a font capable of displaying > those characters when inserted into a "normal" buffer? fc-list suggests I already have: ``` joost@sphinx ~$ fc-list ':charset=3D01f5ce' /usr/share/fonts/noto/NotoSansSymbols2-Regular.ttf: Noto Sans Symbols 2:sty= le=3DRegular /usr/share/fonts/OTF/Font Awesome 6 Free-Regular-400.otf: Font Awesome 6 Fr= ee,Font Awesome 6 Free Regular:style=3DRegular /usr/share/fonts/OTF/Font Awesome 6 Free-Solid-900.otf: Font Awesome 6 Free= ,Font Awesome 6 Free Solid:style=3DSolid ``` So why isn't Emacs finding it? (Yesterday, occasionally, I did get the corr= ect glyph when inserting DOCUMENT into a buffer, but every time, once I moved f= ocus away from the window, the hex box appeared. I couldn't find out under what circumstances that happened, though, it seemed rather random...) --=20 Joost Kremers Life has its moments