eigilnikolajsen / commit-mono

Commit Mono is an anonymous and neutral programming typeface.
https://commitmono.com/
1.31k stars 21 forks source link

Feature Request: Autoscale Box Elements and Drawings for site customization #101

Open uni-0000 opened 7 months ago

uni-0000 commented 7 months ago

Currently, Block Elements are fixed at the default font line height of 1.0, which causes gaps above this value, and line height 1.8 for Box Drawings, which causes overlap at lower values.

Idea/suggestion reference: FontPatcher

uni-0000 commented 1 month ago

@eigilnikolajsen is this hard to implement?

Andrew6rant commented 1 week ago

Quick and dirty fix, in FontForge, you can select all of the box drawing / block elements and scale their Y values by whatever amount to remove gaps and overlaps. Element > Transformations > Transform: Scale... Something like 140% Y scale for block elements and 88% Y scale for box drawing elements works for a line height of 1.5rem.

You need to manually extend the heights of the light, medium, and dark shade blocks because they look terrible if their grids are stretched.

Here's a quick before/after: Before font changes

After font changes

You can see the slight overlap is mostly gone and the huge gaps are connected.

Would love a proper solution from @eigilnikolajsen though - I don't know my way around font editing software at all, haha

uni-0000 commented 1 week ago

Thanks for help, but broke the boxes… Screenshot_20241023_182031_Termux