Ligatured-Hack icon indicating copy to clipboard operation
Ligatured-Hack copied to clipboard

Do you have any plans to support CJK?

Open black7375 opened this issue 3 years ago • 2 comments

Necessity

CJK characters are not included in Hack or JetBrains Mono.

As one of the Asian users, CJK characters are often included in strings or comments. Even if it's annoying, we need to set the fallback after resizing it with a tool that fits the size like Font style matcher.

It's a painful process. If a high-quality font supports CJK, I think it will help many users.

Some resource

This is a helpful resource.

Chinese

Considering that you are from Hong Kong in your profile, I think you know better than me.

Japanese

I looked for Japanese-related fonts.

Article

Font

After reading the introductory articles, it would be better to merge them based on HackGen. I hope someone who knows Japanese well can help.

Korean

is Best Font.

black7375 avatar Sep 25 '20 18:09 black7375

Hi @black7375, this project mainly focuses on creating a Hack ligatured font. For a general-purpose to add ligature to the font, you may want to check out this Repository https://github.com/ToxicFrog/Ligaturizer/tree/master

In my understanding, the most difficult part about creating a source code font with CJK support is to tune the size of the font "Box" that makes CJK characters work harmoniously with the source code. Thus, rather than solving the difficulties in this repo, using a patched CJK font and add ligatures on it should more match the project plan.

HackGen is a good choice and can be considered as one of the source font to patch ligature in it. Thank you for the suggestion.

However, D2Coding is not Hack patched Korean font. I would suggest you could use the Ligaturizer or fork this repository to make necessary changes to support D2Coding.


I never think of creating a Hack Chinese patched font. Maybe, it is because most of the Hong Kong developers write English comments and documentations in their codebase, at least for me, don't encounter any issues with source code and Chinese font.

But, I still started google and found some interesting issues when using Hack with Chinese, i.e. https://github.com/source-foundry/Hack/issues/341

Anyway, thank you for your insight. Maybe there is a separate project to create a Hack Chinese patched font and might be I could R&D a generic handling of resizing a font "Box" that could apply Japanese and Korean too.

gaplo917 avatar Sep 29 '20 02:09 gaplo917

Thank you for your kind reply.

Most of my work is in English too, but sometimes I use it as a fallback in the editor(vscode, emacs) or on the web because of a need.

If you have work to do later or write down information for someone to do it, rescaling D2Coding by about 1.17 times will match Hack.

black7375 avatar Sep 29 '20 05:09 black7375