Closed patrislav1 closed 9 months ago
Bold/intensive issue was red-herring and current behaviour is probably not correct (iterm2 behaviour). So let's merge!
Thanks a lot for working on this! and sorry for all the back and forth
Thanks a lot for working on this! and sorry for all the back and forth
No worries, I learned a lot in the process!
👍 Looking forward to future PRs! hopefully i will get to rewrite the tests and add proper font test during next week
Work in progress
:white_check_mark: Replace background rects with full block characters :white_check_mark: Get rid of explicit X coordinates for character positioning :white_check_mark: Consolidate consecutive
tspan
s with same style (for smaller/cleaner SVG file) :white_check_mark: Support for bold, italic, underline, strikethrough :grimacing: Not sure if all relevant fonts support full block U+2588 (█) :grimacing: Copy/paste of background blocks "suppressed" by putting them on top of the SVG; not sure if there's a better way :x: Still needs guesswork for font width (charboxsize); by default the svg canvas is too narrow (seetestdata/*.ansi.svg
) :x:tspan
consolidation sometimes un-monospaces the font when there's a ligature (seeff
inansitosvg/testdata/fq.ansi.svg
). Maybe there's a CSS flag to fix that?