commit-mono icon indicating copy to clipboard operation
commit-mono copied to clipboard

Feature Request: Autoscale Box Elements and Drawings for site customization

Open uni-0000 opened this issue 1 year ago • 3 comments
trafficstars

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 avatar Mar 31 '24 00:03 uni-0000

@eigilnikolajsen is this hard to implement?

uni-0000 avatar Sep 30 '24 12:09 uni-0000

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

Andrew6rant avatar Oct 23 '24 01:10 Andrew6rant

Thanks for help, but broke the boxes… Screenshot_20241023_182031_Termux

uni-0000 avatar Oct 23 '24 21:10 uni-0000