Giter Club home page Giter Club logo

Comments (8)

kovidgoyal avatar kovidgoyal commented on May 14, 2024

The error means that fontconfig is unable to find a font to display that character. WHat does running the following on your system return?

fc-match query 'monospace:charset=597d:scalable=true:outline=true' -f '%{file} %{hinting} %{hintstyle}'

from kitty.

kovidgoyal avatar kovidgoyal commented on May 14, 2024

Sorry, I got the command wrong, above, this is the correct one:

fc-match  monospace:charset=597d:scalable=true:outline=true

On my system it returns,

arialuni.ttf: "Arial Unicode MS" "Regular"

And kitty renders those characters fine.

from kitty.

kovidgoyal avatar kovidgoyal commented on May 14, 2024

Most likely you dont have a ttf/otf font on your system capable of rendering that character. Install one and you should be fine. Presumably Terminator falls back to using bitmap fonts -- kitty currently does not do that.

from kitty.

bash-horatio avatar bash-horatio commented on May 14, 2024

In my system, it returns:

$ fc-match  'monospace:charset=597d:scalable=true:outline=true'
Unable to parse the pattern

Additional fonts already intalled in my system are showed below, but I can't find a monospace font works for English and Chinese both.

$ ls ~/.fonts
arialbd.ttf  arial.ttf   courbi.ttf  mplus-fonts-master  msyh.ttc     simkai.ttf   timesbi.ttf  ubuntu-mono
arialbi.ttf  ariblk.ttf  couri.ttf   msyhbd.ttc          simfang.ttf  simsun.ttc   timesi.ttf   wps-office
ariali.ttf   courbd.ttf  cour.ttf    msyhl.ttc           simhei.ttf   timesbd.ttf  times.ttf    zfull-for-yosemite-master

I also tried tons of font, including Arial Unicode MS, just the similar error

subprocess.CalledProcessError: Command '['fc-match', 'Arial Unicode MS:charset=597d:scalable=true:outline=true', '-f', '%{file}\x1e%{hinting}\x1e%{hintstyle}']' returned non-zero exit status 1
[glfw error]  The GLFW library is not initialized

It seems that the font does not matter?! In my mind, Chinese can be rendered by Mono in Libreoffice, Sublime and other terminals.

from kitty.

kovidgoyal avatar kovidgoyal commented on May 14, 2024

fontconfig on your system is too old, update it and you should be fine.

from kitty.

bash-horatio avatar bash-horatio commented on May 14, 2024

In the end, I find Inziu Iosevka CL is what I want and it works perfectly. Thanks!

from kitty.

kovidgoyal avatar kovidgoyal commented on May 14, 2024

You dont need a font with both english and chinese -- kitty searches for fallback fonts when the primary font does not contain the glyphs it needs. The problem is that on your system, the fontconfig version is too old, so it is not understanding the :charset command line argument used to search for the fallback font.

But, since you found a font with the coverage you need, you dont have to worry about it.

from kitty.

bash-horatio avatar bash-horatio commented on May 14, 2024

Thanks a lot! I can use monospace after updating the codes

from kitty.

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.