Skip to content

ramnathv/cosmofont

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cosmofont

Programmaticaly generate @font-faces for CSS stylesheets in R

cosmofont creates CSS stylesheets so you can use custom fonts in your projects. Use your own font files or use cosmofont to get some of the most popular typography on the web from Google Fonts. cosmofont supports .eot, .tff, and .woff file types. Use Data URIs to embed fonts inline so you can use your webfonts offline!


To install:

library(devtools)
install_github("cosmofont", "seankross")

Getting started:

# Get some fonts!
roboto <- google_font_options("Roboto")
open_sans <- google_font_options("Open Sans")
cosmofont(roboto, open_sans)
# stylesheet.css should appear in your working directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%