Arcadia-Science / arcadiathemeR

Package for creating ggplot style plots in R that adhere to Arcadia Science style guidelines
Other
1 stars 0 forks source link

Function to report which font is being used #15

Closed taylorreiter closed 2 months ago

taylorreiter commented 3 months ago

I just ran theme_arcadia() and I think it worked with the fonts but I'm not 100% sure. it would be nice to have a helper function that reports which font is used when run so that it's 100% clear if the fonts were loaded in correctly.

elizabethmcd commented 3 months ago

Hmm yeah I had this before, it wasn't very clean and would print basically 50 lines of the font that was used, but maybe there's a simple way to just print simply what fonts are used

taylorreiter commented 3 months ago

I think keeping it separate from the actual theme_arcadia function and having it be something a user can call when they want to would be key. then it matters a little less too if there are 50 lines of stuff printed to the screen

elizabethmcd commented 2 months ago

Fixed in #31. Not a function to call but is printed when the package is loaded. Possibly not the same as you were thinking because in theory if somebody has an entirely categorical plot then the Mono font wouldn't be used, but this was the smoothest way to come up with this.