Skip to content

Commit

Permalink
fix no post table
Browse files Browse the repository at this point in the history
  • Loading branch information
kekee000 committed Oct 17, 2017
1 parent 8e137e8 commit bcf48d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fonteditor-core",
"version": "0.0.37",
"version": "0.0.40",
"description": "fonts (ttf, woff, eot, svg, otf) parse, write, transform. glyph adjust.",
"keywords": [
"sfnt",
Expand Down Expand Up @@ -33,7 +33,7 @@
}
],
"scripts": {
"publish": "sh tool/publish-node.sh",
"publish_npm": "sh tool/publish-node.sh",
"test": "phantomjs test/run-jasmine.js test/SpecRunner.html",
"test_node": "sh tool/test-node.sh",
"lint": "fecs ./src --reporter=baidu --rule"
Expand Down
7 changes: 5 additions & 2 deletions src/ttf/ttfreader.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,11 @@ define(
delete ttf.tables;
delete ttf.hmtx;
delete ttf.loca;
delete ttf.post.nameIndex;
delete ttf.post.names;
if (ttf.post) {
delete ttf.post.nameIndex;
delete ttf.post.names;
}

delete ttf.subsetMap;

// 不携带hinting信息则删除hint相关表
Expand Down

0 comments on commit bcf48d3

Please sign in to comment.