This commit is contained in:
menglingjun 2015-03-31 14:15:02 +08:00
commit 0f2075d8d3
2 changed files with 7 additions and 4 deletions

View File

@ -162,8 +162,8 @@ var Fontmin = require('fontmin');
var fontmin = new Fontmin()
.use(Fontmin.css({
glyf: true, // generate class for each glyf. default = false
iconPrefix: 'my-icon', // class prefix, only work when glyf is `true`. default to "icon"
glyph: true, // generate class for each glyph. default = false
iconPrefix: 'my-icon', // class prefix, only work when glyph is `true`. default to "icon"
fontFamily: 'myfont' // custom fontFamily, default to filename or get from analysed ttf file
}));
```

7
cli.js
View File

@ -53,7 +53,8 @@ var cli = meow({
t: 'text',
b: 'basic-text',
d: 'deflate-woff',
T: 'show-time'
T: 'show-time',
h: 'help'
}
});
@ -121,7 +122,9 @@ if (process.stdin.isTTY) {
'Example',
' fontmin font/* build',
' fontmin foo.ttf > foo-optimized.ttf',
' cat foo.ttf | fontmin > foo-optimized.ttf'
' cat foo.ttf | fontmin > foo-optimized.ttf',
'',
'See `fontmin --help` for more information.'
].join('\n'));
process.exit(1);