Skip to content

Commit

Permalink
fix a stupid code order problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lingsamuel authored Mar 21, 2020
1 parent ecb62a6 commit 16c4e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ch-to-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ module.exports = function (text, opts) {
const top = opts.y + (height / 2);
const path = glyph.getPath(left, top, fontSize);
// Randomize path commands
path.commands.forEach(rndPathCmd);
path.commands = randomizePathNodes(path.commands, opts);
// path.commands.forEach(rndPathCmd); // 由于截断了直线和曲线,如果逐点扰动,会造成畸形。考虑做成一个 option

const pathData = path.toPathData();

Expand Down

0 comments on commit 16c4e9a

Please sign in to comment.