plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.82k stars 277 forks source link

[Feature Request] Stroke width/outline for text in bitmap backend #615

Open prescientmoon opened 2 months ago

prescientmoon commented 2 months ago

What is the feature ?

It would be useful if we could draw text with a colored outline. This is useful when wanting to label parts of an image.

(Optional) Additional Information

I have tried drawing the text in black four times (transalted by 1px in the four directions) behind the main text, but the results look ugly for some reason.