slidify / onefile

Standalone HTML files with Slidify
http://slidify.github.io/onefile
2 stars 2 forks source link

Webfonts work offline #3

Closed seankross closed 10 years ago

seankross commented 10 years ago

Adding the stylesheet makes the font useable, however I had to edit index.html and manually add style="font-family: news_cycleregular" which you can see on lines 43 and 44.

ramnathv commented 10 years ago

Thanks @seankross . Instead of modifying the index.html, you can just add this snippet somewhere in the Rmd file.

<style>
body {
  font-family: news_cycleregular !important;
}
</style>

Thanks for your efforts. If you are able to create something that would automate the task of downloading open source fonts and converting them to stylesheets, that would be awesome. I have ideas on how to do it, so if you want to discuss, I would be happy to share them with you.

seankross commented 10 years ago

I would really like to work on something like this. Please let me know any ideas you have!

ramnathv commented 10 years ago

Let me start a separate issue to track this.

ramnathv commented 10 years ago

I have outlined my ideas here https://github.com/slidify/onefile/issues/4. Let us continue our discussion there.