Module: Fontcustom

Defined in:
lib/fontcustom/utility.rb,
lib/fontcustom.rb,
lib/fontcustom/cli.rb,
lib/fontcustom/base.rb,
lib/fontcustom/error.rb,
lib/fontcustom/options.rb,
lib/fontcustom/version.rb,
lib/fontcustom/watcher.rb,
lib/fontcustom/manifest.rb,
lib/fontcustom/generator/font.rb,
lib/fontcustom/generator/template.rb

Overview

Requires access to:

@options or @cli_options
@manifest

Defined Under Namespace

Modules: Generator, Utility Classes: Base, CLI, Error, Manifest, Options, Watcher

Constant Summary collapse

EXAMPLE_OPTIONS =

Hack to get Thor to show more helpful defaults in ‘fontcustom help`. These are overwritten in Fontcustom::Options.

{
  :output => "./FONT_NAME",
  :config => "./fontcustom.yml -or- ./config/fontcustom.yml",
  :templates => "css preview"
}
DEFAULT_OPTIONS =
{
  :input => nil,
  :output => nil,
  :config => nil,
  :templates => %w|css preview|,
  :font_name => "fontcustom",
  :font_design_size => 16,
  :font_em => 512,
  :font_ascent => 448,
  :font_descent => 64,
  :css_selector => ".icon-{{glyph}}",
  :preprocessor_path => nil,
  :autowidth => false,
  :no_hash => false,
  :css3 => false,
  :debug => false,
  :force => false,
  :quiet => false,
  :copyright => ''
}
VERSION =
"2.0.0"

Class Method Summary collapse

Class Method Details

.gem_libObject



11
12
13
# File 'lib/fontcustom.rb', line 11

def gem_lib
  File.expand_path(File.join(File.dirname(__FILE__), "fontcustom"))
end