Comments (9)
I think this is fully implemented as requested.
from neoray.
This will be a good feature but I need to think and do some research on this. I don't promise that it will be added but I will work on this in my free time.
from neoray.
Hi @andis-sprinkis I almost finished all of box drawing and block drawing characters but I used vector library to do that which is same with most of the fonts. This solves gap problem but doesn't solve antialiased smooth lines (which sometimes blurry) and I wanted to ask you which is better? Also who is watching this issue I want to know your ideas.
from neoray.
I do like that the characters are always connected, so I consider it a good improvement over default handling of those glyphs (of font I use - CascadiaCodePL).
Minor thing I keep noticing that radius on round corners chars seems to be off, somewhat stretched (see fzf prompt corners).
Not a fan of antialiasing being applied to rectangular chars as it makes them blurry. I personally prefer the sharp bitmap drawing of these characters on standard DPI.
Looks better than what I get in iterm2 or NeovimQt, but worse than the patched st
.
(Neoray with flag FALSE and TRUE)
from neoray.
Result now is tad closer to patched st
boxdraw patch rendering, like how htop
in terminal buffer looks now :)
(st with boxdraw and Neoray with flag TRUE)
from neoray.
Minor thing I keep noticing that radius on round corners chars seems to be off, somewhat stretched (see fzf prompt corners).
Yeah this is my mistake. It's easy to fix.
I like St's drawings but I need to solve a few problems to integrate it directly. The first problem is crosses and curves. I can make the curves by drawing two lines that do not meet in the center as in st, but vector drawing is necessary for the diagonal lines to look good. The second problem is the thickness of the lines. If I set the thin lines to be 1 pixel and the thick lines to be 2, the lines will be very small on high dpi screens (I haven't tested this). Also, since the thin line cannot be drawn in the middle of the thick line, it will still look bad. If I adjust the line thickness dynamically, this time it will be as if I drew vector graphics myself, which will be worse than what the library draws :) If we apply vector and pixel drawing together, the glyphs will not match each other this time. The best solution I've come up with so far is to ignore the thick lines and draw them all the same size. I actually made the current implementation to try it out. Also, I ask you, there is a file named boxdrawingchars.txt in the root folder of the project. I want you to take a screenshot for me by opening the part up to blocks with st in this file. The reason I'm asking you this is because I don't have a linux computer and can't use st. If you post these I can better understand how st draws. Thanks in advance.
from neoray.
Sorry your last image actually shows how st draws. I think they are using 1 pixel for thick lines and 3 pixel for bold lines. And they doesn't draw cross lines with this feature. I think this is enough for me.
from neoray.
Well, I hope these are somewhat useful (output from st 8.2 with boxdraw patch):
)
from neoray.
Looks crisp and pleasant to look at 👍
from neoray.
Related Issues (20)
- Window vertical resize crash HOT 6
- Taskbar item text truncated with text in window title bar HOT 4
- Mapping with <bar> or "|" doesn't work HOT 3
- Crash on launch HOT 2
- Doesn't obey xkb options HOT 3
- Neoray process tree doesn't exit on closing the GUI HOT 2
- Neoray cannot load the font. HOT 4
- chinaese can not display HOT 7
- Neoray starts without any messages and does not display window when `init.vim` is malformed HOT 1
- Detach from terminal? HOT 4
- Invisible cursor and strange colors HOT 22
- Feature suggestion - Chocolatey and Scoop Windows releases HOT 4
- Failed to start neoray due to uninstalled font HOT 5
- typing period also inserts comma HOT 3
- Resolution Problem On macOS HOT 5
- Question? HOT 1
- Neoray window does not show up when using telescope plugin HOT 2
- Neoray does not work with nvim 0.9.2+ HOT 1
- Crash on startup HOT 1
- Camera Perspective in 2D Grid Rendering HOT 1
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 neoray.