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

Icons are huge in Operator Mono #36

Open
ryan-mars opened this issue Feb 19, 2017 · 3 comments
Open

Icons are huge in Operator Mono #36

ryan-mars opened this issue Feb 19, 2017 · 3 comments

Comments

@ryan-mars
Copy link

I tried patching Hoefler Operator Mono but the icons are huge. It doesn't seem like the patch script is respecting the ratios. I'm using a version of Operator Mono SSm that I patched with the Powerline icons.

This is how I modified one of the existing patch scripts.

#!/bin/sh
cp ./fonts/OperatorMonoSSmBook+for+Powerline.otf S0.ttf
./patch S0.ttf --symbols=./fonts/fontawesome-webfont.ttf --to-namespace=AWESOME --rename-as=S1 --starting-at='0xe100' --ratio=0.75 --shift-x=100 --shift-y=50
./patch S1.ttf --symbols=./fonts/octicons-regular.ttf --to-namespace=OCTICONS --rename-as=S2 --starting-at='0xe800' --ratio=0.75 --shift-y=25
./patch S2.ttf --symbols=./fonts/pomicons-regular.ttf --to-namespace=POMICONS --rename-as='OperatorMonoSSmBook+for+Powerline+Awesome' --starting-at='0xf000' --ratio=0.5 --shift-x=-100 --shift-y=25
cat S1.sh S2.sh >> OperatorMonoSSmBook+for+Powerline+Awesome.sh
cp OperatorMonoSSmBook+for+Powerline+Awesome.* ~/.fonts
mv OperatorMonoSSmBook+for+Powerline+Awesome.* ./patched
sudo fc-cache -rv
rm -rf S?.*
@gabrielelana
Copy link
Owner

Did you tried to lower the ratio of the icons? Did the icons got smaller?

If yes then the solution is to twitch those parameters until you are satisfied with the result

If no then I suggest you to use the alternative solution explained in the master branch (aka use the fallback configuration of the font engine)

@ryan-mars
Copy link
Author

I did mess with the ratios but didn't notice a different. I'll make the tweaks more extreme and try again. What is the X/Y tweaks for?

I started with the fallback approach. It didn't work. Have others had success with this in Sierra?

@ryan-mars ryan-mars reopened this Feb 20, 2017
@gabrielelana
Copy link
Owner

What is the X/Y tweaks for?

They are for centering the icons

I started with the fallback approach. It didn't work. Have others had success with this in Sierra?

Mmm, don't think so, I'm yet to switch to Sierra also because of that

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

No branches or pull requests

2 participants