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

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

Open
uni-0000 opened this issue Mar 31, 2024 · 3 comments

Comments

@uni-0000
Copy link

uni-0000 commented Mar 31, 2024

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
Copy link
Author

@eigilnikolajsen is this hard to implement?

@Andrew6rant
Copy link

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
Copy link
Author

Thanks for help, but broke the boxes…
Screenshot_20241023_182031_Termux

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