modify demo

This commit is contained in:
mkwiser
2014-09-25 23:41:12 +08:00
parent 5f414df603
commit 0a579a56cf
3 changed files with 8 additions and 4 deletions

View File

@@ -25,7 +25,7 @@
<ul id="font-list" class="font-list"></ul>
<canvas id="glyf-canvas" style="background: #E0E0E0" width="1000" height="1000"></canvas>
<canvas id="glyf-canvas" style="background: #E0E0E0" width="600" height="600"></canvas>
<script>
require(['demo/glyfcanvas']);

View File

@@ -62,7 +62,7 @@ define(
height = height * scale;
}
ctx.clearRect(0, 0, 1000, 1000);
ctx.clearRect(0, 0, 600, 600);
glyf2canvas(glyf, ctx, {
stroke: 0,