From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Weird font problem Date: Thu, 06 Jun 2024 08:31:21 +0300 Message-ID: <86msnyiqmu.fsf@gnu.org> References: <86y17jsusk.fsf@fastmail.fm> <86ed9bk1z1.fsf@gnu.org> <868qzjgl6g.fsf@fastmail.fm> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20865"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 07:32:09 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 1sF5jM-0005Eo-0D for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 07:32:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sF5ik-0002OJ-PI; Thu, 06 Jun 2024 01:31:30 -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 1sF5ij-0002NV-Hp for help-gnu-emacs@gnu.org; Thu, 06 Jun 2024 01:31:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sF5ij-0007zE-AD for help-gnu-emacs@gnu.org; Thu, 06 Jun 2024 01:31:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NcvtsnXYx7bEiVyhCeVKOWwLiZL7mXDRC0yGCvigPvo=; b=AkLq2dJ/T1PG Ani35+JC2luld4jHZXRzsvMlalOx5CMY9lMQhiY0dC0g4aVrGZef1Hty8jogL+0R1rg+mnyC8KCSH fxXWCPFZAYxMr5f3PZx+aNt2sh34dvETRh9D6WBsEDqY7ITB6KEzShd5m3jo2RkmYNN33Reps7J2d ozSvGJW+h7pWJmiEudrOTUioi6zgpEnrl+0JG+3jAY6/0Df9FGWfn0FXoaEbLe8+vCHOlSe4ILESu ucmQjwvzjRDatonxQ2bPioOfjYtE73890OeBweOhIcVn1Wu1d5u0Fw0nOaYWQPd3WXZWL/xDU8x4B WYHHJuqHPkeho7JhEKJjtA==; In-Reply-To: <868qzjgl6g.fsf@fastmail.fm> (message from Joost Kremers on Wed, 05 Jun 2024 22:59:51 +0200) 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:146860 Archived-At: > From: Joost Kremers > Cc: help-gnu-emacs@gnu.org > Date: Wed, 05 Jun 2024 22:59:51 +0200 > > On Wed, Jun 05 2024, Eli Zaretskii wrote: > > Does Vertico display the character of the preview's current line in > > some special face, like bold or italics? If so, it could be that the > > font used to show these symbols doesn't have the variant needed for > > that display. > > I realised that I don't only have vertico, I also use marginalia, which is > responsible for the faces. Disabling marginalia (but keeping vertico) gives a > much more spartan look, but the issue remains: > > Moving the highlight still changes the characters to the box with hex > codepoints, and taking a screen shot changes all of them (with no way of getting > back the characters). 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). > Vertico doesn't apply any special faces to the candidates, it just uses the > 'highlight' face for the current selection, which only specifies a background > colour. Can you reproduce this in "emacs -Q" with only Vertico loaded? > > Did you try to use a different font for this range of characters? > > Like Symbola, for example? > > I'm not sure how to do that. Using set-fontset-font. > > Does Emacs have problem displaying these characters in situations > > other than Vertico completion preview? > > I mentioned Vertico because that's actually the only time the characters are > displayed. Anywhere else, e.g., if I insert them into a buffer, they > always appear as hex boxes. 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?