I've created a chart in R using plotly
, and I'm attempting to embed it in my Hugo blog. I was unable to actually embed the chart until I found the widgetframe
package (using the framewidget()
function, however I now realized that widgetframe
strips the font styling that I used within the chart (the chart looks fine on my computer, but if I look at the site from a machine where the font isn't installed, the font is reverted to Times New Roman). Is there a way to keep custom styling while using framewidget()
?
For reference, the font I'm using is Lekton, which can be found on Google Fonts. I also use the font for the Hugo site itself, and it is displayed just fine on every other page of the site.