-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: Scale powerline glyphs always #967
Conversation
[why] When a non-Mono font (i.e. `Nerd Font` not `Nerd Font Mono`) is created the goal is to have big (up to 2 cell wide) symbols. But usually you still want to have only one cell wide powerline glyphs, to have them handable. [how] Introduce a new attribute parameter 'single' that means that the (xy in the changed cases) scaling to one cell shall take place even if `-s` is not given. It is ignored if the sourcefont is not monospaced, because we could not scale in that case anyhow (to which cell-size should we scale?). Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why] The overlap into the previous/next character is used to prevent small gaps in colored powerlines. These show up as small colored line and can usually be suppressed by changing the antialiasing method. But for people who can no change the antialiasing the overlap 'covers up' the gap. But this is not relevant if the glyph is just a 'line'. There just isn't any gap that needs covering-up. [note] Also: Add missing RHS-waveform instructions. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why] The vertical overlap has never been a problem (as far as I know). It is maybe good to have some overlap for the terminal emulators that support vertical overlap. On terminals that truncate at the nominal cell border too much overlap looks bad, i.e. the glyphs 'distorted'. If we ever increase the overlap it is most likely be meant to be the left-right overlap. [note] Originally this has been part of commit fecda6a of #780. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This shows the current state for The 'cell' is the rectangle in the middle. The glyphs are either right or left aligned to the cell border, with some small overlap. Horizontal spacing is untouched. That means that
Some of the right aligned glyphs, like flames, extend rather far into previous 'territory'. |
How does this relate to |
This is obsoloete / is now part of |
[why] The vertical overlap has never been a problem (as far as I know). It is maybe good to have some overlap for the terminal emulators that support vertical overlap. On terminals that truncate at the nominal cell border too much overlap looks bad, i.e. the glyphs 'distorted'. If we ever increase the overlap it is most likely be meant to be the left-right overlap. [note] Originally this has been part of commit fecda6a of #780. [note2] Originally this has been part of PR #967. Although that had a bug 😬 It used max() instead of min() (T_T) Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why] The vertical overlap has never been a problem (as far as I know). It is maybe good to have some overlap for the terminal emulators that support vertical overlap. On terminals that truncate at the nominal cell border too much overlap looks bad, i.e. the glyphs 'distorted'. If we ever increase the overlap it is most likely be meant to be the left-right overlap. [note] Originally this has been part of commit fecda6a of #780. [note2] Originally this has been part of PR #967. Although that had a bug 😬 It used max() instead of min() (T_T) Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why] The vertical overlap has never been a problem (as far as I know). It is maybe good to have some overlap for the terminal emulators that support vertical overlap. On terminals that truncate at the nominal cell border too much overlap looks bad, i.e. the glyphs 'distorted'. If we ever increase the overlap it is most likely be meant to be the left-right overlap. Note that the glyphs are usually valign='c' and the overlap is distributed half top and half bottom. There are no other valign values implemented (just 'not align' which is ... most likely bad). [note] Originally this has been part of commit fecda6a of #780. [note2] Originally this has been part of PR #967. Although that had a bug 😬 It used max() instead of min() (T_T) Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de> f
[why] The vertical overlap has never been a problem (as far as I know). It is maybe good to have some overlap for the terminal emulators that support vertical overlap. On terminals that truncate at the nominal cell border too much overlap looks bad, i.e. the glyphs 'distorted'. If we ever increase the overlap it is most likely be meant to be the left-right overlap. Note that the glyphs are usually valign='c' and the overlap is distributed half top and half bottom. There are no other valign values implemented (just 'not align' which is ... most likely bad). [note] Originally this has been part of commit fecda6a of ryanoasis#780. [note2] Originally this has been part of PR ryanoasis#967. Although that had a bug 😬 It used max() instead of min() (T_T) Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de> f
Description
After this PR the powerline glyphs (well, some of them) will always be scaled down to one cell, as if
-s
(--mono
) has been supplied. This is only relevant for the non-Mono font variants of course.Requirements / Checklist
What does this Pull Request (PR) do?
How should this be manually tested?
Any background context you can provide?
What are the relevant tickets (if any)?
Screenshots (if appropriate or helpful)