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

Please Add Multi-font settings #4218

Open
fengsuiyvmin opened this issue Mar 17, 2025 · 10 comments
Open

Please Add Multi-font settings #4218

fengsuiyvmin opened this issue Mar 17, 2025 · 10 comments
Labels
state: waiting feedback Waiting for user feedback subsystem: gui The issue is related to GUI subsystem of planetarium...

Comments

@fengsuiyvmin
Copy link

I want to use a special font for Narrow-Characters, and another font for Wide-Characters.

Is there any possibility to set this?

I mean, as an Asian, when using Asian fonts for Latin letters is always not a pleseant experience; it is same feel when using Latin fonts for Asian characters.

If there is a way to seperately set fonts for Narrow-Characters and Wide-Characters like Vim or VS Code did, things will be better.

@10110111
Copy link
Contributor

By a special font do you mean a special typeface or size or both? And how would it look, could you show an example screenshot of Vim or VS Code that you mention?

@gzotti
Copy link
Member

gzotti commented Mar 17, 2025

Do you mean narrow as in "I" and wide as in "M", or the distinction of "boldface" vs. "regular"?

You can select any font that exists in your system, but so far only one. Selecting another font for boldface might be possible via CSS, but probably not mixing fonts for "I" and "M" within a word.

@fengsuiyvmin
Copy link
Author

Do you mean narrow as in "I" and wide as in "M", or the distinction of "boldface" vs. "regular"?

You can select any font that exists in your system, but so far only one. Selecting another font for boldface might be possible via CSS, but probably not mixing fonts for "I" and "M" within a word.

I mean things like "M" and "我". the character like "M" usually only takes only 1 letter wide, and the character like "我" always takes 2 letter wide. It just a common Chinese character, and the same things happens on Korean and Japanese characters too.

So when I use Asian fonts, the character "M" now is a weird "M", and Asian fonts are bad on distinguesh characters like "QO08o", "1lIi" and so on.

However, if I use Latin fonts for Latin, the Asian characters will just missing or looks weird because Latin fonts usually not include all asian character sets.

So, there're only two ways: try to find an expensive commercial font that includes all characters I need, or just simply separate them by using two different fonts.

@10110111
Copy link
Contributor

Wouldn't Noto be the font of your choice? It has Latin and CJK subfonts and is free.

@gzotti
Copy link
Member

gzotti commented Mar 17, 2025

You mean, the Unicode aware Noto font does not cover your needs? I am sorry, but I lack knowledge how to detect a wide character. We are using what programming APIs provide. Indeed, a screenshot may help illustrate your case.

@fengsuiyvmin
Copy link
Author

Wouldn't Noto be the font of your choice? It has Latin and CJK subfonts and is free.

where to get it?

@10110111
Copy link
Contributor

This seems to be the main page: https://fonts.google.com/noto

@fengsuiyvmin
Copy link
Author

This seems to be the main page: https://fonts.google.com/noto

thanks.

@gzotti gzotti added the state: waiting feedback Waiting for user feedback label Mar 23, 2025
Copy link

Hello @fengsuiyvmin!

We really need your feedback.

@gzotti gzotti added the subsystem: gui The issue is related to GUI subsystem of planetarium... label Mar 23, 2025
@fengsuiyvmin
Copy link
Author

Hello @fengsuiyvmin!

We really need your feedback.

er, although not fit too much, but I managed to find a font that seems fits.

link of this font:
https://github.com/subframe7536/maple-font

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: waiting feedback Waiting for user feedback subsystem: gui The issue is related to GUI subsystem of planetarium...
Development

No branches or pull requests

3 participants