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 44const process = require ( 'process' )
55 , fs = require ( 'fs' )
66 , path = require ( 'path' )
7- , { load, woff_to_otf } = require ( '../dist/opentype.js' )
7+ , { load, woffToOTF } = require ( '../dist/opentype.js' )
88 ;
99
1010// Print out information about the font on the console.
@@ -97,7 +97,7 @@ if (process.argv.length < 3) {
9797 ? process . argv [ 4 ]
9898 : `${ path . join ( path . dirname ( fontpath ) , path . basename ( fontpath , path . extname ( fontpath ) ) ) } .otf`
9999 , buffer = fs . readFileSync ( fontpath )
100- , result = woff_to_otf ( buffer )
100+ , result = woffToOTF ( buffer )
101101 ;
102102 fs . writeFileSync ( targetPath , new DataView ( result ) ) ;
103103 } else {
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ function loadSync() {
473473 * @param {ArrayBuffer }
474474 * @return {ArrayBuffer }
475475 */
476- function woff_to_otf ( buffer ) {
476+ function woffToOTF ( buffer ) {
477477 if ( buffer . constructor !== ArrayBuffer )
478478 buffer = new Uint8Array ( buffer ) . buffer ;
479479 const data = new DataView ( buffer , 0 )
@@ -557,5 +557,5 @@ export {
557557 parseBuffer as parse ,
558558 load ,
559559 loadSync ,
560- woff_to_otf
560+ woffToOTF
561561} ;
You can’t perform that action at this time.
0 commit comments