paper.js/examples/SVG Import/Text Testing.html

20 lines
771 B
HTML
Raw Permalink Normal View History

2012-09-30 17:51:50 -04:00
<!DOCTYPE html>
<html>
<head>
2014-08-16 13:24:54 -04:00
<meta charset="UTF-8">
<title>Text Testing</title>
<link rel="stylesheet" href="../css/style.css">
<script type="text/javascript" src="../../dist/paper-full.js"></script>
<script type="text/paperscript" canvas="canvas">
project.importSVG(document.getElementById('svg'));
</script>
2012-09-30 17:51:50 -04:00
</head>
2012-11-02 20:44:57 -04:00
<body>
2014-08-16 13:24:54 -04:00
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="500" height="500" id="svg">
<text x="20" y="15" stroke="green" fill="green" style="font:15px arial;" id="text">Plain SVG Text</text>
<text x="20" y="50" fill="red" transform="rotate(30 20,40)" style="font:12px helvetica;">Rotated SVG Text</text>
</svg>
<canvas id="canvas" width="500" height="500"></canvas>
2012-09-30 17:51:50 -04:00
</body>
</html>