Skip to content

Commit ec2f2f9

Browse files
committed
rename woff_to_of woffToOTF
1 parent 8942294 commit ec2f2f9

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.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ function loadSync(url, opt) {
540540
* @param {ArrayBuffer}
541541
* @return {ArrayBuffer}
542542
*/
543-
function woff_to_otf(buffer) {
543+
function woffToOTF(buffer) {
544544
if (buffer.constructor !== ArrayBuffer)
545545
buffer = new Uint8Array(buffer).buffer;
546546
const data = new DataView(buffer, 0)
@@ -624,5 +624,5 @@ export {
624624
parseBuffer as parse,
625625
load,
626626
loadSync,
627-
woff_to_otf
627+
woffToOTF
628628
};

0 commit comments

Comments
 (0)