Coder Social home page Coder Social logo

Comments (6)

kovidgoyal avatar kovidgoyal commented on May 15, 2024

Hmm, that's strange error, its basically an invalid value being returned from freetype for rendering characters. https://www.freetype.org/freetype2/docs/reference/ft2-basic_types.html#FT_Pixel_Mode

It may be that the error is harmless and can be ignored, you can try that by changing line 122 in freetype.py in the kitty source code to

if False:

and see if the font is rendered anyway.

from kitty.

IllanFed avatar IllanFed commented on May 15, 2024

If ignore this error - kitty starts, but symbols can`t render.

kitty_issue1

from kitty.

kovidgoyal avatar kovidgoyal commented on May 15, 2024

Oh well, worth a try. I tried the Hack font on my linux system, it renders fine in kitty -- dont know what else to suggest.

from kitty.

IllanFed avatar IllanFed commented on May 15, 2024

I am guessing conflict with freetype-infinality, i will check it.

from kitty.

IllanFed avatar IllanFed commented on May 15, 2024

After build from source last version of freetype it works.
https://sourceforge.net/projects/freetype/files/

tar xf freetype-2.7.1.tar.gz && cd freetype-2.7.1
./autogen.sh
make
sudo make install
export LD_LIBRARY_PATH="/usr/local/lib;/opt/python3.5/lib"
/opt/python3.5/bin/python3.5 ../../kitty/

from kitty.

kovidgoyal avatar kovidgoyal commented on May 15, 2024

I'm not aware of anything in the kitty code that requires very new versions of freetype, but then I am not a freetype expert. What was the old version of freetype on your system?

If anyone comes up with anything in freetype.c that can be changed, I'll be happy to accept a pull request. In the meantime I'm closing this issue, as I can't see anything wrong in the kitty freetype code. Feel free to re-open if I am wrong.

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.