lib/jitai.rb in jitai-0.3.2 vs lib/jitai.rb in jitai-0.3.3

- old
+ new

@@ -48,11 +48,12 @@ @name = path.downcase.split(".")[0] @path = path end def to_css - moz = "@font-face {font-family:'#{@name}'; src:url('#{name}.ttf');}" - ie = "@font-face {font-family:'#{@name}'; src:url('#{name}.eot');}" + # TODO make configurable for sinatra apps, etc + moz = "@font-face {font-family:'#{@name}'; src:url('/fonts/#{name}.ttf');}" + ie = "@font-face {font-family:'#{@name}'; src:url('/fonts/#{name}.eot');}" manager = Jitai::FontManager.new find_font(manager.moz_path, moz) find_font(manager.ie_path, ie) end