-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
65 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ src/ttf/data/* | |
demo/* | ||
node_modules | ||
release | ||
test | ||
test/data | ||
tool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @file adjustttf | ||
* @author mengke01([email protected]) | ||
*/ | ||
/* globals Int8Array */ | ||
|
||
const assert = require('assert'); | ||
const fs = require('fs'); | ||
const TTFReader = require('./fonteditor-core').TTFReader; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @file font | ||
* @author mengke01([email protected]) | ||
*/ | ||
/* globals Int8Array, before */ | ||
|
||
const assert = require('assert'); | ||
const fs = require('fs'); | ||
const Font = require('./fonteditor-core').Font; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,7 @@ | |
* @file font | ||
* @author mengke01([email protected]) | ||
*/ | ||
/* eslint-disable fecs-no-require */ | ||
/* globals before */ | ||
|
||
import assert from 'assert'; | ||
import {readData} from '../data'; | ||
import Font from 'fonteditor-core/ttf/font'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
* @file woff2 enc and dec | ||
* @author mengke01([email protected]) | ||
*/ | ||
/* globals before */ | ||
|
||
import assert from 'assert'; | ||
import {readData} from '../data'; | ||
|
@@ -44,13 +43,13 @@ describe('woff2', function () { | |
assert.ok(result.byteLength); | ||
return woff2tottf(result); | ||
}) | ||
.then(function (result) { | ||
assert.ok(result.byteLength); | ||
let fontObject = new TTFReader().read(result); | ||
assert.equal(fontObject.version, 1); | ||
assert.equal(fontObject.numTables, 16); | ||
done(); | ||
}); | ||
.then(function (result) { | ||
assert.ok(result.byteLength); | ||
let fontObject = new TTFReader().read(result); | ||
assert.equal(fontObject.version, 1); | ||
assert.equal(fontObject.numTables, 16); | ||
done(); | ||
}); | ||
}); | ||
|
||
it('woff2tottfasync', function (done) { | ||
|
@@ -68,13 +67,13 @@ describe('woff2', function () { | |
assert.ok(result.byteLength); | ||
return woff2tottfasync(result); | ||
}) | ||
.then(function (result) { | ||
assert.ok(result.byteLength); | ||
let fontObject = new TTFReader().read(result); | ||
assert.equal(fontObject.version, 1); | ||
assert.equal(fontObject.numTables, 14); | ||
done(); | ||
}); | ||
.then(function (result) { | ||
assert.ok(result.byteLength); | ||
let fontObject = new TTFReader().read(result); | ||
assert.equal(fontObject.version, 1); | ||
assert.equal(fontObject.numTables, 14); | ||
done(); | ||
}); | ||
}); | ||
|
||
it('woff2tottfasync compound', function (done) { | ||
|