Comments (4)
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.
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.
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.
That's what I said in my previous post
from kitty.
Related Issues (20)
- Nerd font `symbol_map` from FAQ not all ranges seem to work
- Build fails if -D_FORTIFY_SOURCES is in env CFLAGS HOT 6
- SIGSEGV when deleting a lot of images at once HOT 6
- Alias Invader HOT 1
- Blur not wokring in gnome in Fedora Workstation and in Nixos HOT 1
- Control-backslash mishandled on GBPC keyboard layout on macos HOT 6
- 9faeb3e breaks the mouse in htop
- Japanese fonts appear as boxes in random cases HOT 3
- [RFC] Wayland goodies HOT 20
- AMD GPU, monitor reconnect, core dumped HOT 2
- Crash when using undo/redo in neovim HOT 5
- Kitty Image Protocol: Nearest Neighbor Scaling HOT 1
- narrow character + emoji variatiotion broken in vim again HOT 1
- Hints Kitten highlights bright are invisible in light themes HOT 10
- Custom with message in kitty
- Bramhic script support in kitty HOT 1
- option to disable comprehensive keyboard (kitty.conf) HOT 1
- Ability to change keybinds inside of start_resizing_window mode? HOT 5
- macOS: Kitty opened from a file explorer only opens in new window, rather than new tab HOT 1
- Nerd Font Symbols mapping HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitty.