avoid loading google fonts from google server directly

I've to set a chart on my shiny-app.
If I set a specific Font by fontFamily i.e. to the title or axis or similar this font will be loaded from https://fonts.googleapis.com/

In the documentation of highcharter I see that it is possible to set this to FALSE.

But I don't see if it ist possible if I use the Widgetfunction renderHighchart

ui <-
 fluidPage(
  highchartOutput("chart1")
 )

server <- function(input,output,session){
 output$chart1 <- renderHighchart({
  hc <- hchart(runif(50, 1, 99), name = "Level") %>%
    hc_title(text = "Title Chart 3", align = "left",style = list(fontFamily = "Roboto, sansSerif"))%>%
    hc_subtitle(text = "Example subtitle 3", align = "left")%>%
    hc_chart(reflow = TRUE)

  hc
 })

shinyApp(ui, server)

This code tries to load the font from google. Can I avoid this exept to do it without style?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.