tree: 0a06c7c62ab483453fcd0007c6bf64dfd1261874 [path history] [tgz]
  1. styleguide/
  2. templates/
  3. fauxtonicon5.eot
  4. fauxtonicon5.svg
  5. fauxtonicon5.ttf
  6. fauxtonicon5.woff
  7. fontawesome-webfont.eot
  8. fontawesome-webfont.svg
  9. fontawesome-webfont.ttf
  10. fontawesome-webfont.woff
  11. FontAwesome.otf
  12. fontcustom.yml
  13. Gemfile
  14. README.md
assets/fonts/README.md

WARNING: this is a temporary solution for adding icons to the Icon Font. This will become a grunt task eventually.

This is a temp solution till Fontcustom fixes this BUG

Installation

  1. Requires Bundler.io, Ruby 1.9.2+, FontForge with Python scripting.
# On Mac
$ gem install bundler
$ brew install fontforge eot-utils
$ cd [LOCAL_COUCHDB_REPO]/src/couchdb-fauxton/assets/fonts
$ bundle

That should install the gem in a path like below: /Users/[USERNAME]/.rvm/gems/[RUBYVERSION]/bundler/gems/fontcustom

  1. Update fontcustom.yml with the correct paths where it says PUT_YOUR_PATH_HERE.

  2. Update the font_name value to generate a new filename for the font files. This is necessary for browser cache-busting.

  3. Add your new font(s) in SVG format to the assets/icons folder.

  4. If Gemfile.lock exists, delete it. The run bundle install

  5. Run the command bundle exec fontcustom compile. That generates the following:

  • an icons.less file [LOCAL_COUCHDB_REPO]/src/couchdb-fauxton/assets/less
  • a fauxtonicon-preview.html preview [LOCAL_COUCHDB_REPO]/src/couchdb-fauxton/assets/fonts/styleguide
  • font files in [LOCAL_COUCHDB_REPO]/src/couchdb-fauxton/assets/fonts/
    • [font name].eot
    • [font name].svg
    • [font name].ttf
    • [font name].woff
  1. Delete the old fauxtoniconX.*** files, and ./styleguide/fauxtoniconX-preview.html file.

For more info on Fontcustom, check out their documenation: Fontcustom documentation

For more info on Bundler, check out their documentation: Bundler documentation

Licenses