Comments (5)
examples from other terminals. left is character underline, right is cursor underline. selection is to visualize glyph min and max y.
alacritty
- character underline and cursor underline is same.
- the bottoms of both underlines are same to the bottom of glyph.
- character underline and cursor underline is not same y position.
- the bottom of cursor underline is the same to the bottom of glyph.
- the bottom of character underline is placed by underline position of font information.
the implementation of alacritty is easy. but using font information is strict.
from rio.
I like more Alacritty implementation (character underline and cursor underline is same), feels a bit off cursor style that specify underline do a different rendering that a normal text underline. What you think?
from rio.
I have never used underline cursor, so I wanted to hear from anyone with an opinion.
Appearance aside, I think Alacritty's method is easy if we want just implementing underline feature. It can be changed after.
from rio.
yup, we can start with alacritty's way and later revisit as well. Although might bump into this same type of problems alacritty/alacritty#3471 (if the cursor doesn't differentiate at least bit)
from rio.
Thinking about it, I don't believe we are able to do the second approach until rewrite the font loader. For now implemented Strikethrough and Underline using the sugardecoration but I think we can revisit it later once we have the font loader more stable (need to rewrite it due to #80 and WASM support).
Below some screenshots with underline and strikethrough using same approach as alacritty.
from rio.
Related Issues (20)
- Unremovable bottom padding when using line-height HOT 4
- Broken behaviour over SSH HOT 4
- Is debian `.deb` not supported or we forgot to update the docs? HOT 1
- Cmd+click on a markdown link adds the ending `)` in the opened link HOT 4
- Emojis don't have color on rio-0.0.34 HOT 1
- Remaining work from new text renderer introduced on #428
- Ability to overwrite / uninstall keybindings HOT 5
- bug: vi mode on Windows HOT 1
- Unexpected basic 16 terminal colors displayed on some apps HOT 7
- Application does not respond on Wayland HOT 1
- BottomTab does not update on windows when switching tab and exit immediately HOT 1
- Glyphs have very weird rendering HOT 6
- Layout support HOT 1
- Linux Wayland: WA migration
- Linux X11: Wa migration
- Windows: WA migration
- Fix cached run on lines that crashes few times [sugarloaf] HOT 1
- Load emoji and falllback fonts on demand and drop memory after not being used anymore leaving only the file path as reference
- Are ligatures actually supported in 0.0.36? HOT 3
- newline issue when pasting multi-line text 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 rio.