gaplo917 / Ligatured-Hack

Automatically patch latest Hack Font with latest JetBrains Mono / FiraCode Ligatures
GNU General Public License v3.0
269 stars 12 forks source link

Do you have any plans to support CJK? #6

Open black7375 opened 4 years ago

black7375 commented 4 years ago

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.

gaplo917 commented 4 years ago

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.

black7375 commented 4 years ago

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.