nerd-fonts icon indicating copy to clipboard operation
nerd-fonts copied to clipboard

add font support Chinese

Open bestv5 opened this issue 2 years ago • 5 comments

Requirements

I hope can add some fonts support Chinese

bestv5 avatar Mar 29 '22 02:03 bestv5

Maybe you can explain a bit more what you hope for?

I have no experience with Chinese glyphs, but I guess most fonts have only latin letters, some have cyrillic additionally, few have more. If you have a nice (Chinese) font where you would like to have all the icons and symbols added to it, that can probably be done. I believe there are some Google-Noto fonts. But I guess you need a 'westener' font installed and used in parallel anyhow?

Sorry, would need more input. What you use, how you use it, what you expect, ... :-)

Finii avatar Mar 30 '22 09:03 Finii

aybe you can explain a bit more what you hope for?

such as,

  1. JetBrains Mono Font. website: https://www.jetbrains.com/lp/mono/, Chinese is not supported.
    image

  2. Microsoft YaHei Font. website: https://docs.microsoft.com/zh-cn/typography/font-list/microsoft-yahei ,Support Chinese display.
    image image

In some software, only one font can be selected, if select JetBrains Mono Font, The Chinese font cannot be set。

so,I hope to find some nerd-font fonts that support Chinese.

bestv5 avatar Mar 30 '22 16:03 bestv5

Do you need just the symbols inside (for example) Microsoft YaHei Font or do you in fact need a JetBrains Mono font, with symbols and Chinese glyphs?

Nerd Font just takes existing fonts (with an appropriate license) and add some symbol glyphs to it. It does not touch the contained 'language' glyphs. So if the original font does not have Chinese glyphs, the fonts created by Nerd Font also do not have them.

For example we could take the Microsoft YaHei Font and add the symbols. But we can not, because of the font's license. But you yourself can (i.e. take the font-patcher and add symbols to a local existing font file). But then I doubt that someone wants to do programming with YaHei Font :thinking:

But what we could patch - probably, did not check in detail - is Google's Noto CJK, which is in fact Adobe's Source Han. https://github.com/googlefonts/noto-cjk/releases

image

But which of that many fonts (that are huge files) would be useful?

I guess maybe Language Specific Monospace OTFs Simplified Chinese (简体中文) (Noto Sans Mono CJK)?

image

Ah and then fontforge is not able to open the font..., probably because they are OTC.

https://github.com/googlefonts/noto-cjk/blob/main/Sans/README.md

But there is a ttf VF variant:

https://github.com/googlefonts/noto-cjk/raw/main/Sans/Variable/TTF/Mono/NotoSansMonoCJKsc-VF.ttf

I guess we can patch that. But that would just be 'regular' and not 'bold', because fontforge does not work with VF very well.

But most critical is the question from the top: Do you need just the symbols inside (for example) Microsoft YaHei Font or do you in fact need a JetBrains Mono font, with symbols and Chinese glyphs?

Finii avatar Mar 31 '22 11:03 Finii

@Finii Microsoft yaheihe or JetBrains Mono is just an example. You can maintain several license free Chinese fonts and make them into nerd font. In fact, I want an equal width font for programming, which supports both Chinese and symbols。

bestv5 avatar Apr 01 '22 00:04 bestv5

你好 偶然看到這個Issue 若你是想要已經打好補釘的中文字體 這邊有個Repo是我自己已經使用很久的 https://github.com/tsunesan3/awsome-jp-coding-fonts 雖然是作者是日本人 但像是NasuM這個字體是使用思源黑體衍生字體修改而來 故有著與思源黑體一樣的中文字覆蓋度(當然有些字會變成日文漢字慣用寫法,但我覺得無傷大雅)


This repo contains a lot of nerd fonts pathched CJK fonts, which I've used for a long time. https://github.com/tsunesan3/awsome-jp-coding-fonts

kix99aug avatar Jun 23 '22 15:06 kix99aug

可以看看Sarasa字体,作者提供了支持英文和中文字符同时还能完美保证等宽。

cloud-yu avatar Nov 21 '22 06:11 cloud-yu

可以看看Sarasa字体,作者提供了支持英文和中文字符同时还能完美保证等宽。

Translate: You can take a look at the Sarasa font. The author provides support for English and Chinese characters and can perfectly guarantee equal width.

Finii avatar Nov 21 '22 08:11 Finii

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference.

github-actions[bot] avatar Nov 13 '23 00:11 github-actions[bot]