From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4894 invoked from network); 27 Mar 2023 09:52:09 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 27 Mar 2023 09:52:09 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pgjWI-007fBx-1A for ml@inbox.vuxu.org; Mon, 27 Mar 2023 04:52:06 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1pgjWH-002D8F-2H for ml@inbox.vuxu.org; Mon, 27 Mar 2023 04:52:05 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1pgjWD-002D7z-03 for ding@lists.math.uh.edu; Mon, 27 Mar 2023 04:52:01 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pgjW8-00EvHS-1W for ding@lists.math.uh.edu; Mon, 27 Mar 2023 04:52:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: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=JmgjHWMmbRhbvxq9z1z0PyMAUm4PfoebmNOt9zOZKqs=; b=Ly6zn2BRpaTZKeZhqOZshCHS2I VN3gM8GcwGxo2MwqX3B3+fSNaLccIL/npFtTlBhiUY6kGjSZ6DMuEcNYwxP1SlmcMzrjPTPKHlU24 3FdFCUE1cUY2dMpAG29u5itdYF6pnH/S6wC4oADhmzhY+echXRJcalvjRn9tNmgWku68=; Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pgjVz-0005l6-FA for ding@gnus.org; Mon, 27 Mar 2023 11:51:50 +0200 Received: by mail-wm1-x32b.google.com with SMTP id n10-20020a05600c4f8a00b003ee93d2c914so6584345wmq.2 for ; Mon, 27 Mar 2023 02:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679910705; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=JmgjHWMmbRhbvxq9z1z0PyMAUm4PfoebmNOt9zOZKqs=; b=mXVcz92WEtF0ekFDdgonD94yaDS6KpGL6qKm+IHGJm1iF5K9wBAQA9DhlfNdlsPpIK sHfQoA/kNJfAGrQ/1OhbCAjBmYfsVaY756mBFEDolbeVWWhPoq60pM8YCBwyUBreiWY3 iJJLj4Xxn0NLSXKbGCz8u7HJ/Nozv06zNlC6aIBhMFcJjtphto+Yk9D6yhH476jy0obB o0OtxhWuCDk93k165eTMOoWhTyOFmYKed3c9qJP+MlPKnAoLv68ZEapKHyCKwU9vCNdH ODhAm/Qy+NBKVYmKFc3qwSbmd45T321tmAsC6xhnGTrrl/UZrPAq/MGKcaNTJ+0r65XH U1bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679910705; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JmgjHWMmbRhbvxq9z1z0PyMAUm4PfoebmNOt9zOZKqs=; b=Yp6e8Mp/q4V56Ea35IbgrzvTAqrv3g9NmyfzJYBE/RS/O4gQPL/yFpRGVK0KcH28Sn 2Bks34U9BLha2DvwcI2mbWbFxKzPYvrrJRaj9Q7534hqh+aKghOfkBSHv0W4P0cHOJ2F IGPj42YgOGb+G5fMDH5yPu3l1l2OCbAbVDGTW6CuZTWHor1rNmZVThDn0drJbQnrHbMq ebFWUBuiRarBkR2XstJfumtPhsPjUsQHN1fUHvj0snPHMXEsNc1xLVLu+Pg/Dp+S2XoY +zR1NCZxiyqCMbD18gYhU5Aa+4eaktFb5U9PHFk707wFnwz+f21uXQFBz7beyW5vHg2B CPWQ== X-Gm-Message-State: AO0yUKVea6lvmc/v6BUnsFnct2hMyXi1VPcVcBJ4A+xYiUJns0UEbyHm ytIKi0fP/ZsfgehN3nQlCjDxMe0m+tc= X-Google-Smtp-Source: AK7set8sA8dk86vsnI3iX/pYVAUOlSIWNwINDD9yFkdZy03a5Y6PMgnS61XUIakCqC1hfhKyONTG4A== X-Received: by 2002:a05:600c:20d:b0:3ed:6693:138d with SMTP id 13-20020a05600c020d00b003ed6693138dmr8733208wmi.4.1679910704773; Mon, 27 Mar 2023 02:51:44 -0700 (PDT) Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id j6-20020a05600c190600b003ef6bc71cccsm4294157wmq.27.2023.03.27.02.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 02:51:44 -0700 (PDT) From: Robert Pluim To: =?utf-8?Q?Bj=C3=B6rn?= Bidar Cc: ding@gnus.org Subject: Re: Inserting UTF-8 icons into Gnus format-strings using all the icons In-Reply-To: <87o7og1c16.fsf@thaodan.de> (=?utf-8?Q?=22Bj=C3=B6rn?= Bidar"'s message of "Sun, 26 Mar 2023 05:28:37 +0300") References: <87o7og1c16.fsf@thaodan.de> Gmane-Reply-To-List: yes Date: Mon, 27 Mar 2023 11:51:43 +0200 Message-ID: <874jq6o72o.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk >>>>> On Sun, 26 Mar 2023 05:28:37 +0300, Bj=C3=B6rn Bidar said: Bj=C3=B6rn> Hey, Bj=C3=B6rn> I'm inserting UTF-8 icons into Gnus format-strings namely t= he example Bj=C3=B6rn> down below: Bj=C3=B6rn> (setq gnus-topic-line-format (concat "%i[ " Bj=C3=B6rn> (propertize ;(all-the-= icons-faicon "folder-open") Bj=C3=B6rn> (all-the-icons-materi= al "folder") Bj=C3=B6rn> 'display '(raise 0.0)) Bj=C3=B6rn> " %(%{%n -- %A%}%) ]%v= \n")) Bj=C3=B6rn> The icons are inserting using the material icons font famil= y that all Bj=C3=B6rn> the icons ships. Bj=C3=B6rn> How can I insert the icon into the format string while keep= ing the font Bj=C3=B6rn> family attribute? I guess you might be able to propertize the string with an appropriate 'face' property, but it might be better to do something like: (set-fontset-font t #xE158 "Material Icons" nil 'prepend) which tells emacs which font to use for that codepoint. Robert --=20