Git Product home page Git Product logo

Comments (4)

kovidgoyal avatar kovidgoyal commented on June 1, 2024

I'm afraid not, kitty renders these characters as their appearance is
specified in the Unicode standard. Having a standard rendering allows
writes of programs running in kitty to rely on that appearance in their
code.

Personally speaking, I would like shade characters to be rendered as
semi-transparent blocks, IMO that's the most useful, but...

from kitty.

etzrxd avatar etzrxd commented on June 1, 2024

I found a possible solution after-all.

Force the grid's dimensions to be even, spread the left-over columns/rows evenly over the character instead of putting them all at the end, and hide them with some semi-transparent pixels.

I expected this to just create a blurry mess similar to what resampling would do, but it actually works very well. And as a side-effect the 4x4 checkerboard no longer turns into a 5x4 one at small font sizes (I assume that this wasn't intentional in the first place)

C:L A:L

(the opacity values can probably be fine-tuned to make it better)

The 4x4 turning into a 5x4 when small:
C:4 (Current)
A:4 (Alternate)

from kitty.

kovidgoyal avatar kovidgoyal commented on June 1, 2024

What grid's dimensions? And you are welcome to send a PR to improve their rendering as long a their apperance remains consistent with the unicode spec.

from kitty.

etzrxd avatar etzrxd commented on June 1, 2024

by grid dimensions i mean the number of squares in the pattern along each axis. I'll send a PR after fixing a (literal) corner case

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.