You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using bslib to set my theme in my shiny app. In the local app, loading a font is easy, as bslib accesses my system fonts and the font is set through base_font = "font". But the app will be deployed via docker or a shinyserver, and fonts aren't loaded when I click on "View in browser". Therefor my guess is, that I need to use font-files which are stored in the www-Folder (those are the Company-fonts, so google fonts are not an option).
I have now spent hours trying to load those fonts using sass/css/bs_add_rules/tags$head and similar, but I just can't get it to work. Could somebody explain to me the correct way of adding fonts to a shiny app when using golem and bslib?
I'd be really greatful if somebody could point me to the correct solution, I'm out of ideas (and out of google results to click on).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
I am using bslib to set my theme in my shiny app. In the local app, loading a font is easy, as bslib accesses my system fonts and the font is set through
base_font = "font"
. But the app will be deployed via docker or a shinyserver, and fonts aren't loaded when I click on "View in browser". Therefor my guess is, that I need to use font-files which are stored in the www-Folder (those are the Company-fonts, so google fonts are not an option).I have now spent hours trying to load those fonts using sass/css/bs_add_rules/tags$head and similar, but I just can't get it to work. Could somebody explain to me the correct way of adding fonts to a shiny app when using golem and bslib?
I'd be really greatful if somebody could point me to the correct solution, I'm out of ideas (and out of google results to click on).
Beta Was this translation helpful? Give feedback.
All reactions