my R Markdown document can be downloaded from a shiny application. I can set the custom font of the document (Times) in different ways using the fontspec package and the subsequent "setmainfont" command. In fact I can specify directly the font name "Times" or I can give to this function the local path to my .otf files (normal and bold font).
The problem is that when the application is deployed on shinyapps.io every method just doesn't work. I don't know which path to specify if I want to upload my fonts online with the application. It seems that for the R markdown document embedded in a shiny app it's not possible to specify the path as I would do for normal files (datasets, functions.rda) presents in some subfolders of my application.
Any suggestion? Thanks!