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

fix(floating-big-letter): calculate max width #74

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

lamchau
Copy link
Contributor

@lamchau lamchau commented Oct 15, 2023

Instead of calculating width based on 2nd index of a line, we calculate it based on the longest length instead. Without it, we have rendering issues on "wide" characters being forcibly wrapped.

This enables future support of custom fonts via figlet or toilet.

Fixes: #69

Before

image

After

image

Instead of calculating width based on 2nd index of a line, we calculate
it based on the longest length instead. Without it, we have rendering
issues on "wide" characters being forcibly wrapped.

This enables future support of custom fonts via `figlet` or `toilet`.

Fixes: s1n7ax#69
@Bacbia3696
Copy link

Bacbia3696 commented Dec 16, 2023

Very nice change, but seem like plugin author is too busy

@s1n7ax s1n7ax merged commit 154b2c4 into s1n7ax:main Dec 16, 2023
@lamchau lamchau deleted the fix-floating-big-letter branch December 18, 2023 23:37
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

Successfully merging this pull request may close these issues.

How to change the size of floating-big-letter?
3 participants