Crisp density-rendered text (block/small/shadow)#35
Open
irobinson010 wants to merge 2 commits into
Open
Conversation
… S-curve The block/small/shadow styles rendered text at a FIXED 24px font and resized that to the target grid with default bicubic: wide targets upscaled a small blurry render, bicubic rang at edges, and anti-aliased strokes mapped through the ramp as a halo of light characters — 'I see you' at width 60 was unreadable scatter. Now: one measured re-render sizes the font so each output cell averages ~8x8 source pixels; BOX resampling gives true per-cell coverage; and a contrast S-curve (0.18..0.82 stretched to 0..1) collapses edge halos while keeping genuine midtones. Captions inherit all of it via caption_lines. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Caption positions grow beyond top/bottom: left/right run the text rotated 90 degrees along the side (book-spine style, sized against the art height); the four corners are sugar for top/bottom with forced alignment; 'wrap' flows the text clockwise as a 1-char marquee frame around the whole piece. Works in colorized ANSI, HTML, and the plain path; image-sampled caption colors use the adjacent side strip. Animated/video sinks stack caption rows, so side/wrap fall back to bottom there with a warning. - Centered captions expand out of their middle while dragging - each pixel adds width both directions so the text stays visible under the cursor - instead of only growing rightward. - Resize rings step aside for side/wrap layouts (the measured block changes in both axes); the number knobs still apply. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The density text styles were soft/fuzzy ('ever so slightly off', and outright unreadable at some widths). Three compounding causes, all in
text_to_ascii_art:BOX(true area-average coverage).:=-.around every stroke. Now an S-curve collapses the halos while keeping genuine midtones.Before/after at width 60,
I see youblock style: unreadable mid-ramp scatter → solid legible strokes. At width 90 the improvement is dramatic (smooth curves, filled strokes). Captions inherit everything viacaption_lines.Test plan
🤖 Generated with Claude Code