rainstormstudio / nerd-icons.el

GNU General Public License v3.0
206 stars 22 forks source link

Add function to set font-family for nerd icons charsets #17

Closed nasyxx closed 1 year ago

seagle0128 commented 1 year ago

Can you please let me know the purpose of this function? What's the scenario?

nasyxx commented 1 year ago

Can you please let me know the purpose of this function? What's the scenario?

Most Nerd fonts use the private area of Unicode, and a small part overlaps with the area of CJK.

Screenshot 2023-05-08 at 8 29 59 AM Screenshot 2023-05-08 at 8 59 16 AM

There may be other fonts used for other things in the private area. For example, the variant characters of some ancient Chinese scrolls/books will be in this area. Although it is not used in Emacs most of the time, if this font is installed and the ranking is higher in the system, Emacs will display Chinese fonts first and then display nerd fonts. Therefore, it is necessary to bring nerd font first and then Chinese fonts by specifying charsets.

The CJK area is basically a compatible part of Korean uploads https://symbl.cc/en/unicode/blocks/cjk-compatibility-ideographs/ , which can be covered without worry.

Screenshot 2023-05-08 at 8 39 34 AM
seagle0128 commented 1 year ago

It does make sense! @rainstormstudio it's your call.

seagle0128 commented 1 year ago

It does make sense! @rainstormstudio it's your call.