Code Monkey home page Code Monkey logo

meteor-fontcustom's Introduction

FontCustom

This package integrates FontCustom with Meteor. It is not a replacement for the gem, so you'll still have to install that independently. It uses an awesome npm-package to run the compilation.

Installation

Make sure you've got FontCustom installed (follow the instructions at: fontcustom.com and run:

meteor add q42:fontcustom

Configuration

The package will be looking for a fontcustom.yml in the root of your project. This could be something like this:

# --------------------------------------------------------------------------- #
# Project Info
#   Defaults shown. Learn more about these options by running
#   `fontcustom help` or visiting <http://fontcustom.com>.
# --------------------------------------------------------------------------- #

font_name: fontcustom
css_selector: .icon-{{glyph}}
preprocessor_path: "/fonts/"
autowidth: false
no_hash: false
force: false
debug: false
quiet: false

# --------------------------------------------------------------------------- #
# Input Paths
# --------------------------------------------------------------------------- #

input:
  vectors: client/svgs

# --------------------------------------------------------------------------- #
# Output Paths
# --------------------------------------------------------------------------- #

output:
  fonts: public/fonts
  preview: public/fonts
  css: client/styles

# --------------------------------------------------------------------------- #
# Templates
#   Included in Font Custom: preview, css, scss, scss-rails
#   Custom templates should be saved in the INPUT[:templates] directory and
#   referenced by their basename.
# --------------------------------------------------------------------------- #

templates:
 - scss
 - preview

This will assume that your SVG's are in client/svgs and when you run your server, the compiled fonts will be waiting for you in public/fonts. An additional _fontcustom.scss will be placed in client/styles and a nice preview will be available at localhost:3000/fonts/fontcustom-preview.html.

Notes

  • fontcustom.yml should always be in the root of your project
  • The output-path should be in public, so that they'll be statically available for the client
  • For more options, refer to fontcustom.com

meteor-fontcustom's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.