<commit_before>= Rack::Fontserve

A simple Sinatra-based font hosting rack application that utilizes HTTP caching and Allow-Access-Control-Origin properly
and generates the corresponding @font-face-CSS file on the fly.

== Running standalone

Create a Gemfile:

  source :rubygems
  gem 'rack-fontserve'
  
Create a config.ru:

  require 'bundler/setup'
  require 'rack-fontserve'
  Rack::Fontserve.set :fonts_path, './fonts'
  run Rack::Fontserve
  
Create a directory 'fonts', place your fonts inside there in subfolders, where each font format file has the same name
as the directory:

  fonts/iconic_stroke/
    + iconic_stroke.eot
    + iconic_stroke.ttf
    + iconic_stroke.svg
    
That's it! Run with `rackup`, push to heroku, or mount it in an existing Rails 3 app by adding rack-fontserve to your gemfile, 
setting the fonts path and mounting the app in your routes.rb file:

    mount Rack::Fontserve, :at => "/fonts" 
    
You can see a demo of all fonts in the fonts_path at /demo

== Custom font CSS

When a `font_name.css` file is found in the subdirectory, this file will be rendered instead of the auto-generated css. If you
want to tweak your css settings, copy and paste the auto-generated css into such a file and customize it to your liking!
<commit_msg>Added note about font naming<commit_after>= Rack::Fontserve

A simple Sinatra-based font hosting rack application that utilizes HTTP caching and Allow-Access-Control-Origin properly
and generates the corresponding @font-face-CSS file on the fly.

== Running standalone

Create a Gemfile:

  source :rubygems
  gem 'rack-fontserve'
  
Create a config.ru:

  require 'bundler/setup'
  require 'rack-fontserve'
  Rack::Fontserve.set :fonts_path, './fonts'
  run Rack::Fontserve
  
Create a directory 'fonts', place your fonts inside there in subfolders, where each font format file has the same name
as the directory:

  fonts/iconic_stroke/
    + iconic_stroke.eot
    + iconic_stroke.ttf
    + iconic_stroke.svg
    
That's it! Run with `rackup`, push to heroku, or mount it in an existing Rails 3 app by adding rack-fontserve to your gemfile, 
setting the fonts path and mounting the app in your routes.rb file:

    mount Rack::Fontserve, :at => "/fonts" 
    
You can see a demo of all fonts in the fonts_path at /demo.

The font name is the name of the font's directory, so in the above example, the font would be called 'iconic_stroke'.

== Custom font CSS

When a `font_name.css` file is found in the subdirectory, this file will be rendered instead of the auto-generated css. If you
want to tweak your css settings, copy and paste the auto-generated css into such a file and customize it to your liking!

{'fraction_non_alphanumeric': 0.06517690875232775, 'fraction_numerical': 0.0007448789571694599, 'mean_word_length': 3.8747731397459164, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1138345', 'n_tokens_mistral': 817, 'n_tokens_neox': 754, 'n_words': 367}