File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
const process = require ( 'process' )
5
5
, fs = require ( 'fs' )
6
6
, path = require ( 'path' )
7
- , { load, woff_to_otf } = require ( '../dist/opentype.js' )
7
+ , { load, woffToOTF } = require ( '../dist/opentype.js' )
8
8
;
9
9
10
10
// Print out information about the font on the console.
@@ -97,7 +97,7 @@ if (process.argv.length < 3) {
97
97
? process . argv [ 4 ]
98
98
: `${ path . join ( path . dirname ( fontpath ) , path . basename ( fontpath , path . extname ( fontpath ) ) ) } .otf`
99
99
, buffer = fs . readFileSync ( fontpath )
100
- , result = woff_to_otf ( buffer )
100
+ , result = woffToOTF ( buffer )
101
101
;
102
102
fs . writeFileSync ( targetPath , new DataView ( result ) ) ;
103
103
} else {
Original file line number Diff line number Diff line change @@ -540,7 +540,7 @@ function loadSync(url, opt) {
540
540
* @param {ArrayBuffer }
541
541
* @return {ArrayBuffer }
542
542
*/
543
- function woff_to_otf ( buffer ) {
543
+ function woffToOTF ( buffer ) {
544
544
if ( buffer . constructor !== ArrayBuffer )
545
545
buffer = new Uint8Array ( buffer ) . buffer ;
546
546
const data = new DataView ( buffer , 0 )
@@ -624,5 +624,5 @@ export {
624
624
parseBuffer as parse ,
625
625
load ,
626
626
loadSync ,
627
- woff_to_otf
627
+ woffToOTF
628
628
} ;
You can’t perform that action at this time.
0 commit comments