-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fantasticon to generate web fonts (#515)
* Generate webfonts via fantasticon - Includes new docs section and fonts page - Generates CSS and JSON in addition to 4x font types - Adds new script and hooks into existing icons and zip scripts * casing * Update to drop ttf and eot for woff and woff2 only for now * remove eot and ttf there too * simplify stylelint
- Loading branch information
Showing
13 changed files
with
8,383 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module.exports = { | ||
inputDir: './icons', // (required) | ||
outputDir: './font', // (required) | ||
fontTypes: ['woff', 'woff2'], | ||
assetTypes: ['css', 'json', 'html'], | ||
name: 'bootstrap-icons', | ||
prefix: 'bi', | ||
selector: '.bi', | ||
fontsUrl: './fonts', | ||
formatOptions: { | ||
json: { | ||
// render the JSON human readable with two spaces indent (default is none, so minified) | ||
indent: 2 | ||
} | ||
}, | ||
// Use a custom Handlebars template | ||
templates: { | ||
css: './src/css.hbs', | ||
html: './src/html.hbs' | ||
}, | ||
pathOptions: { | ||
json: './font/bootstrap-icons.json', | ||
css: './font/bootstrap-icons.css', | ||
html: './font/index.html', | ||
ttf: './font/fonts/bootstrap-icons.ttf', | ||
woff: './font/fonts/bootstrap-icons.woff', | ||
woff2: './font/fonts/bootstrap-icons.woff2', | ||
eot: './font/fonts/bootstrap-icons.eot' | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.