fonteditor/demo/drawCanvas.html
kekee000 1361460db9 fix svg path cubic import
remove optimize of ttfwriter
add optimize ttf
2015-04-18 23:20:37 +08:00

32 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>绘制canvas曲线</title>
<script src="../dep/esl.js"></script>
<script src="../dep/jquery.min.js"></script>
</head>
<body>
<textarea id="textarea" style="display: block">
[[{"x":832,"y":1024},{"x":796.64,"y":1024},{"x":768,"y":995.328},{"x":768,"y":960}],[{"x":768,"y":960},{"x":768,"y":960},{"x":768,"y":63.96799999999996},{"x":768,"y":63.96799999999996}],[{"x":768,"y":63.96799999999996},{"x":768,"y":28.639999999999958},{"x":796.64,"y":-0.03200000000003911},{"x":832,"y":-0.03200000000003911}],[{"x":832,"y":-0.03200000000003911},{"x":867.328,"y":-0.03200000000003911},{"x":896,"y":28.63999999999996},{"x":896,"y":63.96799999999996}],[{"x":896,"y":63.96799999999996},{"x":896,"y":63.96799999999996},{"x":896,"y":960},{"x":896,"y":960}],[{"x":896,"y":960},{"x":896,"y":995.328},{"x":867.328,"y":1024},{"x":832,"y":1024}]]
</textarea>
<canvas id="canvas" width="1000" height="1000" style="background:#eee;width: 1000px;height: 1000px"></canvas>
<script>
require.config({
baseUrl: '../src',
paths: {
demo: '../demo/js',
}
});
define('jquery', window.jQuery);
</script>
<script>require(['demo/drawCanvas'])</script>
</body>
</html>