postcss-fontpath

PostCSS plugin that adds a font-path
attribute to @font-face
which expands to the FontSpring syntax.
@font-face {
font-family: 'My Font';
font-path: '/path/to/font/file';
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Test';
src: url("/path/to/font/file.eot");
src: url("/path/to/font/file.eot?#iefix") format('embedded-opentype'),
url("/path/to/font/file.woff") format('woff'),
url("/path/to/font/file.ttf") format('truetype'),
url("/path/to/font/file.svg") format('svg');
font-weight: normal;
font-style: normal;
}
--
Usage
postcss([ require('postcss-fontpath') ])
See PostCSS docs for examples for your environment.
--
License
MIT © Sean King
v0.1.0 (2015-07-04)
* This Change Log was automatically generated by github_changelog_generator