Gnus development mailing list
 help / color / mirror / Atom feed
* Inserting UTF-8 icons into Gnus format-strings using all the icons
@ 2023-03-26  2:28 Björn Bidar
  2023-03-27  9:51 ` Robert Pluim
  0 siblings, 1 reply; 2+ messages in thread
From: Björn Bidar @ 2023-03-26  2:28 UTC (permalink / raw)
  To: ding



Hey,

I'm inserting UTF-8 icons into Gnus format-strings namely the example
down below:
(setq gnus-topic-line-format (concat "%i[ "
                                     (propertize ;(all-the-icons-faicon "folder-open")
                                      (all-the-icons-material "folder")
                                      'display '(raise 0.0))
                                     " %(%{%n -- %A%}%) ]%v\n"))

The icons are inserting using the material icons font family that all
the icons ships.

However when other fonts that can display the character are present the
other font families are used.
This is describe char on the folder icons example shown above:
             position: 1480 of 2550 (58%), column: 13
            character:  (displayed as ) (codepoint 57688, #o160530, #xe158)
              charset: unicode (Unicode (ISO10646))
code point in charset: 0xE158
               syntax: w 	which means: word
             category: L:Strong L2R, j:Japanese
             to input: type "C-x 8 RET e158"
          buffer code: #xEE #x85 #x98
            file code: #xEE #x85 #x98 (encoded by coding system utf-8-unix)
              display: by this font (glyph code):
    ftcrhb:-unknown-Material Icons-regular-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#xC1)

Character code properties: customize what to show
  general-category: Co (Other, Private Use)
  decomposition: (57688) ('')

There is an overlay here:
 From 1467 to 1508
  face                 hl-line
  priority             -50
  window               nil


There are text properties here:
  face                 gnus-group-mail-3
  fontified            t

How can I insert the icon into the format string while keeping the font
family attribute?

Br,

Björn


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-27  9:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-26  2:28 Inserting UTF-8 icons into Gnus format-strings using all the icons Björn Bidar
2023-03-27  9:51 ` Robert Pluim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).