gabrielelana / awesome-terminal-fonts

Tools and instructions on how to have awesome symbols in a terminal with a monospace font
MIT License
2.44k stars 231 forks source link

Icons are huge in Operator Mono #36

Open ryan-mars opened 7 years ago

ryan-mars commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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?

gabrielelana commented 7 years ago

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