font_path

font_path(source, options = {})
Instance Public methods

Computes the path to a font asset. Full paths from the document root will be passed through.

font_path("font")                                           # => /assets/font
font_path("font.ttf")                                       # => /assets/font.ttf
font_path("dir/font.ttf")                                   # => /assets/dir/font.ttf
font_path("/dir/font.ttf")                                  # => /dir/font.ttf
font_path("http://www.example.com/dir/font.ttf")            # => http://www.example.com/dir/font.ttf

path_to_font

doc_ruby_on_rails
2015-06-20 00:00:00
Comments
Leave a Comment

Please login to continue.