stellarium icon indicating copy to clipboard operation
stellarium copied to clipboard

Please Add Multi-font settings

Open fengsuiyvmin opened this issue 10 months ago • 10 comments

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.

fengsuiyvmin avatar Mar 17 '25 12:03 fengsuiyvmin

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?

10110111 avatar Mar 17 '25 12:03 10110111

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.

gzotti avatar Mar 17 '25 12:03 gzotti

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.

fengsuiyvmin avatar Mar 17 '25 14:03 fengsuiyvmin

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

10110111 avatar Mar 17 '25 14:03 10110111

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.

gzotti avatar Mar 17 '25 14:03 gzotti

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

where to get it?

fengsuiyvmin avatar Mar 17 '25 14:03 fengsuiyvmin

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

10110111 avatar Mar 17 '25 14:03 10110111

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

thanks.

fengsuiyvmin avatar Mar 17 '25 14:03 fengsuiyvmin

Hello @fengsuiyvmin!

We really need your feedback.

github-actions[bot] avatar Mar 23 '25 11:03 github-actions[bot]

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

fengsuiyvmin avatar Mar 27 '25 02:03 fengsuiyvmin