Coder Social home page Coder Social logo

Comments (4)

kovidgoyal avatar kovidgoyal commented on May 14, 2024

Yes, but unfortunately I know of no easy way to fix this. The problem is that rendering is done by freetype using whatever unicode font has those symbols on your system, I know of no way to force freetype to align those symbols -- whether they are aligned or not seems to depend on how they are defined in the font and the font size the font is rendered at (rasterization algorithm in freetype depends on font size).

So this will take some investigation. For anyone interested, the rendering code is in freetype.py and you can use the test_rendering() function, like this:

kitty -c "from kitty.fonts.freetype import *; test_rendering(text='some test text', sz=20, family='whatever font you are using')"

from kitty.

kovidgoyal avatar kovidgoyal commented on May 14, 2024

After investigating this issue a bit, I think the best approach is to directly draw the box drawing characters rather than using freetype. That way, it will work consistently on all system regardless of the availability of fonts, font rendering engine, hinting, anti-aliasing, etc.

from kitty.

vlisivka avatar vlisivka commented on May 14, 2024

Box drawing characters can be drawn without freetype, directly, like in other unicode terminals. They are just lines. This will eliminate any problems with them.

from kitty.

kovidgoyal avatar kovidgoyal commented on May 14, 2024

That's what I said in my previous post

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.