Closed ScaonE closed 7 months ago
Dear all,
Is there a way to change the font for numbers within the stacked barplot? (I wish to use Nunito to have the same font everywhere in my doc).
(asking because I cannot control it via : opt_table_font(font = google_font(name = "Nunito Sans")))
Howdy @ScaonE -- the numbers are hardcoded as family='mono' as seen in:
family='mono'
https://github.com/jthomasmock/gtExtras/blob/e810e592571571fde2745194f007574d8c51bfdc/R/gt_pct_bar.R#L120-L124
I'm adding a new font argument, and here's it with Nunito
font
Nunito
vs the default mono:
mono
Dear all,
Is there a way to change the font for numbers within the stacked barplot? (I wish to use Nunito to have the same font everywhere in my doc).
(asking because I cannot control it via : opt_table_font(font = google_font(name = "Nunito Sans")))