Class: Rack::Fontserve

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/rack-fontserve.rb

Defined Under Namespace

Classes: Font, InvalidFontError, InvalidFormatError

Constant Summary collapse

CONTENT_TYPES =
{'ttf' => 'font/truetype', 
'otf' => 'font/opentype', 
'woff' => 'font/woff', 
'eot' => 'application/vnd.ms-fontobject',
'svg' => 'image/svg+xml',
'css' => 'text/css;charset=utf-8'}