Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font option for double-width characters. #821

Closed
fengyichui opened this issue Nov 16, 2018 · 5 comments
Closed

Font option for double-width characters. #821

fengyichui opened this issue Nov 16, 2018 · 5 comments

Comments

@fengyichui
Copy link

Vim has two font options: guifont, guifontwide. The guifontwide is used for double-width characters.

I like Consolas to display English and YaHei for Chinese(double-width). Consolas display Chinese is ugly.

Could there be a option for double-width characters?

@mintty
Copy link
Owner

mintty commented Nov 16, 2018

Duplicate of #580.
This is something that can be done, but there are some design issues:

  • Should a secondary font be specific for CJK or should there be a more generic mechanism, so also a secondary font could be specified for other scripts? And how could such a mechanism be configured?
  • Should Windows font fallback be considered in any way or should this simply override it?

@fengyichui
Copy link
Author

fengyichui commented Nov 16, 2018

Thanks very much! The fontlink worked!

The following dosbatch adds my favorite Chinese fonts (run as administrator and reboot):

REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Fontlink\SystemLink" /v Consolas /t REG_MULTI_SZ /d "MSYH.TTC,Microsoft YaHei UI,128,96"\0"MSYH.TTC,Microsoft YaHei UI"\0"Arial.TTF,Arial,128,96"\0"Arial.TTF,Arial"

mintty added a commit that referenced this issue Jul 10, 2019
@mintty
Copy link
Owner

mintty commented Jul 10, 2019

Mintty now supports script-specific secondary fonts, option FontChoice. Configuration example:

FontChoice=Hebrew:6;Arabic:7;Han:8;Hangul:9
Font6=David
Font7=Simplified Arabic Fixed
Font8=FangSong
Font9=MingLiU

@mintty mintty reopened this Jul 10, 2019
@fengyichui
Copy link
Author

👍👍👍

@mintty
Copy link
Owner

mintty commented Jul 13, 2019

Released 3.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants