ScotGovAnalysis / sgplot

Graphic styles and colours for Scottish Government plots
https://scotgovanalysis.github.io/sgplot/
Other
11 stars 1 forks source link

Use SG font #6

Closed lee-bunce closed 1 year ago

lee-bunce commented 1 year ago

The SG website uses the Roboto font. Do we want to/can we implement that in the package?

https://designsystem.gov.scot/styles/typography/

alice-hannah commented 1 year ago

Roboto can only be used when working online and in an unrestricted environment. Currently, R tries to install Roboto when the sgplot package is loaded. If this is not successful, the built in 'sans' font family will be used.

The only realistic alternative I can think of would be to include Roboto font files in the package. However, we'd need to consider how to do this whilst adhering to font license. This would also require the font version to be updated routinely.