Skip to content

Commit e4a2406

Browse files
committed
rename woff_to_of woffToOTF
1 parent 79e6016 commit e4a2406

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/ot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
const 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 {

src/opentype.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)