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.89k stars 281 forks source link

style/font: use web font style #602

Closed 10ne1 closed 4 months ago

10ne1 commented 4 months ago

style/font: use web font style

The font-style is actually useful so let's set it.

AaronErhardt commented 4 months ago

Since this appears to be an internal API I think we should rather fix the warning by removing the unnecessary field instead of suppressing the warning. Or is there a reason why we need the second field?

10ne1 commented 4 months ago

@AaronErhardt I've updated the commit, turns out we actually need that second parametr and we can set it to avoid the warning. Thanks!