-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdefaultOptions.js
More file actions
31 lines (31 loc) · 834 Bytes
/
Copy pathdefaultOptions.js
File metadata and controls
31 lines (31 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var os = require('os');
module.exports = {
centerHorizontally: true,
//centerVertically: true,
fixedWidth: false,
fontId: null,
fontName: 'iconfont',
fontStyle: '',
fontWeight: '',
formats: ['svg', 'ttf', 'eot', 'woff2', 'woff'],
formatsOptions: {
ttf: {
copyright: null,
ts: null,
version: null,
}
},
glyphTransformFn: null,
maxConcurrency: os.cpus().length,
metadata: null,
metadataProvider: null,
fontHeight: 1024, // 这个与normalize配合解决精确度问题, 即units-per-em(UPM)
//descent: 212, // 基线向下下沉空间,正数,812=1024-212
//ascent: 812,
normalize: true,
prependUnicode: false,
round: 10e12,
startUnicode: 0x554a,
template: 'css',
verbose: false
}