lib/compass/fontcustom.rb in compass-fontcustom-1.2.0 vs lib/compass/fontcustom.rb in compass-fontcustom-1.3.0
- old
+ new
@@ -1,7 +1,8 @@
require "compass"
require "compass/fontcustom/version"
+require "compass/fontcustom/compass"
require "compass/fontcustom/sass_extensions"
require "compass/fontcustom/glyph_map"
require "compass/fontcustom/font_importer"
module Compass
@@ -13,10 +14,20 @@
Compass::Configuration.add_configuration_property(:fontcustom_hash, "enables/disables fontcustom file name hashing") do
true
end
+ 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, "Path to put generated font files in") do
+ Compass.configuration.fonts_path.to_s
+ end
+
Sass.load_paths << FontImporter.new
end
-end
-
-require "compass/fontcustom/rails" if defined?(Rails)
+end
\ No newline at end of file