{"_id":"stylus-iconfont","_rev":"31-57cf2ccc54adb444cb8e54a548efb2db","name":"stylus-iconfont","description":"Use font as plain svg, and let stylus care about rest","dist-tags":{"latest":"0.10.1"},"versions":{"0.9.1":{"name":"stylus-iconfont","version":"0.9.1","description":"icon-font is svg to font builder from svg files","main":"index.js","homepage":"https://github.com/justgook/stylus-iconfont","scripts":{"prepublish":"coffee --bare --compile index.coffee"},"author":{"name":"Roman Potashow","email":"justgook@gmail.com"},"license":"CC0","dependencies":{"stylus":"^0.48.1","svg2ttf":"^1.1.2","svgicons2svgfont":"^0.1.1","ttf2eot":"^1.3.0","ttf2woff":"^1.3.0"},"devDependencies":{"coffee-script":"^1.8.0"},"gitHead":"e78f4a1fb7de4b17cc33190d659ed206f952759b","_id":"stylus-iconfont@0.9.1","_shasum":"3311229fffc0c72d814958565ad8088e29ff180a","_from":".","_npmVersion":"1.4.27","_npmUser":{"name":"justgook","email":"justgook@gmail.com"},"maintainers":[{"name":"justgook","email":"justgook@gmail.com"}],"dist":{"shasum":"3311229fffc0c72d814958565ad8088e29ff180a","tarball":"https://registry.npmjs.org/stylus-iconfont/-/stylus-iconfont-0.9.1.tgz","integrity":"sha512-T/YXAdccKFD6ix0R+e3zq+Xnv2X7ftmpJ4ZT5hIZwOzHwoes2MZvMKe0YU2Pzv8biGkXbqyHA5m+PP7HLgrBuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiM6Fj/FSSIz7AD43c/fDnpgYKZKZNOdRUH1TM8wea/QIhAOxye9Wm2Z2IQmiZPRY95LvdBCq44YEI4BBZ36uEPfmz"}]}},"0.9.2":{"name":"stylus-iconfont","version":"0.9.2","description":"Use font as plain svg, and let stylus care about rest","main":"index.js","homepage":"https://github.com/justgook/stylus-iconfont","scripts":{"prepublish":"coffee --bare --compile index.coffee"},"author":{"name":"Roman Potashow","email":"justgook@gmail.com"},"license":"CC0","dependencies":{"stylus":"^0.48.1","svg2ttf":"^1.1.2","svgicons2svgfont":"^0.1.1","ttf2eot":"^1.3.0","ttf2woff":"^1.3.0"},"devDependencies":{"coffee-script":"^1.8.0"},"gitHead":"5d8d5607826a939b11e0bb4c19dd20a45962475a","_id":"stylus-iconfont@0.9.2","_shasum":"209519297ee6660e77aa8d25f357105d332bd73a","_from":".","_npmVersion":"1.4.27","_npmUser":{"name":"justgook","email":"justgook@gmail.com"},"maintainers":[{"name":"justgook","email":"justgook@gmail.com"}],"dist":{"shasum":"209519297ee6660e77aa8d25f357105d332bd73a","tarball":"https://registry.npmjs.org/stylus-iconfont/-/stylus-iconfont-0.9.2.tgz","integrity":"sha512-IRD4K6BNKVjKQTuO5rT8zTjdFMTioLNLDDeZIKk1j1ofC6MDj2DJBbVLvS8ZarqpiyQ+opx2XAKvYKLQuUvwEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMuwrPEvJkogmG20rEqWjOQ7xpD+UN1hpPre8SA6S+4AiALmDT3NWfotpHBHlA7mjMCwPsnlreFORPSHipMuEKw2A=="}]}},"0.9.3":{"name":"stylus-iconfont","version":"0.9.3","description":"Use font as plain svg, and let stylus care about rest","main":"index.js","homepage":"https://github.com/justgook/stylus-iconfont","scripts":{"prepublish":"coffee --bare --compile index.coffee"},"author":{"name":"Roman Potashow","email":"justgook@gmail.com"},"license":"CC0","dependencies":{"stylus":"^0.48.1","svg2ttf":"^1.1.2","svgicons2svgfont":"^0.1.1","ttf2eot":"^1.3.0","ttf2woff":"^1.3.0"},"devDependencies":{"coffee-script":"^1.8.0"},"gitHead":"5d8d5607826a939b11e0bb4c19dd20a45962475a","_id":"stylus-iconfont@0.9.3","_shasum":"fcb80110968c578048a81e81e5a8339bf7e8baa1","_from":".","_npmVersion":"1.4.27","_npmUser":{"name":"justgook","email":"justgook@gmail.com"},"maintainers":[{"name":"justgook","email":"justgook@gmail.com"}],"dist":{"shasum":"fcb80110968c578048a81e81e5a8339bf7e8baa1","tarball":"https://registry.npmjs.org/stylus-iconfont/-/stylus-iconfont-0.9.3.tgz","integrity":"sha512-4fHJPKIh6hJMA+N+lGbIKc5hOCAiseifqo92psndyF5pKqLQpvXR8EHTLC7ig8cxez790vozMhFaOu4+/BuIUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeMVSQbS6LDcHN44EYjZ5Myqfew90cYFr0GhhdVzHNJAiAxcUAB5wWuDj/vCJTp6rxdAJZ/HrJDFEP4L3k10O5wWA=="}]}},"0.10.1":{"name":"stylus-iconfont","version":"0.10.1","description":"Use font as plain svg, and let stylus care about rest","main":"index.js","repository":{"type":"git","url":"git://github.com/justgook/stylus-iconfont"},"homepage":"https://github.com/justgook/stylus-iconfont","scripts":{"prepublish":"coffee --bare --compile ."},"author":{"name":"Roman Potashow","email":"justgook@gmail.com"},"license":"CC0","dependencies":{"js-yaml":"^3.2.3","mkdirp":"^0.5.0","progress":"^1.1.8","q":"^1.1.2","stylus":"^0.48.1","svg2ttf":"^1.1.2","svgfont2svgicons":"^1.0.0","svgicons2svgfont":"^1.0.0","ttf2eot":"^1.3.0","ttf2woff":"^1.3.0"},"devDependencies":{"coffee-script":"^1.8.0"},"gitHead":"44f662f64e5cc062c6bfe82bb78a0cedbcc5b609","bugs":{"url":"https://github.com/justgook/stylus-iconfont/issues"},"_id":"stylus-iconfont@0.10.1","_shasum":"18b380809d27926f6f089cfcd2594db8b28c983b","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"justgook","email":"justgook@gmail.com"},"maintainers":[{"name":"justgook","email":"justgook@gmail.com"}],"dist":{"shasum":"18b380809d27926f6f089cfcd2594db8b28c983b","tarball":"https://registry.npmjs.org/stylus-iconfont/-/stylus-iconfont-0.10.1.tgz","integrity":"sha512-I0kPw6gKIT/GWqKr3UOHovs40hWvq3c2P/tqlwEcm8z8C0kZVmG9YZpoJmNwvuG3ZANBBmvVGRNS3xpLVtK9GQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1tF4wCRyv8xxlzGGRbCGGxDpZQbKsQ0g5EP1t9h2gDAiEA2C8bnCFVYnhhPZheqEedLDlam73WAOJqVQWRL4rf7FI="}]}}},"readme":"#stylus iconfont\n\nYou love font icons - then try use it with **stylus-iconfont**\n\nYou hate font icons - that means that u haven't try **stylus-iconfont**\n\nYou love font-awesome - then try use it with **stylus-iconfont**\n\nYou hate font-awesome - u can use **stylus-iconfont** and bake own\n\nUse font as plain svg, and let stylus care about rest\n\n## Installation\n\n```bash\n$ npm install stylus-iconfont -g\n```\n\n##Usage\n\n####Javascriot\n\n```\nvar stylus = require('stylus'),\n\tstylusIconFont = require('stylus-iconfont'),\n\tfontFactory = new stylusIconFont()\nstylus\n.use(fontFactory.register) // collects glyph names, and register mixins\n.render(str, { filename: 'nesting.css' }, function(err, css){\n  if (err) throw err;\n  console.log(css);\n});\nfontFactory.run() // build font from collected glyphs names\n\n```\n\n####Stylus\n```\nicon-font-font-face()\n\nh1:before\n  font-family: icon-font-name\n  content: icon-font-unicode(\"close\")\n```\n\n##Integration\n \n * [Gulp](https://github.com/justgook/stylus-iconfont/wiki/Gulp-integration)\n \n## API\n\n### stylusIconFont(options)\n\n#### options.glyphsDir\nType: `String`\nDefault value: `process.cwd()`\n\nDirectory where will be searched for glips\n\n#### options.outputDir\nType: `String`\nDefault value: `process.cwd()`\n\nPlace where will be created font files\n\n#### options.fontFacePath\nType: `String`\nDefault value: `'/'`\n\nPath that will be used in `icon-font-font-face()` mixin\n\n#### options.fontName\nType: `String`\nDefault value: `'iconfont'`\n\nThe font family name you want.\n\n#### options.autoDownloadVendor\nType: `Boolean`\nDefault value: `true`\n\nAuto download vendor icon sets based on icon prefix\n\n**VendorPrefixes:**\n\n   * `fa` - [Font Awesome](http://fortawesome.github.io/Font-Awesome/)\n\n**Example:**\n\n```\nicon-font-font-face()\n\n.fa\n  font-family: icon-font-name\n\n.fa.fa-bicycle:before\n  content: icon-font-unicode(\"fa/bicycle\")\n```\n  \n**Warning:** \n \n * All vendor icons will be placed under `<glyphsDir>/download/<vendorPrefix>`\n * All downloads will start once option is **enabled**, and catch first `vendorPrefix` in some mixin\n * Downloader will download and parse **ALL** available icons in vendor set\n\n\n\n#### options.fixedWidth\nType: `Boolean`\nDefault value: `false`\n\nCreates a monospace font of the width of the largest input icon.\n\n#### options.centerHorizontally\nType: `Boolean`\nDefault value: `false`\n\nCalculate the bounds of a glyph and center it horizontally.\n\n**Warning:** The bounds calculation is currently a naive implementation that\n may not work for some icons. We need to create a svg-pathdata-draw module on\n top of svg-pathdata to get the real bounds of the icon. It's in on the bottom\n of my to do, but feel free to work on it. Discuss it in the\n [related issue](https://github.com/nfroidure/svgicons2svgfont/issues/18).\n\n#### options.normalize\nType: `Boolean`\nDefault value: `true`\n\nNormalize icons by scaling them to the height of the highest icon.\n\n#### options.fontHeight\nType: `Number`\nDefault value: `MAX(icons.height)`\nThe outputted font height  (defaults to the height of the highest input icon).\n\n#### options.descent\nType: `Number`\nDefault value: `0`\n\nThe font descent. It is usefull to fix the font baseline yourself.\n\n**Warning:**  The descent is a positive value!\n\nThe ascent formula is: ascent = fontHeight - descent.\n\n#### options.log\nType: `Function`\nDefault value: `false`\n\nAllows you to provide your own logging function. Set to `function(){}` to\n impeach logging.\n\n#### options.watchMode\nType: `Boolean`\nDefault value: `true`\n\nRecompile font only when count (new glyphs) is added\n\n#### options.outputTypes\n\nType: `Array`\nDefault value: `['svg', 'ttf', 'eot', 'woff']`\n\n\n##Versioning\n\nProject will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:\n```\n<major>.<minor>.<patch>\n```\n\nAnd constructed with the following guidelines:\n\nBreaking backward compatibility bumps the major (and resets the minor and patch)\nNew additions,without breaking backward compatibility bumps the minor (and resets the patch)\nBug fixes and misc changes bumps the patch\nFor more information on SemVer, please visit http://semver.org.\n\n","maintainers":[{"name":"justgook","email":"justgook@gmail.com"}],"time":{"modified":"2022-06-27T01:43:21.541Z","created":"2014-09-15T18:15:36.270Z","1.0.0":"2014-09-15T18:15:36.270Z","0.9.0":"2014-09-15T18:58:36.000Z","0.9.1":"2014-09-15T19:13:02.401Z","0.9.2":"2014-09-16T07:33:35.992Z","0.9.3":"2014-09-23T13:17:30.263Z","1.9.3":"2014-09-23T13:17:50.772Z","0.9.4":"2014-09-23T13:18:10.802Z","0.10.0":"2014-12-05T11:30:20.897Z","0.10.1":"2014-12-05T11:37:14.520Z"},"author":{"name":"Roman Potashow","email":"justgook@gmail.com"},"license":"CC0","readmeFilename":"README.md","homepage":"https://github.com/justgook/stylus-iconfont","users":{"bonez":true},"repository":{"type":"git","url":"git://github.com/justgook/stylus-iconfont"},"bugs":{"url":"https://github.com/justgook/stylus-iconfont/issues"}}