![]() ![]() a hash of options used during compilation.This should run the installed and configured gem to create your icons: Compiling icons.Ĭreate app/assets/stylesheets/_icons.scssĪccess these new icons by creating a tag with the class icon-) ![]() Load up the icons directory and test it out. This tells the gem to take the vectors from app/assets/icons and create fonts and stylesheets for them.Ĭreate a file in lib/tasks called icons.rake : namespace :icons do task :compile do puts " Compiling icons. bundleĬreate a fontcustom.yml file with something like this: # config/fontcustom.yml Preprocessor_path as the relative path from your compiled CSS to your outputĪdd gem 'fontcustom' to your gem file. Set templates to include scss-rails to generate a SCSS partial with theĬompatible font-url() helper. ThisĬan be much easier than centering dozens of SVGs by hand. Activating autowidth trims horizontal white space from each glyph.For greater precision in curved icons, use fills instead strokes and try.All colors will be rendered identically.css-selector) that overrides the config file. Inside, you'll find a list of all possible options.Įach option is also available as a dash-case command line flag (e.g. To manage settings between compiles, run fontcustom config to generate aĬonfig file. Quick Start fontcustom compile my/vectors # Compiles icons into `fontcustom/`įontcustom watch my/vectors # Compiles when vectors are changed/added/removedįontcustom compile # Uses options from `./fontcustom.yml` or `config/fontcustom.yml`įontcustom config # Generate a blank a config file Open up a new command prompt and test it.Add the installation path to your System PATH variable (c:\FontForgeBuilds\bin).At the end of the installer check the 'run fontforge' box.Install to a path without spaces, eg c:\FontForgeBuilds.Git clone -recursive
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |