seagle0128 / doom-modeline

A fancy and fast mode-line inspired by minimalism design.
https://seagle0128.github.io/doom-modeline/
GNU General Public License v3.0
1.27k stars 157 forks source link

[Bug] Lightbulb symbol 01F4A1 not displaying in mode line #692

Closed lestergill closed 6 months ago

lestergill commented 7 months ago

Thank you for the bug report

Bug description

Emacs version:

(emacs-version)
"GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)
 of 2022-01-24, modified by Debian"

I am using Monofur Nerd Font Mono:

(describe-variable 'nerd-icons-font-family)
#("nerd-icons-font-family is a variable defined in ‘nerd-icons.el’.
Its value is \"Monofur Nerd Font Mono\"

Here it is in my ~/.fonts dir:

~ $ cd .fonts/
~/.fonts $ ls
IBMPlexMono-Regular.ttf                  MonofurNerdFontMono-Italic.ttf
IBMPlexMono-Regular.ttf:Zone.Identifier  MonofurNerdFontMono-Regular.ttf
IosevkaSS08-Regular.ttc                  MonofurNerdFontPropo-Bold.ttf
IosevkaSS08-Regular.ttc:Zone.Identifier  MonofurNerdFontPropo-Italic.ttf
MonofurNerdFont-Bold.ttf                 MonofurNerdFontPropo-Regular.ttf
MonofurNerdFont-Italic.ttf               ProggyClean.ttf
MonofurNerdFont-Regular.ttf              ProggyClean.ttf:Zone.Identifier
MonofurNerdFontMono-Bold.ttf

I am running Emacs in WSL2 as a GUI app on a Windows 10 desktop machine, the WSL2 is using Ubuntu 22.04.2 LTS and kernel 5.15.133.1-microsoft-standard-WSL2

Screenshot 2024-01-23 130659

You can see it in the taskbar above. Please let me know if you need anything else or if I have made a mistake.

Steps to reproduce

Install the font in ~/.fonts and refresh the cache. Set the nerd font family variable. Run nerd-icons-install-fonts. Open a Java file, with lsp-mode and lsp-java language server. The lightbulb symbol, that should appear when the language server notices an error or warning, is replaced with a hex symbol as in the image.

Expected behavior

Lightbulb symbol to be displayed in mode line.

OS

Linux

Emacs Version

27

Emacs Configurations

Vanilla emacs with Doom modeline and Doom theme

Error callstack

No response

Anything else

No response

seagle0128 commented 7 months ago

You should install correct fonts via M-x nerd-icons-install-fonts. The default font name is "Symbols Nerd Font Mono". Please check nerd-icons-font-family. Below is screenshot in my env (WSL2 + Arch + Emacs 29.1 pgtk)

image

lestergill commented 7 months ago

I have already done M-x nerd-icons-install-fonts.

I already posted the output of nerd-icons-font-family. But, I will change it again, to the default.

(describe-variable 'nerd-icons-font-family)
#("nerd-icons-font-family is a variable defined in ‘nerd-icons.el’.
Its value is \"Symbols Nerd Font Mono\"

I have the same issue.

Screenshot 2024-01-24 111749

This is my nf-md-... list showing that I do have it on preview, same as you:

Screenshot 2024-01-24 114205

This symbol should be displayed when enabling lsp-modeline-code-actions-mode and setting lsp-modeline-code-actions-segments.

seagle0128 commented 7 months ago

I guess some fonts are conflicted with `NFM.ttf``, and override some icons.