gadenbuie / xaringanthemer

😎 Give your xaringan slides some style

Home Page:https://pkg.garrickadenbuie.com/xaringanthemer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Font not imported when deployed on Github pages

PMassicotte opened this issue · comments

Hi and thank you for this nice package.

I am working on a presentation: http://www.pmassicotte.com/greenedge2019/

I want to use Roboto font in my slide. Based on the documentation, I did this:

library(xaringanthemer)
duo(
  code_font_family = "Fira Code",
  code_font_url    = "https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css",
  text_font_google = google_font("Roboto", "400", "400i", "600i", "700")
)

This works fine locally on my computer. However, the Roboto font do not show when deployed on Github page (see the link above).

Any ideas?

Hmmm this is odd -- I'm seeing Roboto in your slide text when using the Github page link.

image

Do you have any browser extensions that might be blocking the request to Google Fonts? What does it look like for you?

Humm strange, I see it now. I have not changed anything. Anyhow, thank you :)