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

Supply script for patching fonts #1

Closed
rickard-von-essen opened this issue Nov 22, 2014 · 9 comments
Closed

Supply script for patching fonts #1

rickard-von-essen opened this issue Nov 22, 2014 · 9 comments
Assignees

Comments

@rickard-von-essen
Copy link

Hi, nice work!

I would like to be able to use this with my usual font, Source Code Pro. It would be great with a script that could patch any font.

@ryanoasis
Copy link
Owner

Thanks. Yep I knew this would be an issue as we don't all use the same powerline patched font :)

Ideally it would be nice to support all the current ones here: https://github.com/Lokaltog/powerline-fonts

@ryanoasis
Copy link
Owner

I am making some progress on this. If you want to see:

selection_021

@rickard-von-essen
Copy link
Author

Awesome! Also if the source of the icons are available it will make it
easier for people to contribute more icons.

On Mon, Nov 24, 2014, 21:04 Ryan [email protected] wrote:

I am making some progress on this. If you want to see:

[image: selection_021]
https://cloud.githubusercontent.com/assets/8083459/5172107/035e13be-73eb-11e4-854d-032008fefbbc.png


Reply to this email directly or view it on GitHub
#1 (comment)
.

@ryanoasis
Copy link
Owner

@rickard-von-essen by making source of the icons available do you mean the svgs or just the font?

@rickard-von-essen as you can see I have pushed a new branch if you want to try out the patching or if you just want to try one of the already patched fonts.

@rickard-von-essen
Copy link
Author

Hi, just tested the patched Sauce Code font, but there seams to be some misalignment. When I open the webdevicons.vim file the default looks like:

screen shot 2014-11-29 at 13 22 44

@ryanoasis
Copy link
Owner

Ah sorry about that. Yeah the latest commit on the feature branch I added more glyphs but unfortunately to avoid collisions I moved the original set to a new unicode range.

All you should have to do is grab that same webdevicons.vim file from the new branch (all the patched fonts on that branch should match up with the new webdevicons.vim)

@rickard-von-essen
Copy link
Author

Just realized that. It works fine using both the plugin and font from the
branch. Super!
On Nov 29, 2014 1:38 PM, "Ryan" [email protected] wrote:

Ah sorry about that. Yeah the latest commit on the feature branch I added
more glyphs but unfortunately to avoid collisions I moved the original set
to a new unicode range.

All you should have to do is grab that same webdevicons.vim file
https://github.com/ryanoasis/vim-webdevicons/blob/features/1-script-patch-fonts/plugin/webdevicons.vim
from the new branch (all the patched fonts on that branch should match up
with the new webdevicons.vim)


Reply to this email directly or view it on GitHub
#1 (comment)
.

@ryanoasis
Copy link
Owner

Great. 😌

Mostly what I need to do before merging this in I think is working on the glyphs centering and scale.

Also most likely ill create a new repo for the patcher and fonts so those using a package manager can avoid the size overhead.

@ryanoasis
Copy link
Owner

I actually decided to revert the unicode range i mentioned earlier. I didnt want to break everyones setup if they do an update in the future. for you if you pull master you might have to redownload the font. sorry if that causes any inconvenient.

new repo for fonts and patcher is here: https://github.com/ryanoasis/nerd-filetype-glyphs-fonts-patcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants