From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Toni Schmidbauer Newsgroups: gmane.emacs.help Subject: Re: Unicode fonts not correctly displayed Date: Wed, 18 Oct 2023 15:50:21 +0200 Message-ID: <87a5sgt4j3.fsf@schmidbauer.cc> References: <87h6mptymc.fsf@schmidbauer.cc> <83mswho6bv.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="3115"; 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 Wed Oct 18 17:13:54 2023 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 1qt8F8-0000d9-QB for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 Oct 2023 17:13:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qt8EO-0000h7-QC; Wed, 18 Oct 2023 11:13:08 -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 1qt75j-0007AG-Ry for help-gnu-emacs@gnu.org; Wed, 18 Oct 2023 10:00:08 -0400 Original-Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qt75h-0002E4-0s; Wed, 18 Oct 2023 10:00:07 -0400 Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4S9XXf0pyZz9spG; Wed, 18 Oct 2023 15:59:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schmidbauer.cc; s=MBO0001; t=1697637586; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=xA1uC4aPGrnWnGaI/AIDk6ja0jlaUbuddeipqvyb3fg=; b=d1urKVDvgR1LtRRFuYOTAqpaawWoygffgzvIJe6/57fadgvMLRc7U9LM4YHi6DZUAT3UcP 0C5NWjrZ9NHlXMQSFsa2y+ImUeJsto7zn4gzYZyxgWLtrVVkHBdiGD9ZwwOoYl2IrjHSQn hush11GszroSVKyu2F4uc7cfcxX6jkS+ecmUSJYoZHN1edKuZQw69iQ/Gs/zE6WmwUdghK qcrFXbUZtErw69ngdDzj1OC6Ha2lbbv9JFBZv2zqs6XCcjwnL2qLhkvDgjIHp6msVde4PX 7IomQR4KVwAdFffbnjpUnSXVfqMFxcgCQOTFE8H0rbykSpNPz97C35hKtyognA== In-reply-to: <83mswho6bv.fsf@gnu.org> Received-SPF: pass client-ip=2001:67c:2050:0:465::201; envelope-from=toni@schmidbauer.cc; helo=mout-p-201.mailbox.org 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 18 Oct 2023 11:13:06 -0400 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:145314 Archived-At: thanks for getting back! Eli Zaretskii writes: > It is not recommended to set the fonts of both the 'default' and the > 'variable-pitch' faces to the same font. They are supposed to look > differently, and the font used for the latter face is not supposed to > be monospaced. ok thanks for the hint, this is chaos from a) not exactly knowing what i'm doing b) being desperate to get emojis working :-) > >> ;; Emoji: =F0=9F=98=84, =F0=9F=A4=A6, =F0=9F=8F=B4=F3=A0=81=A7=F3=A0=81= =A2=F3=A0=81=B3=F3=A0=81=A3=F3=A0=81=B4=F3=A0=81=BF >> (set-fontset-font t 'symbol "Segoe UI Emoji" nil 'append) >> (set-fontset-font t 'symbol "Segoe UI Symbol" nil 'append) >> (set-fontset-font t 'symbol "Noto Color Emoji" nil 'append) > > If you want to set fonts for the 'symbol' pseudo-script, you should > set use-default-font-for-symbols to the nil value. > > And why do you specify multiple fonts for the same range of > characters? That is also not recommended. Pick on font and stick to > it. because i was desperate :-) my vterm prompt wasn't working and also the modeline did not display any icons (emojis). > >> ;; should include 2b22 >> (set-fontset-font t 'symbol "Symbola" nil 'append) > > This should not be necessary if you really have Symbola installed, > since Emacs configures the default fontset to use Symbola for the 2B00 > block. > >> emoji's are rendered ok but the unicode glyph u002b22, which should be >> part of the Symbola font does not render (emacs displays 2b22). >> >> when i run what-cursor-position with a prefix arg i get the following >> information: >> >> =3D=3D=3D=3D=3D=3D=3D=3D >> position: 874 of 1186 (74%), restriction: <40-1187>, column= : 21 >> character: =E2=AC=A2 (displayed as =E2=AC=A2) (codepoint 110= 42, #o25442, #x2b22) >> charset: unicode (Unicode (ISO10646)) >> code point in charset: 0x2B22 >> script: symbol >> syntax: _ which means: symbol >> category: .:Base >> to input: type "C-x 8 RET 2b22" or "C-x 8 RET BLACK HEXAGON" >> buffer code: #xE2 #xAC #xA2 >> file code: #xE2 #xAC #xA2 (encoded by coding system utf-8-un= ix) >> display: no font available >> >> Character code properties: customize what to show >> name: BLACK HEXAGON >> general-category: So (Symbol, Other) >> decomposition: (11042) ('=E2=AC=A2') >> >> There is an overlay here: >> From 853 to 887 >> face hl-line >> priority -50 >> window # >> >> >> There are text properties here: >> fontified t >> =3D=3D=3D=3D=3D=3D=3D=3D >> >> so it tells me "no font available". i'm really struggling to understand >> why... > > Because your font configuration is, how should I put it? messy... it's a shit-show, let's be honest here. > I suggest to start from "emacs -Q" and only add non-default font > settings if the defaults don't work well. (Assuming you use a recent > Emacs version; you didn't say.) will try that. my emacs config is +10 years old, maybe it's time to start over. i'm running GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-09-08 (compiled from the emasc-29 branch), sorry for that. thanks for the hints, will start over. toni