-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Vertical color bleed for some fonts #72
Comments
Thank you for the feedback and the excellent bug report.
Ah :-/ that is unfortunate...
Hm.. I think I like the original version better, but your proposal would have the added advantage that we also save on overall vertical screen space (horizontal too, but vertical is more valuable here). That allows us to see more color swatches on a single screen (coming to think of it, we should probably also print just a single empty line between two swatches). All of this is to say: I think I'd be okay with your change! 😄 |
Ok, I've put a little more work into it (see https://github.com/rivy/rust.pastel/tree/wa.color-bleed). |
Uploaded, see #75. |
closed via #75 |
🎉🥇
... a fun utility, thanks for the creative excellence!
Discussion
For some fonts, notably many of the "nerd fonts", the block characters used as "pixels" are not the pixel-perfect character width. So, for characters which are a mixture of colors, some color bleed can occur. This is most noticeable between the solid color swatch and the surrounding checkerboard. It's quite variable in appearance. Depending on the color selections, it can be unnoticeable or quite distracting.
Modifying the color swatch size to be offset from the checkerboard by a factor of two from the top and bottom of the checkerboard avoids this bleed effect. Since the swatch is centered on the checkerboard, its total size difference from the checkerboard size must be a factor of four (eg, 0, 4, 8, ...) to avoid the bleed effect.
I've done this in rivy@ee26fd6, but I'm hesitant to submit a PR because it changes the aesthetics of your output.
Alternatively, I could look at adding in some configuration option(s) which set the size of the checkerboard/swatch.
Any thoughts?
The text was updated successfully, but these errors were encountered: