No commit activity in last 3 years
No release in over 3 years
Generate web-fonts in your Middleman project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

>= 0

Runtime

 Project Readme

middleman-fontcustom

Gem Version Dependency Status

middleman-fontcustom is an extension that provides webfont generator for the Middleman.

Installation

Add gem "middleman-fontcustom" into your Gemfile and run bundle install

Configure

activate :fontcustom

Following lines are default options of this extension.

activate :fontcustom do |fc|
  fc.font_name = 'fontcustom'
  fc.source_dir = 'assets/fontcustom'
  fc.fonts_dir = 'source/fonts'
  fc.css_dir = 'source/stylesheets'
  fc.templates = 'scss'
  # fc.templates = 'scss-rails scss css'
  fc.no_hash = false
  fc.preprocessor_path = nil
  fc.autowidth = true
end

Put your icon files(just like svg) into source_dir, then run middleman server.

If source_dir has been changed, webfont files and stylesheets will be generated automatically.

License

see LICENSE.md for further details.