charmbracelet / freeze

Generate images of code and terminal output 📸
MIT License
3.45k stars 61 forks source link

fix: Support bold ANSI escape sequence #154

Open gabe565 opened 1 week ago

gabe565 commented 1 week ago

The code to print bold text is currently commented out, even though it works fine. This PR uncomments it to add support for rendering bold text.

I also noticed that bold text wasn't very pronounced, so I changed the font-weight to bolder. If this is undesired, just let me know and I can remove that change.

Before: Example of current behavior

After (with font-weight="bold"): Example with bold font

After (with font-weight="bolder"): Example with bolder font

I also noticed the bold

Fixes #75