Sha256: 0ef94963e8bcf988a6fcd85b30ff1bb77940e2048ac1459a4ea7fa758e009cbf
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
require "compass" require "compass/fontcustom/version" require "compass/fontcustom/util" require "compass/fontcustom/compass" require "compass/fontcustom/sass_extensions" require "compass/fontcustom/glyph_map" require "compass/fontcustom/font_importer" require "compass/fontcustom/patches" require "compass/fontcustom/deprecations" module Compass # This module registers the gem as a Compass framework source, # adds config properties to Compass and extends Sass' `load_paths`. module Fontcustom base_directory = File.expand_path('../../../', __FILE__) Compass::Frameworks.register('fontcustom', :path => base_directory) Compass::Configuration.add_configuration_property(:fontcustom_input_paths, "Array of paths where to search for SVG files to build custom fonts from") do if defined? Rails Rails.application.config.assets.paths else [Compass.configuration.images_path.to_s] end end Compass::Configuration.add_configuration_property(:fontcustom_fonts_path, "(Deprecated) Path to put generated font files in") Compass::Configuration.add_configuration_property(:fontcustom_options, 'Options passed to fontcustom when generating fonts') do {} end Compass::Configuration.add_configuration_property(:fontcustom_discard_manifest, 'Remove manifest each time after fonts are compiled') do false end Sass.load_paths << FontImporter.new end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
compass-fontcustom-1.3.1 | lib/compass/fontcustom.rb |