-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
RC font not rendering in shiny #19
Comments
I had a similar issue but I was able to find a workaround by importing CSS in the body element
and my
|
@oneryalcin Can you provide code that can reproduce ggplot successfully rendering RC in a Shiny app? I have tried all the CSS tricks and hacks. I have RC displaying correctly without a problem in the app, including body plus other packages (rbokeh, dygraphs etc.), but not in ggplot. |
I’m not a CSS or ggplot2 expert but I think the issue is that ggplot2 renders images not html. So we need to figure out how to get the ggplot to use the imported google RC font prior to rendering the image. May need be installed onto the Linux server prior to app loading? |
@PaulC91 ggplot definitely seems to produce images that later get embedded, yes. On the Linux server part, I tried the following after seeing Yihui's post somewhere (Google groups?), but it didn't have an effect.
Edit: Found the link, actually Julia Silge recommended this |
I'll be poking at this over the Christmas break, here. I'll embed an example shiny app in the pkg once i get it working. |
Oh nice - is it going to be something along the lines of #5? That sounds like a neat trick. |
inspiration for hrbrthemes from this great blog chichacha.netlify.com implementation based on GH issue github.com/hrbrmstr/hrbrthemes/issues/19#issuecomment-353544955
inspiration for hrbrthemes from this great blog chichacha.netlify.com implementation based on GH issue github.com/hrbrmstr/hrbrthemes/issues/19#issuecomment-353544955
inspiration for hrbrthemes from this great blog chichacha.netlify.com implementation based on GH issue github.com/hrbrmstr/hrbrthemes/issues/19#issuecomment-353544955
I have a shiny app with Roboto Condensed being the primary font. It links to a CSS stylesheet with the appropriate RC google fonts URL imported in:
@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed');
It works on all
<h>
and<p>
elements in the app but a ggplot with the ipsum_rc theme set is not rendering the rc font.You can see the app here. and source code here.
Thanks!
The text was updated successfully, but these errors were encountered: