Skip to content
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

config_has_powerline in config.cfg might not have the intended effect #307

Closed
segevfiner opened this issue Dec 3, 2018 · 3 comments
Closed
Assignees

Comments

@segevfiner
Copy link
Contributor

🎯 Subject of the issue

I think the config_has_powerline option in the config.cfg files used in the gotta-patch-em-all-font-patcher!.sh script might not have the intended effect, as the --complete flag to the font patcher already includes power line, so simply omitting the power line flag is not enough to get it to avoid patching the powerline glyphs.

This can lead to clobbering pre-existing powerline glyphs which are likely better aligned/looking.

@ryanoasis
Copy link
Owner

Hey yeah you are right. Well I think the font-patcher probably needs to handle that the same way it is for the 'removeligatures' .

The 'gotta patch em all' script seems to only use it for logging out the combinations and assumes 'complete'. It does correctly look for a config.json file and use it if found but then the problem is in the font-patcher to look for that value as I said above.

Thanks!

@ryanoasis ryanoasis self-assigned this Dec 15, 2021
@Finii
Copy link
Collaborator

Finii commented Feb 4, 2023

I always wondered what that was intended for. Only thing I could find was the variants counting thing.

Anyhow.

This can lead to clobbering pre-existing powerline glyphs which are likely better aligned/looking.

In fact the opposite is true. We determine the 'cell' width and height in a certain way. The powerline glyphs must fill this cell completely (and or overfill for some given percentage). It is undefined if the original-font-powerline symbols would have the same cell size and overlap.

If you have a concrete instance where the patched in powerline symbols look worse we can certainly have a look at that font and reconsider (for that font). But as a general change I believe this will not always result in better scaling and makes the patching less reliable.
Think about people who self-patch font A, where we have that special rule for A in effect here. That rule will not be followed for self-patching and thus have a strangely different looking font.

So I would do that only in very exceptional cases. Please reopen if there is a concrete font that really needs it.

@Finii Finii closed this as completed Feb 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2023

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants