-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not use my custom font with plotly #2117
Comments
I saw you were able to get a solution to this specific problem on the RStudio community page; however, I wanted to add something further to the issue and the solution that I was able to find in case others come looking for it. Working in just plotly (without For example, recoding your example from plotly alone and using a google font for reproducibility, we expect a script font but get a serif font instead.
The root cause of the problem is that plotly is missing a dependency which contains the font file for the custom font. The solution is to reference a CSS file or add brief HTML code in an added dependency to a given plotly object.
This can also be done for local font files, just use a filepath to the font file in place of the google font URL.
|
I am trying to use a custom font with plotly but it does not work althoug it does work with ggplot. Is there a way to solve this?
You can download the font here: https://freefontsfamily.com/proxima-nova-font-family-free-download/
This is the ggplot example that does work:
This is the plotly example that does not work
The text was updated successfully, but these errors were encountered: