Repository navigation
Optionally center most icons in 2 cell space - #2034
Merged
Merged
Conversation
[why] Except when a Nerd Font Mono font is created, i.e. for all non-mono fonts: The centered icons are centered within 1 cell space. If that is not big enough the icon is left-aligned (filling the left cell completely and a varying amount of the left part of the right cell). Having vertical colums of these icons might look strange because a center alignment seems more natural in some situations. [how] A new experimental command line switch is added that switches the scaling for 'pa' stretch to stretch into 2 cells. For the Powerline glyphs E0Ax the rules are changed to explicitely require scaling into 1 cell to prevent application of the new rule here. Fixes: #1330 Fixes: #2012 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Finii
force-pushed
the
feature/center-2-cell
branch
from
July 22, 2026 20:50
2918019 to
7874930
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[why]
Except when a Nerd Font Mono font is created, i.e. for all non-mono fonts: The centered icons are centered within 1 cell space. If that is not big enough the icon is left-aligned (filling the left cell completely and a varying amount of the left part of the right cell).
Having vertical colums of these icons might look strange because a center alignment seems more natural in some situations.
[how]
A new experimental command line switch is added that switches the scaling for
'pa'stretch to stretch into 2 cells.For the Powerline glyphs
E0Axthe rules are changed to explicitely require scaling into 1 cell to prevent application of the new rule here.To use this add
--experimental center-wideto thefont-patchercommand line.Fixes: #1330
Fixes: #2012
Requirements / Checklist
Issue number where discussion took place: #xxx
What does this Pull Request (PR) do?
How should this be manually tested?
Any background context you can provide?
The implementation follows @rivy closely and takes @powerman's finding about
E0Axinto account.What are the relevant tickets (if any)?
Screenshots (if appropriate or helpful)
The re-centered glyphs have a dark blue mark:
Pomicons shifted slightly to the right, most Powerline glyphs stay where they are