Git Product home page Git Product logo

Comments (11)

JerryChin avatar JerryChin commented on August 23, 2024 18

IMHO, there's no monospaced font that is compatible with CJK characters.

from cascadia-code.

happystraw avatar happystraw commented on August 23, 2024 15

IMHO, there's no monospaced font that is compatible with CJK characters.

Ubuntu Mono is compatible with CJK characters.

image

from cascadia-code.

aaronbell avatar aaronbell commented on August 23, 2024 9

Compatibility between monospace CJK and non-CJK fonts is purely incidental—the width of the Latin characters needs to be half the width of the CJK characters at the same UPM size. Otherwise they won't line up.

If you want perfect compatibility between CJK and non-CJK script, I recommend using a CJK font with included full-width or half-width forms.

from cascadia-code.

Buernia avatar Buernia commented on August 23, 2024 8

IMHO, there's no monospaced font that is compatible with CJK characters.

Iosevka and Noto Sans Mono ExtraCondensed are also compatible with CJK characters.

from cascadia-code.

driver1998 avatar driver1998 commented on August 23, 2024 5

https://github.com/be5invis/Sarasa-Gothic is a mono space font with great CJK compatibility.
Snipaste_2019-09-20_22-16-37

from cascadia-code.

kazuf3 avatar kazuf3 commented on August 23, 2024 4

Ubuntu Mono is not CJK font, so you are using chosen fallback font as Microsoft YaHei. However, YaHei is not mono space font, no mono space latin font can align to it.

image

EDIT:
In case 2, they are both monospace fonts but not aligning. In these case, we usually make a composite font with adjustment on changing width of either side to make it align. For example, Ricty is a composite font from two mono space fonts: Migu 1M(JP) + Inconsolata(Latin). They have different magnification on composition in order to make them aligned.

Since Cascadia is not CJK font, it means if you want it to align to some CJK mono space font, you must to adjust the magnification.

from cascadia-code.

happystraw avatar happystraw commented on August 23, 2024 2

@JerryChin I use Linux(Manjaro), maybe it's different from Windows.

@kazuf3 You are right. And Ubuntu Mono is compatible with CJK characters when used with a chosen fallback font (such as Source Han Sans CN).

TEST:

vscode + "editor.fontSize": 20)

2019-09-20_15-11

from cascadia-code.

abcdehc avatar abcdehc commented on August 23, 2024 2

I hope that cascadia can create a new variant to support CJK.
I know there are some ways to make composite fonts,
but if cascadia wants to become a good terminal font for more people,
maybe it can release the official version support more language.

from cascadia-code.

cyrusn avatar cyrusn commented on August 23, 2024 1

I am used to inconsolata, you may have a try too.

from cascadia-code.

JerryChin avatar JerryChin commented on August 23, 2024

@happystraw For some reasons, I can't reproduce your outcome on IntelliJ IDE with Ubuntu Mono :

image

Maybe, I'm wrong.

from cascadia-code.

Xyncgas avatar Xyncgas commented on August 23, 2024

is one single monospace font supporting all scripts possible?
(all unicode languages)

from cascadia-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.