-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
22 lines (18 loc) · 805 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const buildFonts = require('./lib/buildFonts').default
// const fonts = [
// { name: 'robotoRegular', file: './testFonts/Roboto-Regular.ttf' },
// { name: 'robotoMedium', file: './testFonts/Roboto-Medium.ttf' }
// ]
// buildFonts(fonts, './Roboto.pbf', { fontSize: 36, charset: ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~' })
// const fonts = [
// { name: 'default', file: './testFonts/NotoSans-Regular.ttf' }
// ]
// buildFonts(fonts, './default.pbf')
const fonts = [
{ name: 'default', file: './testFonts/arial-unicode-ms.ttf' }
]
buildFonts(fonts, './default.pbf', { fontSize: 36 })
// const fonts = [
// { name: 'robotoRegular', file: './testFonts/Roboto-Regular.ttf' }
// ]
// buildFonts(fonts, './Roboto.pbf', { charset: 'abc' })