yuankunzhang / charming

A visualization library for Rust
Apache License 2.0
1.85k stars 74 forks source link

AxisLabel - no font-weight, no font-family? #111

Closed tower120 closed 3 weeks ago

tower120 commented 3 weeks ago

Is it possible to set font weight and font family for labels on axis? I see only font-size setting.

LukaOber commented 3 weeks ago

I will try to open a PR this weekend to add this functionality.

LukaOber commented 3 weeks ago

Latest master should have the changes you want. Let me know if you are having any problems or questions.

tower120 commented 3 weeks ago

I just tried that. It works. Thanks!

But you know, all text on "png" saved files looks blurry. It is OK for >=16 size font - but everything bellow is hard to read. It looks like text in old versions of Chrome... When they used SDF fonts. Maybe there is no sub-pixel anti-aliasing in png renderer? Or something like this...