https://github.com/uetchy/middleman-fontcustom
Generate webfonts in your Middleman project
https://github.com/uetchy/middleman-fontcustom
fontcustom middleman
Last synced: 10 months ago
JSON representation
Generate webfonts in your Middleman project
- Host: GitHub
- URL: https://github.com/uetchy/middleman-fontcustom
- Owner: uetchy
- License: mit
- Created: 2014-05-02T08:44:38.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-24T08:23:14.000Z (almost 11 years ago)
- Last Synced: 2025-04-15T11:37:43.657Z (about 1 year ago)
- Topics: fontcustom, middleman
- Language: Ruby
- Homepage:
- Size: 250 KB
- Stars: 13
- Watchers: 2
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# middleman-fontcustom
[](http://badge.fury.io/rb/middleman-fontcustom)
[](https://gemnasium.com/uetchy/middleman-fontcustom)
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
```ruby
activate :fontcustom
```
Following lines are default options of this extension.
```ruby
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.