第一次新建字型时 创建项目"
"
This commit is contained in:
@@ -85,6 +85,8 @@ define(
|
||||
$.getJSON('./font/empty.json', function (imported) {
|
||||
program.ttfManager.set(imported);
|
||||
program.data.projectId = null;
|
||||
// 建立项目 提示保存
|
||||
actions.save();
|
||||
});
|
||||
},
|
||||
|
||||
@@ -150,6 +152,10 @@ define(
|
||||
var selected = program.viewer.getSelected();
|
||||
program.ttfManager.insertGlyf({}, selected[0]);
|
||||
}
|
||||
else {
|
||||
// 没有项目 先建立一个项目
|
||||
actions.new();
|
||||
}
|
||||
},
|
||||
|
||||
'add-online': function () {
|
||||
|
||||
Reference in New Issue
Block a user